@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
    --c-accent: #f4a825;
    --c-dark: #0f172a;
    --c-nav-bg: #ffa449;
    --c-top-bg: #080f1e;
    --nav-h: 70px;
    --top-h: 50px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

body {
    margin: 0px;
}

/* ── TOPBAR ─────────────────────────────── */
.topbar {
    background: var(--c-top-bg);
    height: var(--top-h);
    display: flex;
    align-items: center;
    padding: 0 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-family: var(--font);
    justify-content: center;
    margin: 0 auto;
    width: 100%;
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0 auto;
}
.topbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}
.topbar-sep {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.1);
}
.topbar-link {
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 0.2s;
}
.topbar-link:hover {
    color: rgba(255, 255, 255, 0.75);
}
.topbar-link svg {
    opacity: 0.6;
    flex-shrink: 0;
}
.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.topbar-btn {
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 5px;
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: all 0.2s;
}
.topbar-btn--outline {
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.topbar-btn--outline:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.05);
}
.topbar-btn--filled {
    color: #0a1628;
    background: var(--c-accent);
    border: 1px solid var(--c-accent);
}
.topbar-btn--filled:hover {
    background: #fbb93d;
}

/* ── MAIN NAV ───────────────────────────── */
.navbar-main {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    background: var(--c-nav-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-family: var(--font);
    transition:
        background 0.35s var(--ease),
        backdrop-filter 0.35s,
        box-shadow 0.35s var(--ease);
}
.navbar-main::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(244, 168, 37, 0.35) 30%,
        rgba(244, 168, 37, 0.35) 70%,
        transparent
    );
    pointer-events: none;
}
.navbar-main.scrolled {
    background: var(--c-nav-bg);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.nav-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    max-width: 1400px;
}

/* ── LOGO ───────────────────────────────── */
.nav-logo {
    display: flex;
    align-items: center;
    justify-self: start;
    gap: 14px;
    text-decoration: none;
    margin-right: 48px;
    flex-shrink: 0;
}
.nav-logo-mark {
    width: 100%;
    height: auto;
    background: transparent;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s;
    overflow: hidden;
}
.nav-logo-mark::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
}

.nav-logo-mark img {
    width: 225px;
    height: auto;
}

.nav-logo:hover .nav-logo-mark {
    border-color: rgba(244, 168, 37, 0.5);
    background: linear-gradient(
        135deg,
        rgba(244, 168, 37, 0.18),
        rgba(244, 168, 37, 0.06)
    );
}
.nav-logo-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.nav-logo-primary {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.06em;
    line-height: 1;
}
.nav-logo-secondary {
    font-size: 9.5px;
    font-weight: 700;
    color: var(--c-accent);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 1;
}

/* ── DESKTOP MENU ───────────────────────── */
.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    flex: 1;
}
.nav-item {
    position: relative;
}

/* ==========================================
   COMMUNITY DROPDOWN
========================================== */

.nav-dropdown {
    position: relative;
}

.nav-dropdown .nav-link-item svg {
    margin-left: 6px;
    transition: 0.3s;
}

.nav-dropdown:hover .nav-link-item svg {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border-radius: 14px;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.25s;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    z-index: 999;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 12px 14px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    transition: 0.2s;
}

.dropdown-link:hover {
    background: #f7f7f7;
    color: #000;
}

.nav-link-item {
    display: flex;
    align-items: center;
    padding: 8px 14px;
    color: rgba(0, 0, 0, 0.525);
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.01em;
    border-radius: 8px;
    white-space: nowrap;
    transition:
        color 0.2s,
        background 0.2s;
}
.nav-link-item:hover {
    color: #000000;
    background: rgba(255, 255, 255, 0.05);
}
.nav-item.active .nav-link-item {
    color: #000000;
    font-weight: 600;
}
.nav-item.active .nav-link-item::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--c-accent);
    border-radius: 2px 2px 0 0;
}

/* ── RIGHT ACTIONS ──────────────────────── */
.nav-actions {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 10px;
    margin-left: auto;
}
.nav-search-btn {
    width: 38px;
    height: 38px;
    background: black;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.nav-search-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.18);
}
.nav-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: black;
    color: white;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 10px;
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: all 0.25s var(--ease);
    box-shadow: 0 0 0 0 rgba(244, 168, 37, 0);
}
.nav-cta:hover {
    background: #fbb93d;
    color: #0a1628;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(244, 168, 37, 0.28);
}
.nav-cta svg {
    transition: transform 0.2s;
}
.nav-cta:hover svg {
    transform: translateX(3px);
}

/* ── HAMBURGER ──────────────────────────── */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.2s;
    position: absolute;
    right: 30px;
    bottom: 0px;
}
.hamburger:hover {
    background: rgba(255, 255, 255, 0.08);
}
.ham-line {
    display: block;
    width: 18px;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
}
.hamburger.open .ham-line--top {
    transform: translateY(6.5px) rotate(45deg);
}
.hamburger.open .ham-line--mid {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.open .ham-line--bot {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ── SEARCH OVERLAY ─────────────────────── */
.nav-search-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    background: rgba(13, 24, 41, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    padding: 0 40px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: all 0.25s var(--ease);
    z-index: 10;
}
.nav-search-overlay.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}
.nav-search-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 12px;
}
.nav-search-inner svg {
    color: rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
}
.nav-search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-family: var(--font);
    font-size: 17px;
    font-weight: 500;
    caret-color: var(--c-accent);
}
.nav-search-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}
.nav-search-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.nav-search-close:hover {
    color: #fff;
}

/* ── MOBILE DRAWER ──────────────────────── */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 1099;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.drawer-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 90vw);
    background: #0d1829;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    transform: translateX(105%);
    transition: transform 0.38s var(--ease);
    overflow-y: auto;
    font-family: var(--font);
}
.mobile-drawer.open {
    transform: translateX(0);
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.drawer-close {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9px;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.drawer-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
}

.mobile-nav-menu {
    list-style: none;
    margin: 8px 0 0;
    padding: 8px 12px;
    flex: 1;
}
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 13px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 9px;
    transition: all 0.2s;
    margin-bottom: 2px;
}
.mobile-nav-link svg {
    opacity: 0.55;
    flex-shrink: 0;
}
.mobile-nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}
.mobile-nav-link:hover svg {
    opacity: 1;
}
.mobile-nav-link.active {
    color: #fff;
    background: rgba(244, 168, 37, 0.08);
}
.mobile-nav-link.active svg {
    opacity: 1;
    color: var(--c-accent);
}

.mobile-drawer-footer {
    padding: 14px 18px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mobile-signin-btn {
    display: block;
    text-align: center;
    padding: 11px;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.mobile-signin-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}
.mobile-cta-btn {
    display: block;
    text-align: center;
    padding: 12px;
    background: var(--c-accent);
    color: #0a1628;
    border-radius: 9px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s;
    box-shadow: 0 4px 16px rgba(244, 168, 37, 0.25);
}
.mobile-cta-btn:hover {
    background: #fbb93d;
    color: #0a1628;
}

/* ── RESPONSIVE ─────────────────────────── */
@media (max-width: 1100px) {
    .nav-link-item {
        padding: 8px 11px;
        font-size: 13px;
    }
    .nav-logo {
        margin-right: 28px;
    }
}
@media (max-width: 960px) {
    .nav-menu,
    .nav-actions {
        display: none;
    }
    .hamburger {
        display: flex;
    }
}
@media (max-width: 600px) {
    .topbar {
        padding: 0 18px;
    }
    .navbar-main {
        padding: 0 18px;
    }
    .topbar-sep {
        display: none;
    }

    .topbar-divider {
        display: none;
    }
    .topbar-left .topbar-link:last-of-type {
        display: flex;
    }

    .topbar-left {
        flex-direction: column;
        gap: 0px;
        align-items: start;
        font-size: 10px;
    }

    .topbar-btn {
        padding: 4px 10px;
        font-size: 11px;
    }
}
