/*
   VELOCITYVERIFY BLOG CSS
   Zero-CLS AdSense & Layout Rules
*/

/*
==================================================
1. ZERO-CLS AD WRAPPERS
These wrappers prevent Cumulative Layout Shift (CLS)
by reserving exact dimensions for AdSense units before
the JavaScript executes.
==================================================
*/

/* Shared Wrapper Properties */
[class^="ad-wrapper-"] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #0d0d0d;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    margin: 2rem 0;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

[class^="ad-wrapper-"]::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.02) 10px,
        rgba(255,255,255,0.02) 20px
    );
    pointer-events: none;
    z-index: 0;
}

/* Better Ads Standards "Advertisement" Label */
.ad-label {
    font-size: 10px;
    text-transform: uppercase;
    color: #444;
    margin-bottom: 4px;
    letter-spacing: 2px;
    z-index: 1;
    font-family: "Montserrat", "Helvetica Neue", sans-serif;
}

/* Leaderboard (Top/Bottom) - Reserves 970x90 or 728x90 */
.ad-wrapper-leaderboard {
    min-height: 90px;
    max-width: 970px;
    margin-left: auto;
    margin-right: auto;
}

/* In-Content Ads (Mid-Article) - Reserves 336x280 or 300x250 */
.ad-wrapper-incontent {
    min-height: 280px;
    max-width: 336px;
    margin-left: auto;
    margin-right: auto;
}

/* Sidebar Ads (Left/Right Rail) - Reserves 300x600 Half-Page */
.ad-wrapper-sidebar {
    min-height: 600px;
    width: 300px; /* Fixed width for desktop rails */
    margin: 0;
}

/* Mobile Adjustments for Ads */
@media (max-width: 768px) {
    .ad-wrapper-leaderboard {
        min-height: 100px; /* Adjust for 320x100 mobile banner */
        width: 100%;
    }
    .ad-wrapper-sidebar {
        display: none; /* Hide 300x600 rails on mobile to prevent horizontal scrolling */
    }
}

/*
==================================================
2. BLOG-SPECIFIC QUARANTINE ZONES
Ensures minimum 50px protective margin around CTAs
==================================================
*/
.quarantine-zone-blog {
    margin: 50px 0; /* Strict 50px Moat */
    position: relative;
    padding: 30px 0;
    width: 100%;
    border-radius: 12px;
    background: radial-gradient(circle at center, rgba(17,17,17,0.5) 0%, transparent 70%);
}

/*
==================================================
3. RESPONSIVE UTILITIES
==================================================
*/
.mobile-only {
    display: none;
}
@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
    .desktop-only {
        display: none;
    }
}
