/**
 * Estilos personalizados basados en Figma
 * Fuente: Poppins
 * Colores principales: #E8DCC5 (títulos), #EB5F0A (acentos)
 */

/* Importar fuente Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ========================================
   SECCIÓN: PARTIDOS JUGADOS
   ======================================== */

/* Header de la sección */
.dps-section-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 30px !important;
    padding-bottom: 20px !important;
    border-bottom: 2px solid #363233 !important;
}

/* Título principal */
.dps-section-title {
    font-size: 32px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    color: #E8DCC5 !important;
    font-family: 'Poppins', sans-serif !important;
}

/* Badge contador de partidos */
.dps-match-count-badge {
    color: #EB5F0A !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    font-family: 'Poppins', sans-serif !important;
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* ========================================
   CARDS DE PARTIDOS
   ======================================== */

/* Card de partido */
.dps-partido-item {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 16px !important;
    margin-bottom: 12px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-family: 'Poppins', sans-serif !important;
}

/* Card de partido hover */
.dps-partido-item:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(235, 95, 10, 0.3) !important;
}

/* Card de partido activo/seleccionado */
.dps-partido-item.active {
    background: rgba(235, 95, 10, 0.1) !important;
    border: 2px solid #EB5F0A !important;
    box-shadow: 0 0 20px rgba(235, 95, 10, 0.3) !important;
}

/* Fecha del partido */
.dps-partido-date {
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.6) !important;
    margin-bottom: 8px !important;
    font-family: 'Poppins', sans-serif !important;
}

/* Nombre del rival */
.dps-rival-name {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #E8DCC5 !important;
    font-family: 'Poppins', sans-serif !important;
}

/* Resultado del partido */
.dps-partido-result {
    font-size: 16px !important;
    font-weight: 700 !important;
    font-family: 'Poppins', sans-serif !important;
}

/* Badge Local/Visitante */
.dps-location-badge {
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    font-family: 'Poppins', sans-serif !important;
}

/* Competición */
.dps-partido-comp {
    font-size: 11px !important;
    color: rgba(255, 255, 255, 0.5) !important;
    margin-top: 8px !important;
    font-family: 'Poppins', sans-serif !important;
}

/* ========================================
   RADAR DE RENDIMIENTO
   ======================================== */

/* Card del radar */
.dps-detail-card {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
}

/* Header del card */
.dps-card-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 20px !important;
}

/* Título del card con icono */
.dps-card-header h4 {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #E8DCC5 !important;
    font-family: 'Poppins', sans-serif !important;
}

/* Select del radar (Ataque, Defensa, etc.) */
.dps-select-small,
#dps-radar-preset {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    color: #fff !important;
    font-size: 13px !important;
    font-family: 'Poppins', sans-serif !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.dps-select-small:hover,
#dps-radar-preset:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(235, 95, 10, 0.5) !important;
}

.dps-select-small:focus,
#dps-radar-preset:focus {
    outline: none !important;
    border-color: #EB5F0A !important;
    box-shadow: 0 0 0 3px rgba(235, 95, 10, 0.2) !important;
}

/* Opciones del select */
.dps-select-small option,
#dps-radar-preset option {
    background: #1a1a2e !important;
    color: #fff !important;
    font-family: 'Poppins', sans-serif !important;
}

/* Container del radar */
.dps-radar-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 20px 0 !important;
}

/* ========================================
   FILTROS Y CONTROLES
   ======================================== */

/* Filtros del radar */
.dps-radar-filters {
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
}

/* ========================================
   ESTADÍSTICAS Y DETALLES
   ======================================== */

/* Stats del partido */
.dps-partido-stats {
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    margin-top: 8px !important;
}

.dps-pstat {
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    font-family: 'Poppins', sans-serif !important;
}

.dps-pstat-goal {
    color: #EB5F0A !important;
    font-weight: 600 !important;
}

/* ========================================
   LAYOUT DE PARTIDOS
   ======================================== */

.dps-partidos-layout {
    display: grid !important;
    grid-template-columns: 400px 1fr !important;
    gap: 30px !important;
}

.dps-partidos-list-section {
    max-height: 800px !important;
    overflow-y: auto !important;
}

/* Scrollbar personalizado */
.dps-partidos-list-section::-webkit-scrollbar {
    width: 8px !important;
}

.dps-partidos-list-section::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2) !important;
    border-radius: 4px !important;
}

.dps-partidos-list-section::-webkit-scrollbar-thumb {
    background: rgba(235, 95, 10, 0.5) !important;
    border-radius: 4px !important;
}

.dps-partidos-list-section::-webkit-scrollbar-thumb:hover {
    background: rgba(235, 95, 10, 0.7) !important;
}

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

@media (max-width: 1024px) {
    .dps-partidos-layout {
        grid-template-columns: 1fr !important;
    }
    
    .dps-partidos-list-section {
        max-height: 400px !important;
    }
}

@media (max-width: 768px) {
    .dps-section-title {
        font-size: 24px !important;
    }
    
    .dps-match-count-badge {
        font-size: 14px !important;
    }
    
    .dps-card-header h4 {
        font-size: 16px !important;
    }
    
    .dps-partido-item {
        padding: 12px !important;
    }
}

/* ========================================
   COLORES DE RESULTADO
   ======================================== */

.dps-result-win {
    color: #28a745 !important;
}

.dps-result-draw {
    color: #ffc107 !important;
}

.dps-result-loss {
    color: #dc3545 !important;
}

/* ========================================
   ICONOS SVG
   ======================================== */

.dps-card-header svg {
    flex-shrink: 0 !important;
}

/* ========================================
   ANIMACIONES
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dps-partido-item {
    animation: fadeIn 0.3s ease !important;
}

/* ========================================
   UTILIDADES
   ======================================== */

.dps-text-poppins {
    font-family: 'Poppins', sans-serif !important;
}

.dps-color-primary {
    color: #E8DCC5 !important;
}

.dps-color-accent {
    color: #EB5F0A !important;
}

.dps-bg-dark {
    background: rgba(0, 0, 0, 0.3) !important;
}

.dps-border-light {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.dps-border-accent {
    border: 2px solid #EB5F0A !important;
}
