/* ============================================
   AdSense Ad Container Styling
   Non-intrusive, blends with site design
   ============================================ */

.ad-container {
    max-width: 728px;
    margin: 2rem auto;
    padding: 0.5rem;
    text-align: center;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.05);
}

/* Hide "Advertisement" label when ad is not filled */
.ad-container:has(ins[data-ad-status="unfilled"])::before {
    display: none;
}

/* Collapse empty ad containers so they take no space */
.ad-container:has(ins[data-ad-status="unfilled"]) {
    margin: 0;
    padding: 0;
    min-height: 0;
    overflow: hidden;
}

/* Dark theme variant (couples pages) */
.couple-theme .ad-container {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Label above ad — only visible when ad is loaded */
.ad-container::before {
    content: "Advertisement";
    display: block;
    font-size: 0.65rem;
    color: rgba(128, 128, 128, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

/* Responsive: full width on mobile */
@media (max-width: 768px) {
    .ad-container {
        max-width: 100%;
        margin: 1.5rem auto;
        border-radius: 8px;
    }
}

/* Hide ads inside game screens — safety net */
#gameRoom .ad-container,
#game-screen .ad-container,
#actKaroScreen .ad-container,
#gameEngineSection .ad-container,
#dashboardSection .ad-container,
#partnerQuizFlow .ad-container {
    display: none !important;
}