/* Ad Container Styles */
.ad-container {
    margin: 20px auto;
    text-align: center;
    min-height: 50px;
}

.ad-container ins {
    display: block;
    margin: 0 auto;
}

/* Sidebar Ad Styles */
.sidebar-ad-container {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Sticky Ad */
.mobile-sticky-ad {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    padding: 0;
    transition: transform 0.3s ease;
}

.mobile-sticky-ad.hidden {
    transform: translateY(100%);
}

.mobile-sticky-ad-close {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    z-index: 1001;
    transition: background 0.2s ease;
}

.mobile-sticky-ad-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

.mobile-sticky-ad-close:active {
    background: rgba(0, 0, 0, 0.9);
}

/* Desktop Sticky Ad */
.desktop-sticky-ad {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #0f172a; /* Dark background to match theme */
    padding: 15px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.desktop-sticky-ad.hidden {
    transform: translateY(100%);
}

.desktop-sticky-ad .ad-container {
    margin: 0 auto;
    max-width: 728px; /* Standard leaderboard width */
}

/* Hide desktop sticky on mobile */
@media (max-width: 767px) {
    .desktop-sticky-ad {
        display: none !important;
    }
}

/* Hide mobile sticky on desktop */
@media (min-width: 768px) {
    .mobile-sticky-ad {
        display: none !important;
    }
}

/* Responsive Ad Containers */
@media (max-width: 768px) {
    .ad-container {
        margin: 15px auto;
    }
    
    .sidebar-ad-container {
        display: none; /* Hide sidebar ads on mobile */
    }
}

/* Print Styles - Hide Ads */
@media print {
    .ad-container,
    .sidebar-ad-container,
    .mobile-sticky-ad {
        display: none !important;
    }
}

