/**
 * Ads Component Styles
 * Loaded only on pages with ads enabled
 */

/* Ad Container Base */
.ad-container {
    text-align: center;
    margin: 24px 0;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.ad-container ins.adsbygoogle {
    display: block;
}

/* Ad Anchor (Bottom Fixed) */
.ad-anchor {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999999;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 8px 0;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-anchor .ad-close {
    position: absolute;
    top: -30px;
    right: 10px;
    width: 28px;
    height: 28px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    padding-bottom: 2px;
}

/* In-Content Ads */
.ad-in-content {
    margin: 32px 0;
    text-align: center;
    clear: both;
}

.ad-in-content::before {
    content: 'Publicité';
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
    margin-bottom: 8px;
}

/* Sidebar Ads */
.ad-sidebar {
    margin: 20px 0;
    text-align: center;
}

/* Sticky Sidebar Ad */
.ad-sidebar-sticky {
    position: sticky;
    top: 100px;
    margin: 20px 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .ad-container {
        margin: 16px 0;
        min-height: 50px;
    }
    
    .ad-anchor {
        min-height: 50px;
        padding: 4px 0;
    }
    
    .ad-in-content::before {
        font-size: 9px;
    }
    
    /* Hide sidebar ads on mobile */
    .ad-sidebar,
    .ad-sidebar-sticky {
        display: none;
    }
}

/* Ad Block Detection Message */
.adblock-message {
    display: none;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    text-align: center;
}

.adblock-message p {
    margin: 0;
    color: #856404;
    font-size: 14px;
}
