/* Google Ads Styles */
.google-ad-container {
    margin: 2rem auto;
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(167, 5, 189, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.google-ad-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(167, 5, 189, 0.15);
    border-color: rgba(167, 5, 189, 0.4);
}

.google-ad-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.google-ad-container:hover::before {
    left: 100%;
}

.google-ad-container .ad-label {
    font-size: 0.75rem;
    color: rgba(167, 5, 189, 0.8);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

/* Header Ad */
.header-ad {
    max-width: 728px;
    min-height: 90px;
    margin: 1.5rem auto;
}

/* Sidebar Ad */
.sidebar-ad {
    max-width: 300px;
    min-height: 250px;
    margin: 1.5rem auto;
}

/* Article Content Ads */
.content-ad {
    max-width: 336px;
    min-height: 280px;
    margin: 2.5rem auto;
}

/* Footer Ad */
.footer-ad {
    max-width: 728px;
    min-height: 90px;
    margin: 2rem auto 1rem;
}

/* Mobile Ad Optimization */
@media (max-width: 768px) {
    .header-ad, .footer-ad {
        max-width: 320px;
        min-height: 50px;
        margin: 1rem auto;
        padding: 1rem;
    }
    
    .sidebar-ad {
        max-width: 320px;
        min-height: 50px;
        margin: 1rem auto;
    }
    
    .content-ad {
        max-width: 300px;
        min-height: 250px;
        margin: 2rem auto;
    }
    
    .google-ad-container {
        margin: 1rem auto;
    }
}

/* Ad Loading State */
.google-ad-container.loading {
    background: linear-gradient(
        90deg, 
        rgba(167, 5, 189, 0.1) 25%, 
        rgba(167, 5, 189, 0.2) 50%, 
        rgba(167, 5, 189, 0.1) 75%
    );
    background-size: 200% 100%;
    animation: loading 2s infinite ease-in-out;
}

@keyframes loading {
    0% { 
        background-position: 200% 0;
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
    100% { 
        background-position: -200% 0;
        opacity: 0.7;
    }
}

/* Ensure ads don't interfere with layout */
.google-ad-container ins {
    display: block !important;
    text-decoration: none !important;
    position: relative;
    z-index: 1;
}

/* Add subtle animation when ads load */
.google-ad-container.loaded {
    animation: fadeInScale 0.6s ease-out;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
