/* ====================================
   ADSENSE.CSS - Google AdSense Ad Placements
   ==================================== */

/* Ad Container Base Styles */
.ad-container {
    background: var(--gray-50);
    border: 1px dashed var(--gray-200);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.ad-container::before {
    content: 'Advertisement';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-400);
    z-index: 1;
}

/* Header Banner Ad (728x90 Leaderboard) */
.ad-header-banner {
    width: 100%;
    max-width: 728px;
    height: 90px;
    margin: var(--space-md) auto;
}

/* Sidebar Ad (300x250 Medium Rectangle) */
.ad-sidebar {
    width: 300px;
    height: 250px;
    margin: var(--space-lg) 0;
}

/* In-Article Ad (responsive) */
.ad-in-article {
    width: 100%;
    min-height: 250px;
    margin: var(--space-xl) 0;
}

/* Footer Banner Ad */
.ad-footer-banner {
    width: 100%;
    max-width: 970px;
    height: 90px;
    margin: var(--space-lg) auto;
}

/* Mobile Responsive Ad (320x100 Large Mobile Banner) */
.ad-mobile {
    display: none;
    width: 320px;
    height: 100px;
    margin: var(--space-md) auto;
}

/* Ad Placeholder Text */
.ad-placeholder {
    color: var(--gray-400);
    font-size: var(--font-size-sm);
    text-align: center;
    padding: var(--space-lg);
}

.ad-placeholder i {
    display: block;
    font-size: 2rem;
    margin-bottom: var(--space-sm);
    color: var(--gray-300);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .ad-header-banner,
    .ad-footer-banner {
        max-width: 100%;
        height: auto;
        min-height: 50px;
    }
    
    .ad-sidebar {
        width: 100%;
        max-width: 300px;
        margin: var(--space-md) auto;
    }
    
    .ad-mobile {
        display: flex;
    }
}

/* Dark Theme Adjustments */
.theme-dark .ad-container {
    background: var(--gray-800);
    border-color: var(--gray-700);
}

.theme-dark .ad-container::before,
.theme-dark .ad-placeholder {
    color: var(--gray-500);
}

.theme-grey .ad-container {
    background: var(--gray-100);
    border-color: var(--gray-300);
}
