/* =============================================================
   goleadores.css  —  Mobile-first
   Breakpoints: 480 | 640 | 768 | 992 | 1200
   Paleta: --primary:#094c79  --secondary:#0b1138  --accent:#ffd700
   ============================================================= */

/* =============================================================
   1. CONTENEDOR
   ============================================================= */
.goleadores-container {
    max-width: 1200px;
    margin: 1.5rem auto;
    padding: 0 1rem;
}

@media (min-width: 640px)  { .goleadores-container { padding: 0 1.5rem; } }
@media (min-width: 1200px) { .goleadores-container { margin: 2.5rem auto; } }

/* =============================================================
   2. HEADER (TÍTULO + FILTROS)
   ============================================================= */
.compact-header {
    margin-bottom: 1.5rem;
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .header-content {
        flex-direction: row;
        align-items: flex-start;
        gap: 2rem;
    }
}

/* Títulos */
.header-titles { flex-shrink: 0; }

.main-title {
    color: #fff;
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    font-weight: 800;
    margin: 0 0 0.3rem;
    letter-spacing: -0.3px;
}

.subtitle {
    color: rgba(255,255,255,0.6);
    font-size: clamp(0.78rem, 2.5vw, 0.95rem);
    margin: 0;
}

/* Filtros */
.header-filters { flex: 1; }

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.filter-btn {
    background: rgba(255,255,255,0.12);
    border: 1.5px solid rgba(255,255,255,0.25);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, box-shadow 0.18s;
    white-space: nowrap;
}

.filter-btn:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.5);
}

.filter-btn.active {
    background: #ffd700;
    border-color: #ffd700;
    color: #0b1138;
    box-shadow: 0 3px 10px rgba(255,215,0,0.3);
}

/* =============================================================
   3. GRID DE SERIES
   ============================================================= */
.series-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px)  { .series-grid { gap: 1.1rem; } }
@media (min-width: 768px)  { .series-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .series-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }

/* =============================================================
   4. TARJETA DE SERIE
   ============================================================= */
.serie-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    border: 1px solid #eef2f7;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.serie-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(9,76,121,0.13);
}

/* Encabezado de serie */
.serie-header {
    padding: 0.9rem 1.1rem;
    background: linear-gradient(90deg, #094c79 0%, #0b1138 100%);
}

.serie-info { display: flex; flex-direction: column; gap: 0.3rem; }

.serie-title {
    color: #fff;
    margin: 0;
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    font-weight: 800;
}

.serie-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.meta-item {
    color: rgba(255,255,255,0.75);
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 500;
}

.meta-item i { font-size: 0.72rem; }

/* =============================================================
   5. TABLA RANKING
   ============================================================= */
.ranking-table {
    padding: 0.75rem 0.9rem;
}

/* Cabecera */
.table-header {
    display: grid;
    grid-template-columns: 40px 1fr 70px;
    gap: 0.75rem;
    padding: 0.4rem 0.5rem;
    color: #094c79;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 1px solid #eef2f7;
    margin-bottom: 0.25rem;
}

/* Fila */
.table-row {
    display: grid;
    grid-template-columns: 40px 1fr 70px;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 8px;
    align-items: center;
    transition: background 0.15s;
}

.table-row:hover { background: #f4f8fb; }

/* Posición */
.td-pos {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pos-badge {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.82rem;
    background: #f0f4f8;
    color: #094c79;
    flex-shrink: 0;
}

.pos-badge.gold   { background: #ffd700; color: #5a3e00; }
.pos-badge.silver { background: #c0c0c0; color: #333; }
.pos-badge.bronze { background: #cd7f32; color: #fff; }

/* Jugador */
.td-jugador { min-width: 0; }

.player-info {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.player-details { min-width: 0; }

.player-name {
    font-size: clamp(0.75rem, 2vw, 0.88rem);
    font-weight: 700;
    color: #0b1138;
    margin: 0 0 0.1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-meta { display: flex; gap: 0.5rem; }

.team-name {
    font-size: 0.65rem;
    color: #094c79;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Goles */
.td-goles {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.goles-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    width: 100%;
    justify-content: flex-end;
}

.goles-count {
    font-weight: 800;
    font-size: 0.95rem;
    color: #094c79;
    min-width: 20px;
    text-align: right;
    z-index: 1;
    position: relative;
}

.goles-bar {
    position: absolute;
    right: 0;
    height: 22px;
    background: rgba(9,76,121,0.08);
    border-radius: 4px;
    transition: width 0.5s ease;
    min-width: 4px;
}

/* =============================================================
   6. SIN DATOS
   ============================================================= */
.no-data {
    text-align: center;
    padding: 3.5rem 1.5rem;
    background: rgba(255,255,255,0.06);
    border-radius: 14px;
    color: rgba(255,255,255,0.55);
}

.no-data i    { font-size: 2.8rem; display: block; margin-bottom: 0.85rem; opacity: 0.5; }
.no-data h3   { margin: 0; font-size: 1.05rem; font-weight: 600; }
