/* ===== HISTORIAL DE GANADORES - CSS ORGANIZADO ===== */

/* ========================================
   1. CONTENEDOR PRINCIPAL
   ======================================== */
.winners-history-section {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
}

.winners-container {
    background: #1f2937 !important;
    border-radius: 1rem !important;
    padding: 2rem !important;
    border: 1px solid #374151 !important;
    max-width: none !important;
    width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
}

.winners-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ========================================
   2. TÍTULO DEL HISTORIAL
   ======================================== */
.winners-title {
    color: #fbbf24 !important;
    font-size: 2rem !important;
    font-weight: bold !important;
    text-align: center !important;
    margin-bottom: 2rem !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

.winners-title-gradient {
    background: linear-gradient(to right, #fbbf24, #f97316) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
}

/* ========================================
   3. TARJETAS DE GANADORES
   ======================================== */
.winners-history-section .winner-card {
    background: linear-gradient(to right, #374151, #1f2937) !important;
    border-radius: 1rem !important;
    padding: 1.5rem !important;
    border: 1px solid #4b5563 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    gap: 1.5rem !important;
    margin: 0 0 1.5rem 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    min-height: 120px !important;
}

.winners-history-section .winner-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4) !important;
    border-color: #fbbf24 !important;
}

/* ========================================
   4. AVATAR Y INFO DEL GANADOR
   ======================================== */
.winners-history-section .winner-info {
    display: flex !important;
    align-items: center !important;
    gap: 1.25rem !important;
    flex: 0 0 auto !important;
    margin-right: 1.5rem !important;
    min-width: 200px !important;
}

.winners-history-section .winner-avatar-container {
    position: relative !important;
}

.winners-history-section .winner-avatar {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    border: 3px solid #fbbf24 !important;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.5) !important;
    position: relative !important;
    flex-shrink: 0 !important;
    object-fit: cover !important;
}

.winners-history-section .winner-trophy {
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    background: #fbbf24 !important;
    color: #000 !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    font-weight: bold !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.winners-history-section .winner-details {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
}

.winners-history-section .winner-name {
    color: white !important;
    font-weight: bold !important;
    font-size: 1.1rem !important;
    margin: 0 !important;
    display: block !important;
}

.winners-history-section .winner-badge {
    background: #fbbf24 !important;
    color: #000 !important;
    padding: 0.25rem 0.75rem !important;
    border-radius: 9999px !important;
    font-size: 0.75rem !important;
    font-weight: bold !important;
    display: inline-block !important;
    width: fit-content !important;
}

/* ========================================
   5. SECCIÓN DEL PREMIO
   ======================================== */
.winners-history-section .prize-section {
    flex: 1 !important;
    background: linear-gradient(to right, #581c87, #1e3a8a) !important;
    border-radius: 0.75rem !important;
    padding: 1.25rem !important;
    border: 2px solid #8b5cf6 !important;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    gap: 1.25rem !important;
    min-height: 90px !important;
    position: relative !important;
    overflow: hidden !important;
}

.winners-history-section .prize-image-container {
    position: relative !important;
    flex-shrink: 0 !important;
}

.winners-history-section .prize-glow {
    position: absolute !important;
    inset: 0 !important;
    background: #fbbf24 !important;
    border-radius: 0.5rem !important;
    filter: blur(8px) !important;
    opacity: 0.3 !important;
}

.winners-history-section .prize-image {
    position: relative !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 0.5rem !important;
    border: 2px solid #fbbf24 !important;
    object-fit: contain !important;
    background: white !important;
    padding: 0.25rem !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
    flex-shrink: 0 !important;
}

.winners-history-section .prize-details {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
}

.winners-history-section .prize-name {
    color: #fbbf24 !important;
    font-weight: bold !important;
    font-size: 1.25rem !important;
    margin: 0 !important;
    display: block !important;
}

.winners-history-section .prize-description {
    color: #d1d5db !important;
    font-size: 0.875rem !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    display: block !important;
}

.winners-history-section .prize-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 0.75rem !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
}

.winners-history-section .prize-game {
    background: #10b981 !important;
    color: white !important;
    padding: 0.4rem 0.8rem !important;
    border-radius: 9999px !important;
    font-size: 0.7rem !important;
    font-weight: bold !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
    white-space: nowrap !important;
}

.winners-history-section .prize-time {
    color: #9ca3af !important;
    font-size: 0.7rem !important;
    margin: 0 !important;
    display: inline-block !important;
    white-space: nowrap !important;
}

/* ========================================
   6. DISEÑO RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .winners-history-section {
        margin-top: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .winners-container {
        padding: 1.5rem !important;
    }
    
    .winners-title {
        font-size: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .winners-history-section .winner-card {
        flex-direction: column !important;
        text-align: center !important;
        gap: 1rem !important;
        padding: 1.25rem !important;
        min-height: auto !important;
    }
    
    .winners-history-section .winner-info {
        margin-right: 0 !important;
        margin-bottom: 1rem !important;
        justify-content: center !important;
        min-width: auto !important;
    }
    
    .winners-history-section .prize-section {
        width: 100% !important;
        min-height: auto !important;
        padding: 1rem !important;
    }
    
    .winners-history-section .prize-footer {
        flex-direction: column !important;
        gap: 0.75rem !important;
        align-items: center !important;
        margin-top: 1rem !important;
    }
    
    .winners-history-section .prize-game,
    .winners-history-section .prize-time {
        font-size: 0.75rem !important;
    }
}
