/* --- PÁGINA DEPORTISTAS (DIRECTORIO) --- */

/* 1. Encabezado de la página */
.roster-header {
    /* Aquí está la clave: 180px empuja todo hacia abajo para que no choque con el menú */
    padding-top: 180px; 
    padding-bottom: 80px; /* Espacio entre los botones y las tarjetas */
    text-align: center;
      
}

.roster-title {
    font-size: 3.5rem; 
    margin-bottom: 50px; /* Separa el Título de los Botones de abajo */
    text-transform: uppercase;
}

/* 2. Botones de Filtro */
.filter-container {
    display: flex; 
    justify-content: center; 
    gap: 25px; /* Más espacio entre botón y botón */
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #ccc;
    padding: 10px 25px;
    border-radius: 30px; /* Redondos tipo pastilla */
    cursor: pointer;
    font-family: 'Oswald', sans-serif; font-weight: 500; letter-spacing: 1px;
    transition: 0.3s;
    text-transform: uppercase;
}

.filter-btn:hover, .filter-btn.active {
    background: white; color: var(--sx-navy); border-color: white;
    font-weight: 700; transform: scale(1.05);
}

/* 3. Grid de Atletas */
.container_grid{
    padding: 2rem;
    width: 100%;
    background-color: #042545;
}
.roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Tarjetas verticales */
    gap: 20px;
    padding-bottom: 100px;
}

/* ANIMACIÓN PARA EL FILTRADO */
.athlete-card {
    position: relative;
    height: 420px; /* Altura fija vertical */
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background-color: #042545;
    transition: all 0.4s ease;
    opacity: 1; transform: scale(1); /* Estado visible normal */
}

/* Clase para ocultar cuando filtras */
.athlete-card.hide {
    display: none; 
}
.athlete-card.show {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Efectos de la Tarjeta */
.athlete-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Imagen del Atleta */
.athlete-img {
    width: 100%; height: 100%;
    object-fit: cover; /* Cubre todo el espacio */
    object-position: top center; /* Enfoca la cara/torso */
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: grayscale(20%); /* Un toque desaturado para estilo serio */
}
.athlete-card:hover .athlete-img {
    transform: scale(1.1); /* Zoom al hover */
    filter: grayscale(0%); /* Color total al hover */
}

/* Overlay (Sombra oscura abajo para el texto) */
.athlete-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(2, 27, 53, 0.95) 15%, rgba(2, 27, 53, 0.4) 50%, transparent 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 25px;
}

/* Información del Atleta */
.athlete-info h3 {
    font-size: 2rem; line-height: 0.9;
    color: white; margin-bottom: 5px; font-style: italic;
    text-transform: uppercase;
}

.athlete-meta {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 10px; border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 10px;
}

.sport-tag {
    font-size: 0.85rem; font-weight: 700; color: rgb(163, 163, 163);
    text-transform: uppercase; letter-spacing: 1px;
}

.athlete-flag { width: 25px; height: auto; border-radius: 2px; }