/* Ad Container Styles - Clean empty space for Google AdSense */
.ad-container {
    display: block !important;
    margin: 2rem 0;
    min-width: 300px !important;
    min-height: 280px !important; /* Reserve space for common 300x250 or 336x280 blocks */
    width: 100% !important;
    overflow: hidden;
    text-align: center;
}

.ad-container ins.adsbygoogle,
ins.adsbygoogle {
    display: block !important;
    min-width: 300px !important;
    min-height: 250px !important;
    width: 100% !important;
}

/* Global fix for any adsbygoogle element */
ins.adsbygoogle[style] {
    min-width: 300px !important;
}

/* Sticky Mobile Ad */
#ad-sticky-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: none !important;
    min-height: 50px;
    max-height: 90px;
    width: 100%;
    pointer-events: auto;
}

.sticky-mobile-ad-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
    min-height: 50px;
    max-height: 90px;
}

.sticky-mobile-ad-wrapper .adsbygoogle {
    max-width: 320px !important;
    max-height: 50px !important;
    pointer-events: auto;
}

.sticky-ad-close {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ef4444 !important;
    color: white !important;
    border: 2px solid white !important;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 22px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    touch-action: manipulation;
    pointer-events: auto !important;
    user-select: none;
    -webkit-user-select: none;
}

.sticky-ad-close:hover,
.sticky-ad-close:active {
    background: #dc2626 !important;
    transform: scale(1.1);
}

/* Hide sticky ad on desktop */
@media (min-width: 769px) {
    #ad-sticky-mobile {
        display: none !important;
    }
}

/* Notification Styles */
.ad-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.ad-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.ad-notification-content {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-left: 4px solid #3b82f6;
}

.ad-notification-warning .ad-notification-content {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.ad-notification-success .ad-notification-content {
    border-left-color: #10b981;
    background: #f0fdf4;
}

.ad-notification-close {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-notification-close:hover {
    color: #1e293b;
}

/* Locked Action Button Styles */
.action-locked {
    position: relative;
}

.action-locked::after {
    content: '🔒';
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    font-size: 14px;
}

/* Pulse Animation for Highlighting Ads */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.9;
    }
}

/* Responsive Ad Containers */
@media (max-width: 768px) {
    .ad-container {
        margin: 1rem 0;
        min-width: 280px; /* Mobile minimum width */
    }
    
    .ad-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Desktop-only ads */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: block;
    }
}

/* Ad Label */
.ad-label {
    text-align: center;
    font-size: 10px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}