/* ======================== Desktop Nav — Pill Items ======================== */
#nav {
    background: rgba(0, 0, 0, 0.28) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-radius: 60px !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.18) !important;
    border: none !important;
    border-bottom: none !important;
    padding: 0 0.5rem !important;
    gap: 0.3rem !important;
    position: relative !important;
}

/* Gradient separator line below desktop nav — glowing accent in center, fading edges */
#nav::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(126, 207, 240, 0.15) 20%,
        rgba(126, 207, 240, 0.4) 50%,
        rgba(126, 207, 240, 0.15) 80%,
        transparent 100%
    ) !important;
    border-radius: 1px;
    pointer-events: none;
}

/*
 * === VARIANT OPTIONS for desktop nav separator ===
 *
 * VARIANT A (current/default) — Subtle glow, accent color #7ecff0:
 *   background: linear-gradient(90deg, transparent 0%, rgba(126,207,240,0.15) 20%,
 *     rgba(126,207,240,0.4) 50%, rgba(126,207,240,0.15) 80%, transparent 100%);
 *
 * VARIANT B — Brighter glow with white edges:
 *   background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 15%,
 *     rgba(126,207,240,0.6) 50%, rgba(255,255,255,0.08) 85%, transparent 100%);
 *
 * VARIANT C — Wider and softer, almost invisible:
 *   left: 5%; right: 5%; height: 1px;
 *   background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 25%,
 *     rgba(255,255,255,0.3) 50%, rgba(255,255,255,0.1) 75%, transparent 100%);
 */

/* Nav item links — pill capsules */
#nav ul.links {
    gap: 0.25rem !important;
    align-items: center !important;
}

#nav ul.links li {
    border-radius: 30px !important;
}

#nav ul.links li a.nav-link {
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
    text-shadow: none !important;
    padding: 0.45rem 1.1rem !important;
    transition: all 0.2s ease !important;
    font-size: 0.76rem !important;
    letter-spacing: 0.03em !important;
    font-weight: 600 !important;
    border-radius: 30px !important;
    line-height: 1.4 !important;
    text-transform: uppercase !important;
    border-bottom: none !important;
}

#nav ul.links li a.nav-link:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.92) !important;
    text-shadow: none !important;
}

/* Icon inside nav link */
#nav ul.links li a .nav-icon {
    font-size: 0.78rem !important;
    opacity: 0.55;
    flex-shrink: 0;
    width: 1em !important;
    text-align: center !important;
    display: inline-block !important;
    line-height: 1 !important;
}

#nav ul.links li a:hover .nav-icon {
    opacity: 0.85;
}

/* Active pill — frosted glass highlight */
#nav ul.links li.active {
    background-color: transparent !important;
}

#nav ul.links li.active a.nav-link {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12) !important;
}

#nav ul.links li.active a .nav-icon {
    opacity: 1;
}

/* Social icons (Telegram, YouTube) */
#nav ul.icons li a {
    color: rgba(255, 255, 255, 0.6) !important;
    text-shadow: none !important;
    transition: color 0.2s ease !important;
    border-bottom: none !important;
}

#nav ul.icons li a:hover {
    color: #ffffff !important;
}

/* ======================== Mobile navPanel overrides ======================== */
/* Keep navPanel styles for the slide-out panel (legacy, hidden by bottom bar) */
#navPanel .links li a.nav-link {
    display: flex !important;
    align-items: center !important;
    gap: 0.6rem !important;
    padding: 0.85rem 0 !important;
}

#navPanel .links li a .nav-icon {
    font-size: 1rem !important;
    opacity: 0.7;
    flex-shrink: 0;
    width: 1.2rem;
    text-align: center;
}

#navPanel .links li a:hover .nav-icon {
    opacity: 1;
}
