/* 
 * senior.css - Liga 3x3 2025 Senior Masculí
 * Estilos específicos para la categoría Senior Masculí
 * Colores temáticos: Azul (#538ED5) según especificación oficial
 * ACTUALIZADO: Navbar responsive completo
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    min-height: 100vh;
    color: #333;
}

/* HEADER */
header {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    padding: 20px;
    text-align: center;
    color: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-bottom: 2px solid rgba(255,255,255,0.2);
}

.header-content h1 {
    font-size: 3em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    color: #000; /* Título en negro */
}

/* INFORMACIÓN DEL CLUB CON LOGO */
.club-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
}

.club-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 3px solid rgba(255,255,255,0.8);
    transition: all 0.3s ease;
}

.club-logo:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* Ajustar el título del club */
.club-info h1 {
    margin: 0;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    color: #000; /* También en negro */
}

.header-content h3 {
    font-size: 1.3em;
    opacity: 0.9;
    font-weight: 300;
}

/* ✅ ESPECÍFICO SENIOR: Color azul para los iconos */
.basketball-icon {
    font-size: 2em;
    margin: 0 20px;
    animation: bounce 2s infinite;
    color: #538ED5;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* NAVEGACIÓN - ACTUALIZADA PARA 6 ELEMENTOS RESPONSIVE */
.navbar {
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 20px; /* Reducido para que quepan 6 elementos */
    flex-wrap: wrap; /* Permite envolver en pantallas pequeñas */
}

.nav-item {
    position: relative;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 12px 20px; /* Padding reducido para 6 elementos */
    border-radius: 25px;
    font-weight: 600;
    font-size: 15px; /* Tamaño ligeramente menor */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border: 2px solid transparent;
    white-space: nowrap; /* Evita que el texto se rompa */
}

.nav-link:hover,
.nav-item.active .nav-link {
    background: rgba(255,255,255,0.9);
    color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 2px solid white;
}

.nav-link i {
    font-size: 1.1em; /* Iconos ligeramente más pequeños */
}

/* CONTENIDO PRINCIPAL */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.page-title h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-title p {
    font-size: 1.2em;
    opacity: 0.9;
}

/* ESTADÍSTICAS DE LA CATEGORÍA */
.category-stats {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
}

/* ✅ ESPECÍFICO SENIOR: Color azul para números */
.stat-number {
    font-size: 2.2em;
    font-weight: bold;
    color: #538ED5;
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9em;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* INFORMACIÓN DE FINALES - ESPECÍFICA SENIOR */
.finals-info {
    background: rgba(83, 142, 213, 0.9);
    color: #000;
    border: 2px solid #538ED5;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(83, 142, 213, 0.3);
}

.finals-info h3 {
    color: #1976D2;
    margin-bottom: 10px;
    font-size: 1.5em;
}

.finals-info p {
    color: #000;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.4;
}

/* SECCIONES */
.section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ✅ ESPECÍFICO SENIOR: Color azul para títulos */
.section h3 {
    color: #538ED5;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}

/* TABLA DE PARTIDOS */
.matches-table {
    overflow-x: auto;
}

.matches-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.matches-table th, 
.matches-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.matches-table th {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.matches-table tbody tr:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%);
    transform: scale(1.01);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* CELDAS ESPECÍFICAS DE LA TABLA DE PARTIDOS */
.team-cell {
    font-weight: 600;
    position: relative;
}

.result-cell {
    text-align: center;
}

.score {
    font-size: 1.3em;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 10px;
    display: inline-block;
}

.score.programado {
    background: rgba(255, 193, 7, 0.2);
    color: #856404;
    border: 2px solid #ffc107;
}

.score.jugado {
    background: rgba(40, 167, 69, 0.2);
    color: #155724;
    border: 2px solid #28a745;
}

/* ICONOS EN LA TABLA */
.winner-icon {
    color: #ffd700;
    margin-right: 8px;
    font-size: 1.1em;
}

.tie-icon {
    color: #6c757d;
    margin-right: 8px;
    font-size: 1.1em;
}

/* ESTADOS */
.status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
    text-align: center;
    display: inline-block;
}

.status.programado {
    background: #ffc107;
    color: #000;
}

.status.jugado {
    background: #28a745;
    color: #fff;
}

.status.empate {
    background: #6c757d;
    color: #fff;
}

/* PISTA Y HORA - ESPECÍFICO SENIOR */
.pista {
    background: rgba(83, 142, 213, 0.4);
    color: #1976D2;
    padding: 4px 10px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.9em;
}

.hora {
    background: rgba(255, 235, 59, 0.2);
    color: #f57c00;
    padding: 4px 10px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 0.9em;
}

.sin-pista, .sin-hora {
    color: #6c757d;
    font-style: italic;
}

/* TABLA DE CLASIFICACIÓN */
.classification-table {
    overflow-x: auto;
}

.classification-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.classification-table th, 
.classification-table td {
    padding: 15px 10px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.classification-table th {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.classification-table tbody tr:hover {
    background: rgba(83, 142, 213, 0.1);
}

/* POSICIONES ESPECIALES - ESPECÍFICO SENIOR */
.finalist-position {
    background: rgba(83, 142, 213, 0.2) !important;
    border-left: 4px solid #538ED5;
}

.finalist-position:hover {
    background: rgba(83, 142, 213, 0.3) !important;
}

.position-cell {
    font-weight: bold;
    font-size: 1.1em;
    position: relative;
}

/* ✅ ESPECÍFICO SENIOR: Color azul para estrellas y coronas */
.finalist-star {
    color: #538ED5;
    margin-left: 5px;
    font-size: 0.9em;
}

.team-name {
    text-align: left;
    font-weight: 600;
    position: relative;
}

.champion-crown {
    color: #538ED5;
    margin-left: 8px;
    font-size: 1.1em;
}

/* COLUMNAS DE ESTADÍSTICAS */
.victories {
    color: #28a745;
    font-weight: bold;
}

.ties {
    color: #ffc107;
    font-weight: bold;
}

.defeats {
    color: #dc3545;
    font-weight: bold;
}

.difference {
    font-weight: bold;
}

/* ✅ ESPECÍFICO SENIOR: Color azul para puntos */
.points {
    background: rgba(83, 142, 213, 0.3);
    color: #538ED5;
    font-size: 1.1em;
    border-radius: 8px;
}

/* LEYENDA DE CLASIFICACIÓN */
.classification-legend {
    margin-top: 20px;
    padding: 15px;
    background: rgba(83, 142, 213, 0.2);
    border-radius: 10px;
    border-left: 4px solid #538ED5;
}

.classification-legend p {
    margin-bottom: 8px;
    color: #1976D2;
    font-weight: 500;
}

/* GRID DE EQUIPOS */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.team-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

/* ✅ ESPECÍFICO SENIOR: Hover azul */
.team-card:hover {
    border: 2px solid #538ED5;
    box-shadow: 0 10px 25px rgba(83, 142, 213, 0.2);
    transform: translateY(-5px) scale(1.05);
}

.team-card i {
    color: #538ED5;
    font-size: 2em;
    margin-bottom: 10px;
}

.team-card span {
    font-weight: 600;
    font-size: 1.1em;
    color: #333;
}

/* ESTADOS VACÍOS */
.no-matches, .no-classification {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.no-matches i, .no-classification i {
    font-size: 3em;
    margin-bottom: 15px;
    opacity: 0.7;
}

.no-matches h4, .no-classification h4 {
    font-size: 1.3em;
    margin-bottom: 10px;
}

/* FOOTER */
footer {
    background: rgba(0,0,0,0.3);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    backdrop-filter: blur(10px);
}

/* RESPONSIVE DESIGN */

/* Tablets */
@media (max-width: 992px) {
    .header-content h1 {
        font-size: 2.5em;
    }
    
    .club-info h1 {
        font-size: 2em;
    }
    
    .club-logo {
        width: 70px;
        height: 70px;
    }
    
    .page-title h2 {
        font-size: 2em;
    }
    
    /* Navbar responsive para tablet */
    .nav-menu {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .teams-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Móviles */
@media (max-width: 768px) {
    .header-content h1 {
        font-size: 2em;
    }
    
    .header-content h3 {
        font-size: 1.1em;
    }
    
    .basketball-icon {
        font-size: 1.5em;
        margin: 0 10px;
    }

    /* Logo responsive para móviles */
    .club-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .club-logo {
        width: 60px;
        height: 60px;
    }
    
    .club-info h1 {
        font-size: 1.8em;
    }

    /* NAVBAR RESPONSIVE - COMO EL RESTO DE PÁGINAS */
    .nav-menu {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important; /* 3 columnas para 6 elementos */
        gap: 10px !important;
        padding: 0 10px !important;
        justify-content: center;
        align-items: center;
    }
    
    .nav-link {
        padding: 12px 8px !important;
        font-size: 13px !important;
        justify-content: center !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
        min-height: 60px !important;
        align-items: center !important;
    }
    
    .nav-link i {
        font-size: 1.2em !important;
    }
    
    .nav-link span {
        font-size: 12px !important;
        font-weight: 600 !important;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .teams-grid {
        grid-template-columns: 1fr;
    }
    
    .page-title h2 {
        font-size: 1.8em;
    }
    
    .page-title p {
        font-size: 1em;
    }
    
    .container {
        padding: 30px 15px;
    }
    
    .section {
        padding: 20px;
    }
    
    .finals-info {
        padding: 15px;
    }
    
    .finals-info p {
        font-size: 1em;
    }
    
    /* Tablas responsive */
    .matches-table, .classification-table {
        font-size: 0.9em;
    }
    
    .matches-table th, .matches-table td,
    .classification-table th, .classification-table td {
        padding: 10px 5px;
    }
    
    .score {
        font-size: 1.1em;
        padding: 6px 10px;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .header-content h1 {
        font-size: 1.6em;
    }
    
    .header-content h3 {
        font-size: 1em;
    }
    
    .club-info h1 {
        font-size: 1.5em;
    }
    
    .club-logo {
        width: 50px;
        height: 50px;
    }
    
    .basketball-icon {
        font-size: 1.2em;
        margin: 0 5px;
    }
    
    /* NAVBAR 2 COLUMNAS EN MÓVILES MUY PEQUEÑOS - CONSISTENTE */
    .nav-container {
        padding: 0 10px;
    }
    
    .nav-menu {
        grid-template-columns: repeat(2, 1fr) !important; /* 2 columnas en móviles muy pequeños */
        gap: 8px !important;
        padding: 0 5px !important;
    }
    
    .nav-link {
        padding: 10px 6px !important;
        font-size: 12px !important;
        flex-direction: column !important;
        gap: 4px !important;
        min-height: 55px !important;
    }
    
    .nav-link span {
        font-size: 11px !important;
    }
    
    .nav-link i {
        font-size: 1em !important;
    }
    
    .stat-number {
        font-size: 1.8em;
    }
    
    .stat-label {
        font-size: 0.8em;
    }
    
    .page-title h2 {
        font-size: 1.5em;
    }
    
    .section h3 {
        font-size: 1.4em;
    }
    
    .team-card {
        padding: 15px;
    }
    
    .team-card i {
        font-size: 1.5em;
    }
    
    .team-card span {
        font-size: 1em;
    }
    
    /* Tablas muy pequeñas */
    .matches-table, .classification-table {
        font-size: 0.8em;
    }
    
    .matches-table th, .matches-table td,
    .classification-table th, .classification-table td {
        padding: 8px 3px;
    }
    
    .score {
        font-size: 1em;
        padding: 4px 8px;
    }
    
    .status {
        font-size: 0.75em;
        padding: 4px 8px;
    }
    
    .pista, .hora {
        font-size: 0.8em;
        padding: 3px 6px;
    }
}

/* Móviles muy pequeños */
@media (max-width: 360px) {
    .nav-menu {
        gap: 6px !important;
        padding: 0 3px !important;
    }
    
    .nav-link {
        padding: 8px 4px !important;
        font-size: 11px !important;
        min-height: 50px !important;
    }
    
    .nav-link span {
        font-size: 10px !important;
    }
    
    .nav-link i {
        font-size: 0.9em !important;
    }
}

/* Efectos de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .basketball-icon {
        animation: none;
    }
    
    .club-logo {
        transition: none;
    }
    
    * {
        transition: none !important;
    }
}

/* Soporte para modo oscuro */
@media (prefers-color-scheme: dark) {
    .section {
        background: rgba(255, 255, 255, 0.98);
    }
    
    .category-stats {
        background: rgba(255, 255, 255, 0.98);
    }
}