/* =============================================
   ESTILOS DINÁMICOS - Quiniela Deportiva ⚽
   Tema: Nocturno   ============================================= */

:root {
    --primary-color: #0d1b2a;
    --primary-dark: #0a1521;
    --primary-light: #555f69;
    --secondary-color: #e63946;
    --accent-color: #f4a261;
    --local-color: #28a745;
    --empate-color: #f4a261;
    --visitante-color: #dc3545;
}

/* Fondo del encabezado de jornada */
/* Navbar y Header unificados - Imagen personalizada */
.bg-primary-custom {
    background-color: #0d1117;
    background-image: 
        linear-gradient(180deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.65) 100%),
        url('../../uploads/fondos/fondo_header.jpg?v=1770259851');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
.header-jornada {
    background-color: #0d1117;
    background-image: 
        linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.3) 100%),
        url('../../uploads/fondos/fondo_header.jpg?v=1770259851');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    min-height: 350px;
}
/* Ajustes responsivos */
@media (min-width: 1200px) {
    .header-jornada {
        min-height: 400px;
    }
}
@media (max-width: 768px) {
    .header-jornada {
        min-height: 300px;
    }
}
.header-jornada::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 120% 80% at 50% 20%, rgba(255,255,255,0.05) 0%, transparent 60%);
    pointer-events: none;
}

/* Tamaño de logos de equipos */
.equipo-logo {
    width: 50px !important;
    height: 50px !important;
}

.equipo-nombre {
    font-size: 0.75rem !important;
    max-width: 70px !important;
}

/* Estilos del navbar según configuración (solo cuando usa tema) */

/* Efecto del contador regresivo */
.countdown-item {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 15px 25px;
    min-width: 80px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.countdown-number {
    color: #f4a261;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Estilos de botones de predicción según configuración */
@keyframes shake-effect {
            0%, 100% { transform: scale(1.1) rotate(0deg); }
            25% { transform: scale(1.1) rotate(-5deg); }
            75% { transform: scale(1.1) rotate(5deg); }
        }
.btn-prediccion input[type="radio"]:checked + .badge-local {
    background-color: #28a745;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.5);
    animation: shake-effect 0.5s ease;}

.btn-prediccion input[type="radio"]:checked + .badge-empate {
    background-color: #f4a261;
    color: #212529;
    transform: scale(1.1);
    box-shadow: 0 0 20px #f4a26180;
    animation: shake-effect 0.5s ease;}

.btn-prediccion input[type="radio"]:checked + .badge-visitante {
    background-color: #dc3545;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(220, 53, 69, 0.5);
    animation: shake-effect 0.5s ease;}

/* Colores de badges */
.badge-local {
    background-color: #e8f5e9;
    color: #28a745;
    border: 3px solid #28a745;
}

.badge-empate {
    background-color: #fcecdf;
    color: #aa7143;
    border: 3px solid #f4a261;
}

/* Card headers con colores del tema */
.card-header.bg-primary-custom,
.table-admin th,
.bg-primary {
    background: linear-gradient(135deg, #0d1b2a 0%, #0a1521 100%) !important;
}

.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%) !important;
}

/* Botón WhatsApp flotante con efecto */
.btn-whatsapp-float {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    animation: float-bounce 2s ease-in-out infinite;
}

@keyframes float-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Tabla de partidos con estilo futbolero */
.partido-row {
    transition: all 0.3s ease;
}

.partido-row:hover {
    background: linear-gradient(90deg, transparent, rgba(230, 57, 70, 0.1), transparent);
}

.partido-row.selected {
    background: linear-gradient(90deg, transparent, rgba(230, 57, 70, 0.15), transparent);
    border-left: 4px solid #e63946;
}

/* Footer con tema */
footer {
    background: linear-gradient(180deg, #212529 0%, #0a1521 100%) !important;
}

/* Links y botones primarios */
.btn-primary {
    background: linear-gradient(135deg, #0d1b2a 0%, #0a1521 100%);
    border-color: #0d1b2a;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0a1521 0%, #09121d 100%);
    border-color: #0a1521;
}

.text-primary {
    color: #0d1b2a !important;
}

/* Modal con estilo */
.modal-header.bg-success {
    background: linear-gradient(135deg, #e63946 0%, #b82d38 100%) !important;
}

/* Decoración adicional */

/* Efecto de celebración al seleccionar */
@keyframes celebration {
    0% { transform: scale(1); }
    25% { transform: scale(1.2) rotate(-5deg); }
    50% { transform: scale(1.2) rotate(5deg); }
    75% { transform: scale(1.1) rotate(-2deg); }
    100% { transform: scale(1.1) rotate(0deg); }
}

.btn-prediccion input[type="radio"]:checked + span {
    animation: celebration 0.4s ease-out;
}

/* Estilos para página de resultados - primer lugar */
.table-warning {
    background: linear-gradient(90deg, transparent, #f4a26120, transparent) !important;
}

/* Admin sidebar con el tema */
.admin-sidebar {
    background: linear-gradient(180deg, #0d1b2a 0%, #0a1521 100%) !important;
}

.admin-sidebar .nav-link.active {
    background-color: #e63946 !important;
}
