/* ---------------------------------------------------- */
/* ESTILOS DEL ROSTER (ROSTER.PHP)                      */
/* ---------------------------------------------------- */

body {
    background-color: #0f172e;
    color: #e2e8f0;
}

/* ---------------------------------------------------- */
/* SECCIÓN PRINCIPAL                                   */
/* ---------------------------------------------------- */
.roster-section {
    padding: 80px 0 120px 0;
    background: linear-gradient(135deg, #0f172e 0%, #1a1f3a 50%, #0f172e 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

/* Fondo decorativo similar a squadrons */
.roster-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(59,130,246,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139,92,246,0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Encabezado de sección (Copiado y adaptado de squadrons.css) */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}
  
.section-header h2 {
    font-family: 'Horizon', sans-serif;
    font-size: 38px; /* Ligeramente ajustado para textos más largos */
    color: #fff;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    animation: glow-pulse 3s ease-in-out infinite;
    line-height: 1.2;
}
  
.section-header p {
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    font-family: 'Oswald', sans-serif;
    max-width: 800px;
    margin: 0 auto;
}
  
@keyframes glow-pulse {
    0%, 100% {
      text-shadow: 0 0 20px rgba(96,165,250,0.3);
    }
    50% {
      text-shadow: 0 0 40px rgba(96,165,250,0.6);
    }
}

.roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
    padding-top: 40px;
}

/* ---------------------------------------------------- */
/* TARJETAS DE PILOTO                                  */
/* ---------------------------------------------------- */
.pilot-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pilot-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-color: rgba(96, 165, 250, 0.4);
}

.pilot-header {
    height: 140px;
    background: linear-gradient(180deg, rgba(96, 165, 250, 0.15) 0%, rgba(15, 23, 46, 0.8) 100%),
                radial-gradient(circle at 50% 0%, #1e293b, #0f172e);
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.avatar-wrapper {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    z-index: 10;
    transition: transform 0.3s ease;
}

.pilot-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid #0f172e;
    background: #0f172e;
    object-fit: cover;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    transition: border-color 0.3s ease;
    display: block;
}

.pilot-card:hover .avatar-wrapper {
    transform: translateX(-50%) scale(1.05);
}

.pilot-card:hover .pilot-avatar {
    border-color: #60a5fa;
}

.pilot-body {
    padding: 70px 25px 30px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pilot-name {
    font-family: 'Horizon', sans-serif;
    font-weight: 700;
    font-size: 1.6em;
    color: #fff;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    background: linear-gradient(135deg, #fff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pilot-role {
    display: inline-block;
    font-family: 'Oswald', sans-serif;
    font-size: 0.85em;
    color: #93c5fd; /* Blue-300 */
    background: rgba(30, 58, 138, 0.4); /* Blue-900 with opacity */
    padding: 4px 12px;
    border-radius: 99px;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(96, 165, 250, 0.2);
}

.pilot-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    background: rgba(15, 23, 46, 0.6);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto; /* Push to bottom */
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column-reverse;
}

.stat-val {
    display: block;
    font-family: 'Horizon', sans-serif; /* Consistent font for numbers */
    font-size: 1.25em;
    font-weight: 600;
    color: #f1f5f9;
    line-height: 1.2;
}

.stat-label {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 0.75em;
    text-transform: uppercase;
    color: #94a3b8; /* Slate-400 */
    letter-spacing: 1px;
    margin-top: 6px;
}

.pilot-aircraft {
    grid-column: span 2;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pilot-aircraft .stat-val {
    font-size: 1.1em;
    color: #60a5fa; /* Blue accent */
}

/* Empty message */
.empty-pilots {
    color: #94a3b8;
    text-align: center;
    grid-column: 1/-1;
    font-family: 'Oswald', sans-serif;
    font-size: 1.2em;
    padding: 40px;
}

/* Enlaces */
.pilot-card-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

/* Hero override for Roster if needed, or keep generic */
.roster-hero {
    height: 50vh;
    min-height: 380px;
}
