/**
 * ==============================================================================
 * FeelingsWheels - AdSense Safe Containers & Zero-CLS Engine
 * ==============================================================================
 * File: assets/css/ads.css
 * Purpose: Pre-reserved ad slots, layout stability (Zero CLS), & Google policy styling.
 */

/* -------------------------------------------------------------------------- */
/* 1. DESKTOP RIGHT SIDEBAR AD CONTAINER                                      */
/* -------------------------------------------------------------------------- */
.ads-sidebar-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
    max-width: 336px;
    margin: 0 auto;
}

/* Single Ad Unit Card */
.ad-unit-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 0.75rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    transition: border-color var(--transition-smooth);
}

.ad-unit-card:hover {
    border-color: var(--border-medium);
}

/* Google Policy Mandatory Label (ADVERTISEMENT) */
.ad-compliance-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    align-self: flex-start;
    padding-left: 0.25rem;
    user-select: none;
}

/* -------------------------------------------------------------------------- */
/* 2. STRICT ZERO-CLS PRE-RESERVED AD BOX (300x250)                           */
/* -------------------------------------------------------------------------- */
.ad-container-box {
    width: 100%;                 
    min-width: 300px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.ad-container-box ins.adsbygoogle {
    display: inline-block !important;
    min-width: 300px;
    width: 100% !important;
    height: 250px !important;
}

/* -------------------------------------------------------------------------- */
/* 3. CLEAN FALLBACK PLACEHOLDER (Jab tak AdSense ID nahi daalte)             */
/* -------------------------------------------------------------------------- */
.ad-placeholder-box {
    width: 100%;
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: var(--bg-input);
    border: 1px dashed var(--border-medium);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    user-select: none;
}

.placeholder-icon {
    font-size: 1.5rem;
}

.placeholder-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.placeholder-dim {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    background: var(--bg-card-subtle);
    padding: 0.1rem 0.4rem;
    border-radius: var(--radius-sm);
}

/* -------------------------------------------------------------------------- */
/* 4. MOBILE-ONLY STAGE AD (Directly After Spin Button on Phones)             */
/* -------------------------------------------------------------------------- */
.mobile-stage-ad-box {
    display: none; /* Desktop par 100% hidden rahega */
}

@media (max-width: 768px) {
    .mobile-stage-ad-box {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 1.5rem auto 1rem; /* Spin button se safe distance */
        width: 100%;
    }

    /* Mobile par sidebar ads ko chhipa do taaki duplicate ads na banein */
    .col-ads {
        display: none !important;
    }
}