/* ================================================
   EASY LEAGUE — NAVBAR
   Orbitron + Rajdhani · paleta azul/naranja
================================================ */

:root {
    --el-bg:        #050814;
    --el-bg-alt:    #07091a;
    --el-surface:   #0c1028;
    --el-border:    rgba(31,139,255,0.18);
    --el-blue:      #1f8bff;
    --el-orange:    #ff7a1f;
    --el-white:     #e8eeff;
    --el-muted:     #5a6a9a;
}

/* ------------------------------------------------
   HEADER
------------------------------------------------ */
.el-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(5, 8, 20, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--el-border);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Más sólido al hacer scroll (clase añadida por JS) */
.el-header.is-scrolled {
    background: rgba(7, 9, 26, 0.97);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.55);
}

/* ------------------------------------------------
   NAVBAR INNER
------------------------------------------------ */
.el-navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* ------------------------------------------------
   LOGO
------------------------------------------------ */
.el-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.el-logo-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--el-blue), #0055cc);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #fff;
    box-shadow: 0 0 16px rgba(31,139,255,0.45);
    flex-shrink: 0;
    transition: box-shadow 0.25s, transform 0.25s;
}

.el-logo:hover .el-logo-icon {
    box-shadow: 0 0 28px rgba(31,139,255,0.7);
    transform: scale(1.08) rotate(-4deg);
}

.el-logo-text {
    font-family: 'Orbitron', monospace;
    font-size: 0.92rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    line-height: 1;
    color: var(--el-white);
}

.el-logo-text .logo-easy {
    color: var(--el-white);
}

.el-logo-text .logo-league {
    background: linear-gradient(90deg, var(--el-blue), var(--el-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ------------------------------------------------
   MENÚ DESKTOP
------------------------------------------------ */
.el-nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
}

.el-nav-item {
    position: relative;
}

.el-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--el-muted);
    border: 1px solid transparent;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.el-nav-link i {
    font-size: 0.7rem;
    transition: color 0.2s;
}

.el-nav-link:hover {
    color: var(--el-white);
    background: rgba(31,139,255,0.08);
    border-color: rgba(31,139,255,0.18);
}

.el-nav-link:hover i {
    color: var(--el-blue);
}

/* Activo */
.el-nav-link.active {
    color: var(--el-white);
    background: rgba(31,139,255,0.12);
    border-color: rgba(31,139,255,0.32);
}

.el-nav-link.active i {
    color: var(--el-blue);
}

/* Punto brillante bajo el link activo */
.el-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--el-blue);
    box-shadow: 0 0 8px var(--el-blue);
}

/* ------------------------------------------------
   HAMBURGUESA
------------------------------------------------ */
.el-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border-radius: 9px;
    border: 1px solid rgba(31,139,255,0.35);
    background: rgba(31,139,255,0.07);
    cursor: pointer;
    outline: none;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    flex-shrink: 0;
}

.el-hamburger:hover {
    background: rgba(255,122,31,0.12);
    border-color: rgba(255,122,31,0.4);
    transform: scale(1.05);
}

.el-bar {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--el-white);
    transition: transform 0.22s ease, opacity 0.22s ease, background 0.2s;
}

/* Cruz al abrirse */
.el-hamburger.is-active .el-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background: var(--el-orange);
}
.el-hamburger.is-active .el-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.el-hamburger.is-active .el-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background: var(--el-orange);
}

/* ------------------------------------------------
   MENÚ MÓVIL
------------------------------------------------ */
@media (max-width: 768px) {

    .el-navbar {
        padding: 0 16px;
        height: 58px;
    }

    .el-hamburger {
        display: flex;
    }

    .el-nav-menu {
        /* Desplegable desde el header */
        position: fixed;
        top: 58px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 12px 16px;
        background: rgba(5, 8, 20, 0.97);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-bottom: 1px solid var(--el-border);
        box-shadow: 0 12px 40px rgba(0,0,0,0.6);

        /* Oculto por defecto */
        max-height: 0;
        overflow: hidden;
        padding-top: 0;
        padding-bottom: 0;
        opacity: 0;
        pointer-events: none;
        transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease;
    }

    .el-nav-menu.is-open {
        max-height: 420px;
        opacity: 1;
        pointer-events: auto;
        padding: 8px 12px 16px;
    }

    .el-nav-item {
        border-bottom: 1px solid rgba(31,139,255,0.07);
    }

    .el-nav-item:last-child {
        border-bottom: none;
    }

    .el-nav-link {
        padding: 13px 14px;
        font-size: 0.9rem;
        border-radius: 8px;
        border: 1px solid transparent;
        gap: 10px;
        width: 100%;
        justify-content: flex-start;
    }

    .el-nav-link i {
        font-size: 0.8rem;
        width: 16px;
        text-align: center;
    }

    .el-nav-link:hover {
        background: rgba(31,139,255,0.08);
        border-color: rgba(31,139,255,0.15);
    }

    .el-nav-link.active {
        background: rgba(31,139,255,0.1);
        border-color: rgba(31,139,255,0.28);
        color: var(--el-white);
    }

    /* Sin punto en móvil, usamos borde izquierdo */
    .el-nav-link.active::after {
        display: none;
    }

    .el-nav-link.active::before {
        content: '';
        position: absolute;
        left: 0;
        top: 20%;
        bottom: 20%;
        width: 3px;
        border-radius: 0 3px 3px 0;
        background: linear-gradient(to bottom, var(--el-blue), var(--el-orange));
        box-shadow: 0 0 10px rgba(31,139,255,0.5);
    }
}

/* ------------------------------------------------
   RESPONSIVE FINO (≤400px)
------------------------------------------------ */
@media (max-width: 400px) {
    .el-logo-text {
        font-size: 0.78rem;
    }

    .el-logo-icon {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
}