/* Google Ads Placeholder Styles */
.ad-placeholder {
    transition: all 0.3s ease;
    will-change: transform;
}

.ad-placeholder:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Ad Placeholder Text */
.ad-placeholder-text {
    z-index: 1;
    transition: opacity 0.3s ease;
}

/* Hide placeholder when ad is loaded */
.adsbygoogle[data-ad-status="filled"] + .ad-placeholder-text,
.adsbygoogle.ad-loaded + .ad-placeholder-text {
    opacity: 0;
    pointer-events: none;
}

/* Show placeholder when ad is loading */
.adsbygoogle:not([data-ad-status="filled"]) ~ .ad-placeholder-text {
    opacity: 1;
}

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

@keyframes adPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Responsive ad sizing */
@media (max-width: 768px) {
    .ad-banner {
        height: 3rem !important; /* 48px */
    }
    
    .ad-medium-rectangle {
        height: 4rem !important; /* 64px */
    }
}

@media (min-width: 769px) {
    .ad-banner {
        height: 5.5rem !important; /* 88px */
    }
    
    .ad-medium-rectangle {
        height: 6rem !important; /* 96px */
    }
}

/* Sidebar ad animations */
.sidebar-ad {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ad loading shimmer effect */
.ad-shimmer {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0.1) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

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

/* Ensure ads don't interfere with content flow */
.ad-container {
    position: relative;
    z-index: 1;
}

/* Mobile-first approach for ad spacing */
.ad-spacing-mobile {
    margin: 1rem 0;
}

@media (min-width: 768px) {
    .ad-spacing-mobile {
        margin: 1.5rem 0;
    }
}

@media (min-width: 1024px) {
    .ad-spacing-mobile {
        margin: 2rem 0;
    }
} 