/**
 * ═══════════════════════════════════════════════════════════════════════════
 * FOOTER - WIDGETS STREAMERS
 * ═══════════════════════════════════════════════════════════════════════════
 * 
 * OBJECTIF:
 * Styles CSS pour les widgets de streamers (live et offline) dans la sidebar.
 * 
 * FONCTIONNALITÉS:
 * - Styles de base pour les widgets
 * - Avatars et indicateurs live
 * - Animations et transitions
 * - Responsive et optimisation d'espace
 * 
 * Last updated: 2026-05-06
 * ═══════════════════════════════════════════════════════════════════════════
 */

/* ═══════════════════════════════════════════════════════════════════════════
   STYLES DE BASE POUR LES WIDGETS
   ═══════════════════════════════════════════════════════════════════════════ */

.sidebar-widget {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-bottom: 1rem;
}

.sidebar-widget h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.75rem 0;
    padding: 0;
    display: block !important;
}

/* Forcer l'affichage du widget live */
.live-streamers-widget {
    overflow: visible !important;
}

.live-streamers-widget .no-live,
.live-streamers-widget .streamers-upcoming {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   AVATARS ET INFOS DES STREAMERS
   ═══════════════════════════════════════════════════════════════════════════ */

.streamer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.streamer-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.live-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: #ef4444;
    border: 2px solid var(--bg-secondary, #1a1a1a);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.streamer-info {
    flex: 1;
    min-width: 0;
}

.streamer-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.streamer-game {
    font-size: 0.8rem;
    color: #c4b5fd;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.viewer-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONTENEUR DES STREAMERS
   ═══════════════════════════════════════════════════════════════════════════ */

.widget-streamer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.widget-streamer:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

.widget-streamer.live {
    border-left: 2px solid #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.08));
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.widget-streamer.live:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.12));
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.widget-streamer.offline {
    border-left: 2px solid rgba(255, 255, 255, 0.2);
}

.widget-streamer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.widget-streamer-info {
    flex: 1;
    min-width: 0;
}

.widget-streamer-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.widget-streamer-game {
    font-size: 0.8rem;
    color: #c4b5fd;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.widget-streamer-viewers {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.widget-streamer-status {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.widget-streamer-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.widget-meta-item {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
}

.widget-streamer-title {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.widget-live-indicator {
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

.widget-offline-indicator {
    font-size: 1.2rem;
    opacity: 0.5;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ÉTATS VIDES ET CHARGEMENT
   ═══════════════════════════════════════════════════════════════════════════ */

.no-streamers {
    text-align: center;
    padding: 1.5rem 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.loading-text {
    text-align: center;
    padding: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    animation: pulse 1.5s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════════════════════
   OPTIMISATION D'ESPACE POUR LES SIDEBARS
   ═══════════════════════════════════════════════════════════════════════════ */

.sidebar-left,
.sidebar-right {
    padding: 0.5rem !important;
}

.sidebar-left .nav-item,
.sidebar-left .menu-item,
.sidebar-left a {
    margin: 0.1rem 0 !important;
    line-height: 1.2 !important;
}

.sidebar-right .sidebar-widget {
    padding: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

.sidebar-right .sidebar-widget h3 {
    font-size: 0.9rem !important;
    margin: 0 0 0.3rem 0 !important;
    padding: 0 !important;
}

.sidebar-right .widget-streamer {
    padding: 0.3rem !important;
    margin-bottom: 0.3rem !important;
    gap: 0.4rem !important;
}

.sidebar-right .widget-streamer-avatar,
.sidebar-right .streamer-avatar {
    width: 30px !important;
    height: 30px !important;
}

.sidebar-right .widget-streamer-name,
.sidebar-right .streamer-name {
    font-size: 0.8rem !important;
    line-height: 1.2 !important;
}

.sidebar-right .widget-streamer-game,
.sidebar-right .widget-streamer-viewers,
.sidebar-right .streamer-game,
.sidebar-right .viewer-count {
    font-size: 0.7rem !important;
    margin-top: 0.1rem !important;
}

.sidebar-right .widget-streamer-title {
    display: none !important;
}

.sidebar-right .widget-streamer-meta {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   STYLES SPÉCIFIQUES DES WIDGETS INDIVIDUELS
   ═══════════════════════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────────────────────────────────────
   DONATIONS WIDGET
   ─────────────────────────────────────────────────────────────────────────── */

.donation-upcoming {
    text-align: center;
    padding: 1rem 0;
}

.upcoming-icon-small {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    animation: pulse 2s infinite;
}

.upcoming-message {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.event-name-small {
    font-size: 0.8rem;
    color: var(--text);
    font-weight: 600;
    margin-top: 0.5rem;
}

.donation-widget {
    padding: 0.5rem;
}

.donation-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #10b981;
    margin: 0.5rem 0;
}

.donation-widget {
    padding: 0.5rem;
}

.donation-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: #FF6FB1;
    margin: 0.3rem 0;
}

.donation-label {
    font-size: 0.75rem;
    margin: 0.2rem 0;
    line-height: 1.2;
    color: var(--text-muted);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF6FB1, #ff4d94);
    transition: width 0.3s ease;
}

.btn-donate-small {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    margin-top: 0.3rem;
    background: linear-gradient(135deg, #ff6fb1, #ff4d94);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-donate-small:hover {
    background: linear-gradient(135deg, #ff4d94, #ff2d7a);
    transform: translateY(-2px);
}

/* ───────────────────────────────────────────────────────────────────────────
   EVENT WIDGET
   ─────────────────────────────────────────────────────────────────────────── */

.event-widget {
    padding: 0.5rem;
}

.event-name {
    font-size: 0.9rem;
    margin: 0 0 0.3rem 0;
    color: var(--text);
    font-weight: 600;
}

.event-dates,
.event-desc {
    font-size: 0.75rem;
    margin: 0.2rem 0;
    line-height: 1.3;
    color: var(--text-muted);
}

.event-dates {
    color: #c4b5fd;
}

/* ───────────────────────────────────────────────────────────────────────────
   LIVE STREAMERS WIDGET
   ─────────────────────────────────────────────────────────────────────────── */

.streamers-upcoming {
    text-align: center;
    padding: 1.5rem 1rem;
}

.streamers-upcoming .upcoming-icon-small {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.streamers-upcoming .upcoming-message {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.no-live {
    text-align: center;
    padding: 0.5rem 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* ───────────────────────────────────────────────────────────────────────────
   OFFLINE STREAMERS WIDGET
   ─────────────────────────────────────────────────────────────────────────── */

.no-offline {
    text-align: center;
    padding: 1.5rem 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.offline-streamers-widget {
    max-height: 50vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #FF6FB1 rgba(255, 255, 255, 0.05);
    transition: height 0.3s ease;
}

.offline-streamers-widget::-webkit-scrollbar {
    width: 2px;
    height: 2px;
}

.offline-streamers-widget::-webkit-scrollbar-track {
    background: transparent;
}

.offline-streamers-widget::-webkit-scrollbar-thumb {
    background: rgba(255, 111, 177, 0.6);
    border-radius: 1px;
}

.offline-streamers-widget::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 111, 177, 0.8);
}

/* Tooltips pour streamers offline */
.widget-streamer.offline {
    position: relative;
}

.widget-streamer.offline .streamer-tooltip {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 10px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #FF6FB1;
    border-radius: 12px;
    padding: 1rem;
    min-width: 280px;
    max-width: 320px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10000;
    box-shadow: 0 8px 32px rgba(255, 111, 177, 0.3);
    pointer-events: none;
}

.widget-streamer.offline:hover .streamer-tooltip {
    opacity: 1;
    visibility: visible;
}

.tooltip-last-stream {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 111, 177, 0.2);
}

.tooltip-last-stream-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.tooltip-last-stream-info {
    flex: 1;
}

.tooltip-last-stream-label {
    font-size: 0.75rem;
    color: #FF6FB1;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.tooltip-last-stream-date,
.tooltip-last-stream-ago {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0.15rem 0;
}

.tooltip-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.tooltip-game {
    font-size: 0.8rem;
    color: #c4b5fd;
    margin-bottom: 0.75rem;
}

.tooltip-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tooltip-stat {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.tooltip-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tooltip-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.tooltip-badge-partner {
    background: linear-gradient(135deg, #9146FF, #772CE8);
    color: white;
}

.tooltip-badge-affiliate {
    background: linear-gradient(135deg, #00C7AC, #00A896);
    color: white;
}

/**
 * ═══════════════════════════════════════════════════════════════════════════
 * FIN DU FICHIER
 * ═══════════════════════════════════════════════════════════════════════════
 */
