/* ========================================
   🎯 HERO SECTION COMPACTE - PAS TROP GRANDE !
   ======================================== */

/* === SECTION COMPACTE === */
.hero-section {
    min-height: auto !important;
}

/* === FILTRES === */
.hero-filters {
    min-width: 20rem;
}

.hero-filter-select {
    background: var(--color-secondary-light);
    border: 1px solid var(--color-border);
    border-radius: 0.6rem;
    padding: 0.8rem 1.2rem;
    color: var(--color-text);
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 18rem;
}

.hero-filter-select:hover,
.hero-filter-select:focus {
    border-color: var(--color-primary);
    outline: none;
}

.hero-filter-select option {
    background: var(--color-secondary-light);
    color: var(--color-text);
    padding: 0.8rem;
}

/* === LIVE STREAMERS COMPACTS === */
.hero-live-section {
    text-align: right;
}

.live-streamers-list {
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

.live-streamer-avatar {
    position: relative;
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 0.2rem solid var(--color-border);
    background: var(--color-secondary);
    flex-shrink: 0;
}

.live-streamer-avatar:hover {
    transform: scale(1.1);
    border-color: var(--color-primary);
    box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.3);
}

.live-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text);
    background: var(--color-secondary-light);
    text-transform: uppercase;
}

.live-indicator-dot {
    position: absolute;
    bottom: 0.1rem;
    right: 0.1rem;
    width: 1rem;
    height: 1rem;
    background: #ff4444;
    border-radius: 50%;
    border: 0.2rem solid var(--color-bg);
    animation: pulse-live 2s infinite;
}

@keyframes pulse-live {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.7); 
    }
    50% { 
        box-shadow: 0 0 0 0.3rem rgba(255, 68, 68, 0); 
    }
}

/* === TOOLTIP HOVER === */
.live-streamer-avatar::after {
    content: attr(data-streamer-name) "\A" attr(data-streamer-game) "\A" "👁️ " attr(data-streamer-viewers) " viewers";
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-bg);
    color: var(--color-text);
    padding: 0.6rem 1rem;
    border-radius: 0.4rem;
    font-size: 1.1rem;
    font-weight: 500;
    white-space: pre-line;
    text-align: center;
    line-height: 1.2;
    border: 1px solid var(--color-border);
    box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    min-width: 14rem;
    max-width: 18rem;
}

.live-streamer-avatar::before {
    content: '';
    position: absolute;
    bottom: 105%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 0.5rem solid transparent;
    border-right: 0.5rem solid transparent;
    border-top: 0.5rem solid var(--color-bg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
}

.live-streamer-avatar:hover::after,
.live-streamer-avatar:hover::before {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   📱 RESPONSIVE - MOBILE FIRST
   ======================================== */
@media (max-width: 767px) {
    .hero-section {
        padding: 1.5rem 1rem !important;
        min-height: auto !important;
        max-height: none !important;
    }
    
    /* Titre plus compact sur mobile */
    .txt-center.mb-32 {
        margin-bottom: 1.5rem !important;
    }
    
    .txt-center.mb-32 h1 {
        font-size: 2rem !important;
        margin-bottom: 0.8rem !important;
        line-height: 1.2 !important;
    }
    
    .txt-center.mb-32 p {
        font-size: 1.3rem !important;
        margin-bottom: 1rem !important;
        line-height: 1.3 !important;
    }
    
    /* Stats en ligne compacte sur mobile */
    .d-flex.justify-center {
        flex-direction: row !important;
        gap: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .d-flex.justify-center > div {
        text-align: center;
        flex: 1;
    }
    
    .d-flex.justify-center .btn-1 {
        margin-left: 0 !important;
        margin-top: 0 !important;
        padding: 0.6rem 1.2rem !important;
        font-size: 1.2rem !important;
        width: 100% !important;
        max-width: 20rem !important;
    }
    
    /* Filtres et live en colonne compacte */
    .d-flex.justify-between {
        flex-direction: column;
        gap: 1rem !important;
        align-items: center !important;
    }
    
    .hero-filters {
        width: 100%;
        text-align: center;
        order: 2;
    }
    
    .hero-live-section {
        width: 100%;
        text-align: center;
        order: 1;
    }
    
    .hero-filter-select {
        width: 100%;
        max-width: 28rem;
        padding: 0.6rem 1rem !important;
        font-size: 1.3rem !important;
    }
    
    /* Streamers live très compacts */
    .live-streamers-list {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.6rem !important;
        max-width: 100% !important;
        margin-top: 0.5rem !important;
    }
    
    /* Avatars encore plus petits sur mobile */
    .live-streamer-avatar {
        width: 2.8rem !important;
        height: 2.8rem !important;
        border-width: 0.15rem !important;
    }
    
    .live-indicator-dot {
        width: 0.7rem !important;
        height: 0.7rem !important;
        bottom: 0 !important;
        right: 0 !important;
        border-width: 0.15rem !important;
    }
    
    /* Masquer les tooltips sur mobile */
    .live-streamer-avatar::after,
    .live-streamer-avatar::before {
        display: none !important;
    }
    
    /* Texte "En direct" plus petit */
    .hero-live-section > div:first-child {
        font-size: 1.2rem !important;
        margin-bottom: 0.5rem !important;
    }
}

/* ========================================
   📱 RESPONSIVE - TABLET (min-width: 768px)
   ======================================== */
@media (min-width: 768px) {
    .live-streamer-avatar {
        width: 4rem;
        height: 4rem;
    }
    
    .live-indicator-dot {
        width: 1.1rem;
        height: 1.1rem;
        bottom: 0.2rem;
        right: 0.2rem;
    }
}

/* ========================================
   💻 RESPONSIVE - DESKTOP (min-width: 1024px)
   ======================================== */
@media (min-width: 1024px) {
    .live-streamer-avatar {
        width: 4.4rem;
        height: 4.4rem;
    }
    
    .live-streamer-avatar:hover {
        transform: scale(1.15);
    }
    
    .live-indicator-dot {
        width: 1.2rem;
        height: 1.2rem;
        bottom: 0.3rem;
        right: 0.3rem;
    }
    
    .live-avatar-placeholder {
        font-size: 1.3rem;
    }
}
