/* Google AdSense Ad Containers */

/* Ad Container Base Styles */
.ad-container {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 0, 0, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    position: relative;
}

.ad-container::before {
    content: 'Advertisement';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 0, 0, 0.95);
    padding: 2px 10px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
}

/* Ad placeholder when no ad is loaded */
.ad-placeholder {
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    font-style: italic;
}

/* Different ad sizes */

/* Horizontal Banner - 728x90 (Leaderboard) */
.ad-horizontal {
    min-height: 90px;
}

.ad-horizontal ins {
    width: 728px;
    height: 90px;
    display: inline-block;
}

/* Large Rectangle - 336x280 */
.ad-rectangle {
    min-height: 280px;
}

.ad-rectangle ins {
    width: 336px;
    height: 280px;
    display: inline-block;
}

/* Responsive Banner - Full width */
.ad-responsive {
    min-height: 100px;
    max-width: 100%;
}

.ad-responsive ins {
    display: block;
    width: 100%;
    height: auto;
}

/* Ad spacing in content */
.ad-container-top {
    margin-top: 20px;
    margin-bottom: 40px;
}

.ad-container-middle {
    margin: 40px auto;
}

.ad-container-bottom {
    margin-top: 40px;
    margin-bottom: 20px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .ad-container {
        margin: 20px auto;
        min-height: 50px;
    }
    
    .ad-horizontal ins {
        width: 320px;
        height: 50px;
    }
    
    .ad-rectangle ins {
        width: 300px;
        height: 250px;
    }
}

/* Hide ads on very small screens */
@media (max-width: 320px) {
    .ad-container {
        display: none;
    }
}

/* Ad styling for legal pages */
.legal-page-ad {
    margin: 30px auto;
    max-width: 900px;
}

/* Between scenes ad in output page */
.scene-ad {
    margin: 40px 0;
    background: rgba(255, 0, 0, 0.03);
}

/* Sticky ad styles (optional - for sidebar/sticky ads) */
.ad-sticky {
    position: sticky;
    top: 100px;
    z-index: 50;
}

/* Ad Loading Animation */
.ad-loading {
    animation: adPulse 2s ease-in-out infinite;
}

@keyframes adPulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

/* Native ad styling (for in-feed ads) */
.ad-native {
    background: rgba(26, 5, 5, 0.5);
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
}

.ad-native::before {
    content: 'Sponsored';
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
}
