/* assets/css/navigation.css */
/* =========================================
   Simplified Beautiful Pill Navbar
   ========================================= */
.nav-simple-wrapper {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    z-index: 2000;
    display: flex;
    justify-content: center;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-pill {
    display: flex;
    align-items: center;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 8px 12px;
    gap: 8px;
    pointer-events: auto;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    position: relative;
    max-width: 95vw;
}

@media (max-width: 480px) {
    .nav-pill {
        gap: 4px;
        padding: 5px 8px;
    }

    .nav-link {
        padding: 6px 12px;
        font-size: 13px;
    }

    .nav-logo {
        padding-left: 5px;
    }
}

.nav-indicator {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 0;
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.1);
}

.nav-logo {
    display: flex;
    align-items: center;
    padding-left: 14px;
    z-index: 1;
    text-decoration: none;
}

.logo-img {
    height: 30px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    z-index: 1;
}

.nav-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 999px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 0.01em;
    position: relative;
    z-index: 1;
}

.nav-link:hover {
    color: #fff;
}

.nav-link.is-active {
    color: #fff;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.nav-cta {
    background: var(--gradient-brand);
    color: var(--color-white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 14px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    border: none;
    z-index: 1;
}

.nav-cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5);
    filter: brightness(1.1);
}

.nav-cta:active {
    transform: translateY(0) scale(0.98);
}

/* Dropdown Menu (Desktop) */
.has-dropdown {
    position: relative;
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 10px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.has-dropdown:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Invisible bridge so the hover doesn't break when moving mouse down */
.has-dropdown::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 20px;
}

.nav-dropdown-item {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.nav-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transform: translateX(3px);
}

/* Mobile Sub Nav */
.mobile-sub-nav {
    list-style: none;
    padding-left: 20px;
    margin-top: 15px;
    border-left: 2px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-sub-nav-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 1.2rem;
    display: block;
    transition: color 0.2s ease;
}

.mobile-sub-nav-link:hover {
    color: var(--color-accent);
}

/* Navbar Mobile Adjustments */
.nav-mobile-controls {
    display: none;
}

.nav-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    z-index: 1999;
    padding-top: 100px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.nav-mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    padding: 20px;
}

.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mobile-nav-list .nav-link {
    font-size: 1.8rem;
    font-weight: 600;
    padding: 0;
    border-radius: 0;
    display: block;
}

/* Hamburger Button */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2001;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
    .nav-list,
    .nav-indicator,
    .nav-pill .nav-cta {
        display: none !important;
    }

    .nav-mobile-controls {
        display: flex;
        align-items: center;
        padding-right: 10px;
        order: 2;
    }

    .nav-pill {
        justify-content: space-between;
        width: 90vw;
        padding: 10px 16px;
    }

    .nav-logo {
        order: 1;
        padding-left: 0;
    }
}
