/* Advertisement Styles */

.ad-container {
    margin: 40px auto;
    padding: 20px;
    text-align: center;
    background: #fafafa;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    max-width: 100%;
}

.ad-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    font-weight: 500;
}

/* Responsive Ad Sizes */

/* Banner Ad - 728x90 */
.ad-banner {
    min-height: 90px;
    max-width: 728px;
    margin: 40px auto;
}

/* Large Rectangle - 336x280 */
.ad-rectangle {
    min-height: 280px;
    max-width: 336px;
    margin: 40px auto;
}

/* Medium Rectangle - 300x250 */
.ad-medium-rectangle {
    min-height: 250px;
    max-width: 300px;
    margin: 40px auto;
}

/* Leaderboard - 970x90 */
.ad-leaderboard {
    min-height: 90px;
    max-width: 970px;
    margin: 40px auto;
}

/* Responsive Ad */
.ad-responsive {
    min-height: 100px;
    width: 100%;
    margin: 40px 0;
}

/* Mobile specific */
@media (max-width: 768px) {
    .ad-banner,
    .ad-leaderboard {
        display: none;
    }
    
    .ad-medium-rectangle,
    .ad-rectangle {
        max-width: 100%;
    }
}

/* Desktop specific */
@media (min-width: 769px) {
    .ad-mobile-only {
        display: none;
    }
}

/* Placeholder for AdSense (remove after approval) */
.ad-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    opacity: 0.7;
}

.ad-placeholder:hover {
    opacity: 0.9;
}

/* In-feed Ad (blends with content) */
.ad-infeed {
    margin: 20px 0;
    padding: 15px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
}

/* Sticky Ad (bottom of page on mobile) */
.ad-sticky-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 10px;
}

.ad-sticky-close {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.ad-sticky-close:hover {
    background: rgba(0,0,0,0.8);
}

/* Article In-Content Ad */
.ad-article-inline {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-left: 4px solid var(--brown-accent);
    border-radius: 5px;
}
