/* ========================================
   GESTION RESPONSIVE DES PUBLICITÉS
   Radio 100% Johnny - JohnnyRoad Radio
   ======================================== */

/* ========================================
   CONTENEURS GÉNÉRAUX
   ======================================== */
.ad-container {
    margin: 40px auto;
    padding: 20px;
    text-align: center;
    max-width: 100%;
    background: rgba(26, 26, 46, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease;
}

.ad-container:hover {
    background: rgba(26, 26, 46, 0.5);
    border-color: rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}

.ad-label {
    text-align: center;
    color: #888;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    opacity: 0.7;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

/* ========================================
   PUB DESKTOP UNIQUEMENT (728x90)
   Visible sur écrans larges uniquement
   ======================================== */
.ad-desktop-only {
    display: block;
    margin: 40px auto;
}

/* Masquer sur tablette et mobile */
@media (max-width: 768px) {
    .ad-desktop-only {
        display: none !important;
    }
}

/* ========================================
   PUB MOBILE UNIQUEMENT (320x100)
   Visible sur smartphones uniquement
   ======================================== */
.ad-mobile-only {
    display: none; /* Masqué par défaut sur desktop */
    margin: 20px auto;
}

/* Afficher uniquement sur mobile */
@media (max-width: 768px) {
    .ad-mobile-only {
        display: block !important;
    }
}

/* ========================================
   PUB SIDEBAR (300x250)
   Visible sur desktop et tablette
   ======================================== */
.ad-sidebar {
    display: block;
    margin: 30px auto;
    max-width: 300px;
}

/* Masquer uniquement sur petit mobile */
@media (max-width: 480px) {
    .ad-sidebar {
        display: none !important;
    }
}

/* ========================================
   STYLE DES BLOCS ADSENSE
   ======================================== */
.adsbygoogle {
    max-width: 100%;
    margin: 0 auto;
    display: block !important;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

/* Tablette */
@media (max-width: 1024px) {
    .ad-container {
        margin: 30px auto;
        padding: 15px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .ad-container {
        margin: 20px 10px;
        padding: 15px 10px;
    }
    
    .ad-label {
        font-size: 10px;
        margin-bottom: 10px;
    }
}

/* ========================================
   ANIMATIONS & EFFECTS
   ======================================== */
@keyframes adFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ========================================
   THEME JOHNNY (optionnel)
   Intégration avec le design rock du site
   ======================================== */
.ad-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ad-container:hover::before {
    opacity: 0.5;
}

/* ========================================
   ESPACEMENTS AVEC LES SECTIONS
   ======================================== */
.section-spacer + .ad-container {
    margin-top: 60px;
}

.ad-container + .section-spacer {
    margin-top: 60px;
}

/* ========================================
   PROTECTION ANTI-ADBLOCK MESSAGE
   (optionnel - pour informer l'utilisateur)
   ======================================== */
.ad-blocked-message {
    display: none;
    padding: 20px;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 12px;
    color: #ff6b6b;
    text-align: center;
    margin: 20px auto;
    max-width: 600px;
}

.ad-blocked-message i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

/* ========================================
   PRINT STYLES (masquer les pubs à l'impression)
   ======================================== */
@media print {
    .ad-container,
    .ad-desktop-only,
    .ad-mobile-only,
    .ad-sidebar {
        display: none !important;
    }
}
