/* AdSense Container Styles */
.ad-container {
    margin: 1.5rem 0;
    text-align: center;
    overflow: hidden;
    position: relative;
}

/* Responsive Ad Units */
.ad-unit {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    margin: 0 auto;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ad-unit:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Ad Placeholder */
.ad-placeholder {
    background: #f1f3f5;
    color: #868e96;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive Ad Sizes */
.ad-leaderboard {
    width: 100%;
    max-width: 970px;
    min-height: 90px;
}

.ad-banner {
    width: 100%;
    max-width: 728px;
    min-height: 90px;
}

.ad-medium-rectangle {
    width: 100%;
    max-width: 300px;
    min-height: 250px;
}

.ad-sidebar {
    width: 100%;
    min-height: 600px;
}

/* Loading Animation */
@keyframes adShimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.ad-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: adShimmer 2s infinite linear;
}

/* Hide Ads on Print */
@media print {
    .ad-container {
        display: none !important;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .ad-leaderboard,
    .ad-banner {
        min-height: 50px;
    }
    
    .ad-medium-rectangle {
        max-width: 100%;
    }
}
