/* --- lineup.css | THE LIIGA GAMES STYLE (NORDIC ICE) --- */

:root {
    --fin-blue: #00A3E0; /* Azul hielo (Acentos) */
    --fin-blue-glow: rgba(0, 163, 224, 0.4);
    --fin-bg-main: #020813;
    --fin-surface: rgba(10, 20, 35, 0.85);
    
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --border-glass: rgba(255, 255, 255, 0.1);
    
    --wrong-red: #e63946;
}

body {
    background-color: var(--fin-bg-main);
    background-image: radial-gradient(circle at top, #001838 0%, var(--fin-bg-main) 80%);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}

/* =========================================
   CABECERA DEL JUEGO
   ========================================= */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.status-badge {
    font-size: 0.95rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 1.5px;
    background: rgba(0, 163, 224, 0.15);
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid var(--fin-blue);
    box-shadow: 0 0 15px var(--fin-blue-glow);
}

.outline-btn {
    background: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.outline-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.accent-btn {
    background: var(--fin-blue);
    color: #000;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 0 15px var(--fin-blue-glow);
}
.accent-btn:hover {
    background: #fff;
    transform: translateY(-2px);
}
/* =========================================
   TARJETA DEL EQUIPO A ADIVINAR
   ========================================= */
.target-team-card {
    background: linear-gradient(145deg, rgba(0, 163, 224, 0.1), rgba(0, 10, 25, 0.6));
    border: 1px solid rgba(0, 163, 224, 0.3);
    border-radius: 16px;
    padding: 15px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(0, 163, 224, 0.05);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.target-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.target-team-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.target-team-info img {
    height: 55px;
    object-fit: contain;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.6));
}

.target-team-info h2 {
    margin: 0;
    font-size: 2.2rem;
    color: #fff;
    font-weight: 900;
    letter-spacing: -1px;
    text-shadow: 0 2px 15px rgba(0, 163, 224, 0.5);
}

/* =========================================
   BUSCADOR (GLASSMORPHISM) Y ERRORES
   ========================================= */
.glass-input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(0, 163, 224, 0.3);
    color: #fff;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-sizing: border-box;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.glass-input:focus {
    outline: none;
    background: rgba(0, 163, 224, 0.05);
    border-color: var(--fin-blue);
    box-shadow: 0 0 0 4px rgba(0, 163, 224, 0.15);
}

.suggestions-list {
    position: absolute;
    top: calc(100% + 5px); left: 0; width: 100%;
    background: rgba(5, 15, 30, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid var(--fin-blue);
    border-radius: 12px;
    list-style: none; padding: 0; margin: 0;
    max-height: 300px; overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
    z-index: 1000;
}
.suggestions-list.hidden { display: none; }

.suggestions-list li {
    padding: 12px 20px; cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex; align-items: center; gap: 15px;
    font-weight: 700; color: #fff;
}
.suggestions-list li:hover { background: rgba(0, 163, 224, 0.15); }

/* --- ESPACIO Y MENSAJE DE ERROR --- */
.error-wrapper {
    height: 35px; /* Espacio reservado para que el input no salte */
    margin-top: 10px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.error-msg {
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
    background: var(--wrong-red);
    padding: 6px 18px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.error-msg.hidden {
    opacity: 0;
    transform: translateY(-15px);
    pointer-events: none;
}

/* =========================================
   LA PISTA DE HIELO (RINK)
   ========================================= */
.rink-area { display: flex; justify-content: center; margin-bottom: 40px; }

.rink-container {
    width: 100%; max-width: 650px;
    background: linear-gradient(to bottom, rgba(235, 245, 255, 0.05) 0%, rgba(0, 30, 60, 0.6) 100%);
    border: 2px solid rgba(0, 163, 224, 0.3);
    border-radius: 120px 120px 30px 30px; /* Forma de pista */
    padding: 40px 20px 20px;
    display: flex; flex-direction: column; gap: 30px;
    position: relative; box-shadow: inset 0 0 50px rgba(0, 163, 224, 0.1);
}

.rink-row {
    display: flex; justify-content: space-around; width: 100%; position: relative; z-index: 2;
}

.rink-lines {
    position: absolute; top: 48%; left: 0; width: 100%; height: 6px;
    background: rgba(0, 163, 224, 0.3); z-index: 1; /* Línea azul central */
}
.rink-lines::after {
    content: ''; position: absolute; top: -2px; left: 0; width: 100%; height: 2px;
    background: rgba(230, 57, 70, 0.3); /* Línea roja */
}

/* =========================================
   CELDAS DE JUGADORES
   ========================================= */
.player-slot {
    width: 110px; height: 130px;
    background: rgba(0, 10, 25, 0.8);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px; position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    backdrop-filter: blur(4px); transition: all 0.3s;
}

.slot-pos {
    position: absolute; top: -12px; background: var(--fin-bg-main);
    color: var(--fin-blue); border: 1px solid var(--fin-blue);
    padding: 2px 10px; border-radius: 20px; font-weight: 900; font-size: 0.8rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.8); z-index: 5;
}

.slot-content {
    width: 100%; height: 100%; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 5px;
}

/* Cuando el jugador ha sido insertado */
.player-slot.filled {
    background: linear-gradient(145deg, rgba(0, 51, 160, 0.4), rgba(0, 10, 25, 0.9));
    border: 1px solid var(--fin-blue);
    border-style: solid;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5), inset 0 0 15px rgba(0, 163, 224, 0.1);
}

.filled-img {
    width: 65px; height: 65px; border-radius: 50%; object-fit: cover;
    border: 2px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.6);
}
.filled-name { font-size: 0.75rem; font-weight: 800; color: #fff; text-align: center; line-height: 1.1; padding: 0 5px; }

/* =========================================
   MODAL FINAL
   ========================================= */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 5, 12, 0.85); backdrop-filter: blur(8px);
    display: flex; justify-content: center; align-items: center;
    z-index: 2000; padding: 15px; transition: all 0.3s ease;
}
.modal-overlay.hidden { opacity: 0; visibility: hidden; }

.glass-modal {
    background: #051021; border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8); border-radius: 20px;
    padding: 2.5rem 2rem; text-align: center; width: 100%; max-width: 400px;
}

/* =========================================
   FAQ
   ========================================= */
.faq-section { margin-top: 3rem; padding: 4rem 2rem; background: rgba(255,255,255,0.02); border-top: 1px solid var(--border-glass); }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-title { font-size: 1.8rem; font-weight: 900; margin-bottom: 2rem; }
.faq-title .accent { color: var(--fin-blue); }
.faq-question { font-size: 1.2rem; color: #fff; margin-top: 2rem; margin-bottom: 0.8rem; }
.faq-answer { color: var(--text-secondary); line-height: 1.7; }
.faq-answer strong { color: #fff; }

/* =========================================
   MÓVILES
   ========================================= */
@media (max-width: 600px) {
    .rink-container {
        padding: 30px 10px 15px;
        border-radius: 80px 80px 20px 20px;
        gap: 20px;
    }
    .player-slot { width: 85px; height: 110px; }
    .slot-pos { font-size: 0.7rem; padding: 2px 8px; }
    .filled-img { width: 50px; height: 50px; }
    .filled-name { font-size: 0.65rem; }
    
    .game-header { flex-direction: column; gap: 15px; margin-bottom: 15px; }
    .suggestions-list { width: 95%; left: 2.5%; }
}