/* ===================================================================
   STRATEGIC AD PLACEMENTS - Layout & visibility
   Sticky sidebar, in-content, anchor, native. CLS min-heights in cls-animation-fixes.css
   =================================================================== */

/* Sticky sidebar: in-flow (e.g. blog sidebar column) */
.ad-sidebar-sticky {
    position: sticky;
    top: 80px;
    min-height: 250px;
    margin-bottom: 1.5rem;
}

/* Global sticky sidebar (fixed right) - optional, enable via layout */
.ad-sidebar-sticky-global {
    position: fixed;
    top: 80px;
    right: 0;
    width: 300px;
    max-width: calc(100vw - 20px);
    min-height: 250px;
    z-index: 999;
    padding: 0 10px;
}
body.has-sticky-sidebar-ad { margin-right: 320px; }
@media (max-width: 991px) {
    .ad-sidebar-sticky-global { display: none; }
    body.has-sticky-sidebar-ad { margin-right: 0; }
}

/* In-content: centered, spacing so it doesn’t feel intrusive */
.ad-in-content {
    min-height: 250px;
    margin: 1.5rem 0;
    text-align: center;
}

/* Anchor: fixed bottom, full width, stays in view */
.ad-anchor {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    min-height: 90px;
    max-height: 120px;
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
}
body.has-anchor-ad { padding-bottom: 100px; }
@media (max-width: 767px) {
    .ad-anchor { min-height: 70px; max-height: 90px; }
    body.has-anchor-ad { padding-bottom: 80px; }
}

/* Native: card style so it blends with content */
.ad-native-wrapper {
    padding: 1rem 1.25rem;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: #fafafa;
}
.ad-native-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    margin: 0 0 0.5rem 0;
}
.ad-placeholder-native { min-height: 200px; }

/* Placeholder styling (when no ad code yet) */
.ad-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: inherit;
    background: #f0f0f0;
    color: #999;
    font-size: 0.85rem;
}
.ad-placeholder-label {
    padding: 4px 8px;
    background: #e0e0e0;
    border-radius: 4px;
    font-size: 0.7rem;
}
