/**
 * 🎨 ADS STYLES - Non-Invasive & Responsive
 * 
 * Design principles:
 * - Minimal visual impact
 * - Clear separation from content
 * - Responsive on all devices
 * - Accessible
 */

/* 📦 Ad Container - Main wrapper */
.ad-container {
    width: 100%;
    max-width: 728px;
    margin: 2rem auto;
    padding: 1rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(0, 209, 255, 0.1);
    position: relative;
    min-height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

/* 🏷️ Ad Label - "Advertisement" text */
.ad-container::before {
    content: 'Advertisement';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #001018;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* 🎯 Hover effect - subtle */
.ad-container:hover {
    background: rgba(0, 0, 0, 0.25);
    border-color: rgba(0, 209, 255, 0.2);
}

/* 📱 Mobile Responsive - 320x50 banner */
@media (max-width: 768px) {
    .ad-container {
        max-width: 320px;
        min-height: 50px;
        margin: 1.5rem auto;
        padding: 0.5rem;
    }
    
    .ad-container::before {
        font-size: 0.6rem;
        padding: 1px 6px;
    }
}

/* 💻 Desktop - 728x90 banner */
@media (min-width: 769px) {
    .ad-container {
        max-width: 728px;
        min-height: 90px;
    }
}

/* 🖥️ Large Desktop - 970x90 banner (optional) */
@media (min-width: 1200px) {
    .ad-container {
        max-width: 970px;
        min-height: 90px;
    }
}

/* 🎨 Ad Container Variants */

/* Homepage ad - after FAQ section */
.ad-container.homepage-ad {
    margin-top: 3rem;
    margin-bottom: 2rem;
}

/* Dashboard ad - below video controls */
.ad-container.dashboard-ad {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    max-width: 100%;
}

/* Sidebar ad - vertical banner (optional) */
.ad-container.sidebar-ad {
    max-width: 160px;
    min-height: 600px;
    margin: 1rem;
}

/* 🚫 Ad Blocker Detection (optional) */
.ad-container.blocked {
    background: rgba(255, 0, 0, 0.1);
    border-color: rgba(255, 0, 0, 0.2);
}

.ad-container.blocked::after {
    content: 'Please disable ad blocker to support us ❤️';
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* 🎯 Specific Ad Network Styles */

/* PropellerAds */
#propeller-ad-container {
    /* PropellerAds specific styles */
}

/* Google AdSense */
#adsense-ad-container {
    /* AdSense specific styles */
}

#adsense-ad-container ins {
    display: block;
    text-align: center;
}

/* Media.net */
#medianet-ad-container {
    /* Media.net specific styles */
}

/* 🔒 Privacy Notice (optional) */
.ad-privacy-notice {
    margin-top: 0.5rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
}

.ad-privacy-notice a {
    color: rgba(0, 209, 255, 0.6);
    text-decoration: none;
}

.ad-privacy-notice a:hover {
    color: rgba(0, 209, 255, 0.8);
    text-decoration: underline;
}

/* 🎨 Loading State */
.ad-container.loading {
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.2) 25%,
        rgba(0, 209, 255, 0.05) 50%,
        rgba(0, 0, 0, 0.2) 75%
    );
    background-size: 200% 100%;
    animation: adLoading 1.5s infinite;
}

@keyframes adLoading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ♿ Accessibility */
.ad-container[aria-hidden="true"] {
    display: none;
}

/* 🎯 Print - hide ads */
@media print {
    .ad-container {
        display: none !important;
    }
}

