/* ═══════════════════════════════════════════════════════
   AURA UNIFIED NAVBAR — Liquid Glass Navigation System
   Shared across ALL pages. One source of truth.
   ═══════════════════════════════════════════════════════ */

/* ── Base Nav Bar ── */
.aura-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.4s ease, border-color 0.3s ease, box-shadow 0.4s ease;
}
/* Scrolled state — denser glass */
.aura-nav.scrolled {
    background: rgba(0,0,0,0.88);
    border-bottom-color: rgba(255,255,255,0.08);
    box-shadow: 0 4px 30px rgba(0,0,0,0.4), 0 0 60px rgba(0,217,255,0.02);
}
/* Top glow line */
.aura-nav::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,217,255,0.08), transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.aura-nav.scrolled::after { opacity: 1; }

.aura-nav-inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* ── Logo ── */
.aura-nav-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: #fff;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.23,1,0.32,1);
}
.aura-nav-logo:hover { transform: scale(1.03); }
.aura-nav-logo img {
    width: 36px; height: 36px;
    transition: transform 0.5s cubic-bezier(0.23,1,0.32,1);
}
.aura-nav-logo:hover img {
    transform: scale(1.12) rotate(8deg);
}
.aura-nav-logo span {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, #fff 60%, rgba(0,217,255,0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Desktop Links Container ── */
.aura-nav-links {
    display: none;
    align-items: center;
    gap: 2px;
    position: relative;
    padding: 4px;
    border-radius: 14px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
}
@media (min-width: 768px) {
    .aura-nav-links { display: flex; }
}

/* ── Pill Indicator ── */
.aura-pill {
    position: absolute;
    height: calc(100% - 8px);
    top: 4px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 0 20px rgba(0,217,255,0.04), inset 0 1px 0 rgba(255,255,255,0.05);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition:
        left 400ms cubic-bezier(0.22, 1, 0.36, 1),
        width 400ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 250ms ease,
        background 200ms ease,
        border-color 200ms ease,
        box-shadow 300ms ease;
}
.aura-pill.visible { opacity: 1; }
.aura-pill.glow {
    background: rgba(0,217,255,0.06);
    border-color: rgba(0,217,255,0.15);
    box-shadow:
        0 0 30px rgba(0,217,255,0.08),
        0 0 60px rgba(0,217,255,0.03),
        inset 0 1px 0 rgba(255,255,255,0.08);
}

/* ── Nav Link ── */
.aura-nav-link {
    position: relative;
    z-index: 1;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    border-radius: 10px;
    transition: color 250ms ease;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
}
.aura-nav-link:hover { color: rgba(255,255,255,0.85); }
.aura-nav-link.active { color: #fff; font-weight: 600; }

/* ── Right-side Actions ── */
.aura-nav-actions {
    display: none;
    align-items: center;
    gap: 0.5rem;
}
@media (min-width: 768px) {
    .aura-nav-actions { display: flex; }
}

/* Sign In link */
.aura-nav-signin {
    padding: 7px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: all 0.25s ease;
}
.aura-nav-signin:hover {
    color: #fff;
    background: rgba(255,255,255,0.04);
}

/* CTA Button — "Get Started" or "Download" */
.aura-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(0,217,255,0.1), rgba(124,58,237,0.08));
    border: 1px solid rgba(0,217,255,0.15);
    transition: all 0.35s cubic-bezier(0.23,1,0.32,1);
    position: relative;
    overflow: hidden;
}
.aura-nav-cta::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 60%; height: 100%;
    background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.08) 50%, transparent 70%);
    pointer-events: none;
}
.aura-nav-cta:hover {
    background: linear-gradient(135deg, rgba(0,217,255,0.18), rgba(124,58,237,0.14));
    border-color: rgba(0,217,255,0.3);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px -8px rgba(0,217,255,0.2), 0 0 40px -15px rgba(0,217,255,0.08);
}
.aura-nav-cta:hover::before {
    left: 200%;
    transition: left 0.7s cubic-bezier(0.23,1,0.32,1);
}
/* Subtle idle pulse on CTA */
.aura-nav-cta {
    animation: nav-cta-pulse 3s ease-in-out infinite;
}
@keyframes nav-cta-pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(0,217,255,0); }
    50% { box-shadow: 0 0 20px -6px rgba(0,217,255,0.12); }
}
.aura-nav-cta:hover { animation: none; }

/* User info (account/checkout pages) */
.aura-nav-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.aura-nav-user-email {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    display: none;
}
@media (min-width: 768px) {
    .aura-nav-user-email { display: block; }
}
.aura-nav-logout {
    width: 34px; height: 34px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.25s ease;
}
.aura-nav-logout:hover {
    background: rgba(239,68,68,0.1);
    border-color: rgba(239,68,68,0.2);
    color: #EF4444;
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════
   MOBILE MENU — Full-screen glass overlay
   ═══════════════════════════════════════════════════════ */
.aura-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.5);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.25s ease;
}
@media (min-width: 768px) {
    .aura-mobile-toggle { display: none; }
}
.aura-mobile-toggle:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.aura-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(30px) saturate(1.5);
    -webkit-backdrop-filter: blur(30px) saturate(1.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
.aura-mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

/* Close button */
.aura-mobile-close {
    position: absolute;
    top: 1rem; right: 1.5rem;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23,1,0.32,1);
}
.aura-mobile-close:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    transform: rotate(90deg);
}

/* Mobile nav links */
.aura-mobile-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    width: 100%;
    max-width: 280px;
    padding: 0 1.5rem;
}
.aura-mobile-link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.23,1,0.32,1);
    transform: translateY(20px);
    opacity: 0;
}
.aura-mobile-menu.open .aura-mobile-link {
    transform: translateY(0);
    opacity: 1;
}
/* Stagger entrance */
.aura-mobile-link:nth-child(1) { transition-delay: 0.05s; }
.aura-mobile-link:nth-child(2) { transition-delay: 0.1s; }
.aura-mobile-link:nth-child(3) { transition-delay: 0.15s; }
.aura-mobile-link:nth-child(4) { transition-delay: 0.2s; }
.aura-mobile-link:nth-child(5) { transition-delay: 0.25s; }
.aura-mobile-link:nth-child(6) { transition-delay: 0.3s; }

.aura-mobile-link:hover,
.aura-mobile-link.active {
    color: #fff;
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
}
.aura-mobile-link.active {
    box-shadow: 0 0 20px rgba(0,217,255,0.06);
}
.aura-mobile-link i {
    width: 20px;
    text-align: center;
    font-size: 14px;
    color: rgba(0,217,255,0.5);
}
.aura-mobile-link.active i { color: rgba(0,217,255,0.8); }

/* Mobile divider */
.aura-mobile-divider {
    width: 60%;
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 0.75rem 0;
}

/* Mobile CTA */
.aura-mobile-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 280px;
    padding: 14px 20px;
    margin-top: 0.5rem;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(0,217,255,0.1), rgba(124,58,237,0.08));
    border: 1px solid rgba(0,217,255,0.15);
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}
.aura-mobile-menu.open .aura-mobile-cta {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.35s;
}
.aura-mobile-cta:hover {
    background: linear-gradient(135deg, rgba(0,217,255,0.18), rgba(124,58,237,0.14));
    border-color: rgba(0,217,255,0.3);
    box-shadow: 0 8px 25px -8px rgba(0,217,255,0.2);
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    .aura-pill { transition: none; }
    .aura-nav { transition: none; }
    .aura-mobile-menu { transition: none; }
    .aura-mobile-link { transition: none; transform: none; opacity: 1; }
    .aura-mobile-cta { transition: none; transform: none; opacity: 1; }
    .aura-nav-cta { animation: none; }
}
