/* ===== FALLBACK BACKGROUND (Sécurité ultime) ===== */
body {
    background-color: #0f0f0f;
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes pulse-mic {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.pulse-icon {
    animation: pulse 2s infinite;
}

@keyframes blink-red {
    0%, 100% { opacity: 1; color: #ef4444; }
    50% { opacity: 0.3; color: #ef4444; }
}

.pulse-icon.logo-live {
    animation: blink-red 1.2s infinite;
    color: #ef4444 !important;
}

/* ===== LOCK EN LIVE ===== */
body.is-live-streaming header,
body.is-live-streaming #sidebar {
    pointer-events: none;
    opacity: 0.4;
}

.mic-active {
    animation: pulse-mic 1.5s infinite;
    color: #ff0000;
}

/* ===== STYLES GLOBAUX ===== */
.gradient-bg {
    background: linear-gradient(135deg, #6e45e2 0%, #88d3ce 100%);
}

.flowibe-font {
    font-family: 'Press Start 2P', cursive;
}

.flowibe-gradient {
    background: linear-gradient(90deg, #00FF00 0%, #7CFC00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-style: italic;
}

.login-gradient {
    background: linear-gradient(90deg, #00FF00 0%, #7CFC00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.1rem;
}

/* ===== HEADER ===== */
.header {
    position: relative;
    z-index: 50;
}

/* ===== SIDEBAR ===== */
.sidebar {
    transition: all 0.3s ease-in-out;
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    height: 100vh;
    background-color: rgba(17, 24, 39, 0.9);
    overflow-y: auto;
    transform: translateX(100%);
    z-index: 60;
}

.sidebar-open {
    transform: translateX(0);
}

/* Uniformisation des icônes dans le sidebar */
.icon-wrapper {
    width: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 12px;
}

/* ===== CARTES ===== */
.stream-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ===== BANDE D'ÉVÉNEMENTS ===== */
.events-band-container {
    position: relative;
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.events-band {
    padding: 10px 40px;
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
    /* Cacher la scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.events-band::-webkit-scrollbar {
    display: none;
}

/* Boutons de navigation flèches */
.events-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background-color: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.events-scroll-btn:hover {
    background-color: rgba(16, 185, 129, 0.8);
    border-color: #10B981;
    opacity: 1;
}

.events-scroll-left {
    left: 5px;
}

.events-scroll-right {
    right: 5px;
}

/* Cacher les boutons si pas assez de contenu */
.events-scroll-btn.hidden {
    display: none;
}

.events-band .event-item {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    cursor: pointer;
    position: relative;
    background-size: cover;
    background-position: center;
    color: white;
    transition: background-color 0.3s;
}

/* Ajouter un overlay sombre pour rendre le texte lisible */
.events-band .event-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    z-index: 0;
}

/* Assurer que le contenu est au-dessus de l'overlay */
.events-band .event-item > * {
    position: relative;
    z-index: 1;
}

/* Fonds d'image personnalisés pour chaque capsule */
.event-item.festival-electro {
    background-image: url('https://images.unsplash.com/photo-1514525253161-7a46d19cd819?q=80&w=600&auto=format&fit=crop');
}
.event-item.jazz-night {
    background-image: url('https://images.unsplash.com/photo-1514320291840-2e0a9bf2a9ae?q=80&w=600&auto=format&fit=crop');
}
.event-item.rock-legends {
    background-image: url('https://images.unsplash.com/photo-1498038432885-c6f3f1b912ee?q=80&w=600&auto=format&fit=crop');
}
.event-item.hip-hop-night {
    background-image: url('https://images.unsplash.com/photo-1532453288672-3a27e9be9efd?q=80&w=600&auto=format&fit=crop');
}

.events-band .event-profile-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #10B981;
    margin-right: 8px;
}

.events-band .event-content {
    margin-left: 8px;
}

.events-band .event-title {
    font-size: 12px;
}

.events-band .event-date {
    font-size: 10px;
}

/* ===== RECHERCHE MOBILE ===== */
.mobile-search-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.95);
    padding: 15px;
    z-index: 60;
    align-items: center;
}

.mobile-search-input {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 20px;
    padding: 10px 15px;
    color: white;
    outline: none;
}

.mobile-search-buttons {
    display: flex;
    margin-left: 10px;
}

.mobile-search-button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    margin-left: 10px;
    cursor: pointer;
}

/* Barre de recherche mobile inline */
.mobile-search-inline {
    display: none;
}

/* ===== STREAM CARDS ===== */
.stream-image {
    cursor: pointer;
}

.artist-profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #10B981;
    margin-right: 8px;
    cursor: pointer;
}

.stream-description {
    display: flex;
    align-items: center;
    padding: 8px 16px;
}

.artist-name {
    cursor: pointer;
    transition: color 0.3s;
}
.artist-name:hover {
    color: #10B981;
}

.stream-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

/* ===== MEDIA QUERIES MOBILE ===== */
@media (max-width: 768px) {
    /* --- HEADER MOBILE (2 lignes) --- */
    .header {
        flex-wrap: wrap;
        padding-bottom: 12px;
        gap: 10px;
        background-color: rgba(17, 24, 39, 0.9) !important;
    }

    /* Barre de recherche inline en 2ème ligne */
    .mobile-search-inline {
        display: flex !important;
        width: 100%;
        order: 3;
        margin-top: 4px;
    }

    /* Masquer les éléments desktop */
    .header .hidden.md\:block {
        display: none;
    }

    /* --- SIDEBAR MOBILE (Tiroir latéral) --- */
    .sidebar {
        width: 250px;
        max-width: 80%;
        height: 100vh;
        bottom: auto;
        left: auto;
        right: 0;
        top: 0;
        border-radius: 0;
        z-index: 60;
    }

    .sidebar-hidden {
        transform: translateX(100%);
    }

    .sidebar-open {
        transform: translateX(0);
    }

    /* Plus de modal de recherche */
    .mobile-search-container {
        display: none !important;
    }

    #search-input {
        display: none;
    }

    #voice-search {
        display: none;
    }

    /* Ajuster la taille de la vignette sur mobile */
    .artist-profile-pic {
        width: 32px;
        height: 32px;
        margin-right: 6px;
    }

    /* Ajuster la disposition du descriptif sur mobile */
    .stream-description {
        padding: 6px 12px;
    }

    /* Ajuster le texte sur mobile */
    .stream-description h3 {
        font-size: 14px;
    }
    .stream-overlay {
        padding: 6px 12px;
    }
    .stream-overlay span,
    .stream-overlay p {
        font-size: 12px;
    }

    /* Ajuster la taille des capsules sur mobile */
    .events-band .event-item {
        padding: 6px 12px;
    }
    .events-band .event-profile-pic {
        width: 24px;
        height: 24px;
        margin-right: 6px;
    }
    .events-band .event-title {
        font-size: 11px;
    }
    .events-band .event-date {
        font-size: 9px;
    }
}

/* Media query pour écrans intermédiaires (ordinateurs portables) */
@media (min-width: 769px) and (max-width: 1024px) {
    .stream-card {
        width: 100%;
    }
}

/* Indicateur Live - caché par défaut, affiché seulement si data-is-live="true" */
.live-indicator {
    display: none;
}

[data-is-live="true"] .live-indicator {
    display: block;
}

/* ===== BADGE PREMIUM (PARTENAIRE VÉRIFIÉ) ===== */
/* Badge utilisé dans toute l'application pour identifier les comptes Premium/Vérifiés */
.partner-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #00ff88;
    width: 24px;
    height: 24px;
    margin-left: 8px;
    position: relative;
    cursor: default;
    flex-shrink: 0;
}

.partner-badge i {
    font-size: 18px;
    font-weight: 900;
}

/* Tooltip au survol du badge */
.partner-badge::after {
    content: 'Partenaire Flowibe Vérifié';
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    font-weight: normal;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Flèche du tooltip */
.partner-badge::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

/* Afficher le tooltip au survol */
.partner-badge:hover::after,
.partner-badge:hover::before {
    opacity: 1;
}

/* Variante petite pour utilisation dans les labels, tarifs, etc. */
.partner-badge.small {
    width: 16px;
    height: 16px;
    margin-left: 4px;
}

.partner-badge.small i {
    font-size: 12px;
}

/* ========================================
   TOAST NOTIFICATIONS (Global)
   ======================================== */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
    display: none;
}
.toast.toast-error {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}
.toast.toast-warning {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}
.toast.toast-info {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* ========================================
   TOOLTIP GLOBAL - Version compatible launchstream
   ======================================== */
/* Note: Les tooltips de launchstream.css utilisent .tooltip .tooltiptext
   On ne doit PAS mettre display:none sur .tooltip car ça cache les boutons */
