/* static/css/style.css */

/* =========================================
   ESTILOS GENERALES Y BARRA DE NAVEGACIÓN
   ========================================= */

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

/* Evita el doble tap zoom en móviles en toda la web */
button, .btn { 
    touch-action: manipulation; 
}

.navbar-custom {
    background-color: #6dc1c8;
    border-bottom: 3px solid #fae36c;
}

.navbar-custom .navbar-brand,
.navbar-custom .nav-link {
    color: #ffffff !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.navbar-custom .nav-link.active {
    font-weight: bold;
    border-bottom: 2px solid #ffffff;
}

/* =========================================
   ESTILOS FASE DE GRUPOS
   ========================================= */

.bg-grupo-a { background-color: #44898f !important; }
.bg-grupo-b { background-color: #c4a919 !important; }

.card-grupo {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(109, 193, 200, 0.2);
}

.header-grupo-a {
    background-color: #6dc1c8;
    color: #ffffff !important;
}

.header-grupo-b {
    background-color: #fae36c;
    color: #333333 !important;
}

.table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #5aa4aa;
}

.posicion-clasificado {
    background-color: rgba(109, 193, 200, 0.1) !important; 
}

/* =========================================
   ESTILOS CUADRO DE ELIMINATORIAS
   ========================================= */

.bracket-container {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0 60px 0;
}

.bracket-column-wrapper {
    display: flex;
    flex-direction: column;
    min-width: 260px;
    flex: 1;
}

.bracket-header {
    text-align: center;
    color: #5aa4aa;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 20px;
    height: 30px;
}

.bracket-matches {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 550px;
}

.match-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border: 1px solid #6dc1c8;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.match-team {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    border-bottom: 1px solid #f1f5f9;
}

.match-team:last-child {
    border-bottom: none;
}

.match-team.winner {
    background-color: rgba(250, 227, 108, 0.25); 
    font-weight: bold;
}

.match-score {
    background: #f8fafc;
    min-width: 30px;
    text-align: center;
    border-radius: 4px;
    font-weight: bold;
    color: #333333;
}

.match-team.winner .match-score {
    background: #6dc1c8; 
    color: white;
}

.champion-wrapper {
    position: relative;
    width: 100%;
}

.champion-wrapper .match-card {
    border: 3px solid #fae36c !important; 
}

.champion-badge {
    position: absolute;
    width: 100%;
    text-align: center;
    bottom: -45px;
    z-index: 1;
}

.champion-badge .badge {
    background-color: #fae36c !important;
    color: #333333 !important;
    border: 1px solid #e5c84a;
}

/* =========================================
   ESTILOS ACTA DIGITAL (MODO OSCURO)
   ========================================= */

/* Contenedor principal oscuro solo para el acta */
.acta-wrapper {
    background-color: #1a1a1a;
    color: white;
    min-height: 100vh;
    padding-top: 20px;
    border-radius: 8px;
}

.marcador-gigante { 
    font-size: 5rem; 
    font-weight: 900; 
    line-height: 1; 
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); 
}

.faltas-rojas { 
    color: #dc3545 !important; 
    font-weight: bold; 
    animation: parpadeo 1s infinite alternate; 
}

@keyframes parpadeo { 
    from { opacity: 1; } 
    to { opacity: 0.6; } 
}

.bg-local { 
    background: linear-gradient(135deg, #44898f, #6dc1c8); 
}

.bg-visitante { 
    background: linear-gradient(135deg, #c4a919, #fae36c); 
    color: #222 !important;
}

.jugador-card { 
    background-color: #2a2a2a; 
    border-radius: 8px; 
    margin-bottom: 10px; 
    padding: 10px; 
    color: white;
}

.btn-accion { 
    font-size: 1.2rem; 
    font-weight: bold; 
    padding: 10px 0; 
    border-radius: 6px; 
}

.btn-deshacer { 
    font-size: 0.8rem; 
    padding: 4px 8px; 
    color: #aaa; 
    border: 1px solid #555; 
    background: none; 
    border-radius: 4px; 
    margin-top: 5px; 
}