/* =========================================
   index.css | THE LIIGA GAMES LANDING (FINLAND THEME)
   ========================================= */

:root {
    /* Finnish Color Palette */
    --fin-blue: #002f6c; /* Azul oscuro bandera Finlandia */
    --fin-blue-dark: #001838;
    --fin-blue-glow: rgba(0, 47, 108, 0.5);
    --fin-accent: #00A3E0; /* Azul hielo para acentos en vez de amarillo */
    --fin-accent-glow: rgba(0, 163, 224, 0.5);
    
    /* Base Colors */
    --bg-black: #050505;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-black);
    /* Gradiente: Azul oscuro en la parte superior fundiéndose a negro puro */
    background-image: radial-gradient(circle at top, var(--fin-blue-dark) 0%, var(--bg-black) 70%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden; 
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* --- HUB HERO --- */
.hub-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
    text-align: center;
}

.selection-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4rem;
    letter-spacing: -0.5px;
    animation: fadeIn 0.8s ease-out;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* --- GAME CARDS --- */
.games-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.game-card {
    position: relative;
    /* Fondo negro con un ligero toque de azul finlandés */
    background: rgba(0, 15, 35, 0.8);
    border: 1px solid var(--fin-blue);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #fff;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: var(--fin-accent);
    background: rgba(0, 30, 65, 0.9); /* Se vuelve más azul al hacer hover */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 15px var(--fin-blue-glow);
}

.card-glow {
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    /* Brillo interno azul hielo */
    background: radial-gradient(circle, rgba(0, 163, 224, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.game-card:hover .card-glow { opacity: 1; }

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.5));
}

.game-title {
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    color: #fff;
}

.game-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 25px;
}

/* --- ETIQUETA "DAILY" --- */
.card-badge.daily {
    position: absolute;
    top: 10px;
    left: 10px;
    /* Fondo azul finlandés y texto hielo */
    background: var(--fin-blue); 
    border: 1px solid var(--fin-accent); 
    border-radius: 50px; 
    padding: 6px 16px; 
    color: var(--text-primary); 
    font-weight: 900;
    font-size: 0.8rem; 
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: 0 0 10px 1px var(--fin-accent-glow);
    z-index: 10;
}

/* --- CARD ACTION (BOTTOM) --- */
.card-action {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--fin-accent);
    transition: all 0.3s;
}

.play-text {
    font-weight: 900;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.game-card:hover .card-action {
    color: var(--fin-accent);
    border-top-color: var(--fin-accent);
}

.game-card:hover svg {
    transform: translateX(5px);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   FAQ SECTION
   ========================================= */
.faq-section {
    width: 100%;
    margin: 4rem 0 0 0;
    padding: 4rem 2rem;
    border-top: 2px solid var(--fin-blue); 
    border-bottom: 2px solid var(--fin-blue);
    background: rgba(0, 10, 25, 0.8); /* Azul muy oscuro/negro */
    box-sizing: border-box; 
}

.faq-container {
    max-width: 800px; 
    margin: 0 auto;
    text-align: left;
}

.faq-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
}

.faq-title .accent {
    color: var(--fin-accent); 
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--fin-accent); 
    text-shadow: 0 0 1px rgba(0, 163, 224, 0.5); /* Para que resalte más */
    margin-top: 1.8rem;
    margin-bottom: 0.6rem;
    letter-spacing: -0.3px;
}

.faq-answer {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

.faq-answer strong {
    color: var(--fin-accent);
}

/* =========================================
   COMING SOON & LOCKED CARDS
   ========================================= */
.card-badge.coming-soon {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #111; 
    border: 1px solid #666; 
    border-radius: 50px; 
    padding: 6px 16px; 
    color: #888; 
    font-weight: 800;
    font-size: 0.8rem; 
    letter-spacing: 1.5px;
    text-transform: uppercase;
    z-index: 10;
}

.game-card.locked {
    cursor: not-allowed !important;
    background: rgba(5, 5, 5, 0.8) !important;
    border: 1px dashed #333 !important;
    position: relative;
    z-index: 1;
}

.game-card.locked::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.02) 10px, rgba(255, 255, 255, 0.02) 20px);
    pointer-events: none;
    z-index: -1;
}

.game-card.locked > .card-icon,
.game-card.locked > .card-content {
    opacity: 0.4;
    filter: grayscale(1);
}

.game-card.locked:hover {
    transform: translateY(0) !important;
    box-shadow: none !important;
    border-color: #555 !important;
}

.game-card.locked .card-glow { display: none !important; }
.game-card.locked .card-action { color: #555 !important; border-top-color: #333 !important; }
.game-card.locked:hover svg { transform: none !important; }

/* =========================================
   LEAGUES BAR (HORIZONTAL) - FINLAND THEME
   ========================================= */
.leagues-bar {
    display: flex;
    background: rgba(0, 15, 35, 0.6); /* Ajustado al tono azul oscuro finlandés */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.league-item {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 16px 10px;
    color: var(--text-secondary); 
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.league-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.league-item:hover:not(.locked) {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
}

/* --- ESTADO ACTIVO (Finlandia) --- */
.league-item.active {
    background: linear-gradient(to bottom, transparent, rgba(0, 163, 224, 0.15));
    color: #fff;
    /* Línea de luz azul hielo (fin-accent) en la base */
    box-shadow: inset 0 -3px 0 var(--fin-accent); 
}

/* --- ESTADO BLOQUEADO (Suecia) adaptado a tus locked cards --- */
.league-item.locked {
    cursor: not-allowed;
    color: rgba(255, 255, 255, 0.25);
    background: rgba(5, 5, 5, 0.4);
}

.league-lock {
    color: #888; /* Gris en lugar de naranja, igual que tus etiquetas "Coming Soon" */
    opacity: 0.7;
}

.league-item.locked:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* --- RESPONSIVE PARA MÓVILES --- */
@media (max-width: 600px) {
    .leagues-bar {
        flex-direction: column;
        border-radius: 12px;
    }
    
    .league-item:not(:last-child)::after {
        display: none;
    }
    
    .league-item.active {
        box-shadow: inset 3px 0 0 var(--fin-accent); 
    }
}