/* ══════════════════════════════════════════
   CITY MITRA — Navbar Component
   ══════════════════════════════════════════ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    z-index: 1000;
    background: rgba(12, 10, 29, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.is-scrolled {
    background: rgba(10, 8, 24, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* On light pages */
.navbar.navbar-light.is-scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--ink-20);
    box-shadow: var(--shadow-md);
}
.navbar.navbar-light.is-scrolled .nav-link { color: var(--ink); }
.navbar.navbar-light.is-scrolled .nav-link:hover { color: var(--orange); }

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Logo ── */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.nav-logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}
.nav-logo-text span { color: var(--orange-lt); }
.navbar-light .nav-logo-text { color: var(--ink); }

.nav-logo-sub {
    font-size: 11px;
    color: var(--ink-50);
    letter-spacing: 0.02em;
    margin-top: -2px;
}

/* ── City Picker ── */
.city-picker-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: var(--radius-full);
    background: rgba(234, 88, 12, 0.15);
    border: 1px solid rgba(234, 88, 12, 0.3);
    color: var(--orange-lt);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 16px;
}
.city-picker-btn:hover {
    background: rgba(234, 88, 12, 0.25);
    border-color: var(--orange);
}
.city-picker-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Dropdown */
.city-dropdown {
    position: absolute;
    top: calc(var(--nav-h) + 8px);
    left: 120px;
    width: 320px;
    background: var(--surface);
    border: 1px solid var(--ink-20);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 12px;
    display: none;
    z-index: 1001;
    animation: fade-in-up 0.2s ease;
}
.city-dropdown.open { display: block; }

.city-search-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--ink-20);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font-sans);
    outline: none;
    margin-bottom: 8px;
    transition: border-color 0.2s;
}
.city-search-input:focus { border-color: var(--orange); }

.city-list {
    max-height: 240px;
    overflow-y: auto;
}
.city-list::-webkit-scrollbar { width: 4px; }
.city-list::-webkit-scrollbar-thumb {
    background: var(--ink-30);
    border-radius: 4px;
}

.city-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s;
    font-size: 14px;
    color: var(--ink);
}
.city-item:hover { background: var(--orange-xlt); }
.city-item.active {
    background: var(--orange-xlt);
    color: var(--orange);
    font-weight: 600;
}
.city-item-emoji { font-size: 18px; }
.city-item-name { flex: 1; }
.city-item-state { font-size: 12px; color: var(--ink-50); }

.city-request-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    margin-top: 8px;
    border-top: 1px solid var(--ink-20);
    color: var(--orange);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background 0.15s;
}
.city-request-link:hover { background: var(--orange-xlt); }

/* ── Nav Links ── */
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}
.nav-link:hover { color: white; background: rgba(255, 255, 255, 0.08); }
.nav-link.active { color: var(--orange-lt); }

/* ── Nav Actions ── */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.nav-search-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}
.nav-search-btn kbd {
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    font-size: 11px;
    font-family: var(--font-sans);
}

.nav-ai-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 10px rgba(234, 88, 12, 0.4);
}
.nav-ai-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(234, 88, 12, 0.5);
}

.nav-cta {
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s;
}
.nav-cta:hover { background: rgba(255, 255, 255, 0.18); }

/* ── Mobile Hamburger ── */
.nav-hamburger {
    display: none;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    cursor: pointer;
}

/* ── Mobile Nav ── */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-search-btn { display: none; }
    .nav-hamburger { display: flex; }

    .nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        padding: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        gap: 4px;
    }
    .nav-links.mobile-open .nav-link {
        width: 100%;
        padding: 12px 16px;
        font-size: 15px;
    }
}

@media (max-width: 600px) {
    .nav-inner {
        padding: 0 12px;
    }
    .nav-logo-sub {
        display: none;
    }
    .city-picker-btn {
        padding: 5px 10px;
        font-size: 12px;
        margin-left: 6px;
    }
    .nav-cta {
        display: none;
    }
    .city-dropdown {
        left: 12px;
        right: 12px;
        width: auto;
    }
}
