/* AdSense Integration Styles */

/* Ad Container Base Styles */
.ad-container {
    display: block;
    margin: 20px auto;
    text-align: center;
    min-height: 100px;
    position: relative;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 10px;
    transition: all 0.3s ease;
}

.dark .ad-container {
    background: #374151;
    border-color: #4B5563;
}

/* Ad Placeholder */
.ad-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dark .ad-placeholder {
    color: #9CA3AF;
}

/* Responsive Ad Sizes */
.ad-banner {
    width: 100%;
    max-width: 728px;
    height: 90px;
}

.ad-rectangle {
    width: 100%;
    max-width: 336px;
    height: 280px;
}

.ad-square {
    width: 100%;
    max-width: 300px;
    height: 250px;
}

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



/* Mobile Responsive */
@media (max-width: 768px) {
    .ad-banner,
    .ad-leaderboard {
        max-width: 320px;
        height: 50px;
    }
    
    .ad-rectangle {
        max-width: 300px;
        height: 250px;
    }
}



/* In-content Ad Styles */
.content-ad {
    margin: 40px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.dark .content-ad {
    background: linear-gradient(135deg, #374151 0%, #4B5563 100%);
    border-color: #6B7280;
}

/* Ad Label */
.ad-label {
    font-size: 10px;
    color: #6b7280;
    text-transform: uppercase;
    margin-bottom: 5px;
    display: block;
}

.dark .ad-label {
    color: #9CA3AF;
}

/* Hover Effects */
.ad-container:hover {
    border-color: #cbd5e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dark .ad-container:hover {
    border-color: #6B7280;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Non-intrusive Animation */
@keyframes fadeInAd {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ad-container {
    animation: fadeInAd 0.6s ease-out;
}