/* static/css/navbar.css */

.navbar {
    position: sticky; /* or fixed if you want */
    top: 0;
    z-index: 2000;

    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

body.theme-dark .navbar {
    background: rgba(18, 18, 18, 0.75);
    border-bottom-color: rgba(255,255,255,0.12);
}

.navbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    font-weight: 900;
    letter-spacing: -0.02em;
    text-decoration: none;

    /* subtle “fancy” effect */
    background: linear-gradient(90deg, #111, #2f5cff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    font-size: 1.15rem;
}

body.theme-dark .brand {
    background: linear-gradient(90deg, #ffffff, #9ecbff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* link-like buttons that don't look like plain hrefs */
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;

    border: 1px solid transparent;
    transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.nav-link:hover {
    background: rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

body.theme-dark .nav-link:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.14);
}

/* Profile button */
.profile-wrap {
    position: relative; /* anchor for absolute dropdown */
}

.profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 8px 10px;
    border-radius: 12px;

    border: 1px solid rgba(0,0,0,0.10);
    background: rgba(0,0,0,0.03);
    color: inherit;

    cursor: pointer;
    font-weight: 600;

    transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.profile-btn:hover {
    transform: translateY(-1px);
    background: rgba(0,0,0,0.06);
}

body.theme-dark .profile-btn {
    border-color: rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
}

/* Dropdown: absolute => no layout shift */
.dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);

    width: 240px;
    padding: 10px;

    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.10);
    background: rgba(255,255,255,0.98);
    box-shadow: 0 18px 50px rgba(0,0,0,0.18);

    display: none;
}

body.theme-dark .dropdown {
    background: rgba(22,22,22,0.98);
    border-color: rgba(255,255,255,0.14);
    box-shadow: 0 18px 50px rgba(0,0,0,0.55);
}

.profile-wrap.open .dropdown {
    display: block;
}

.dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 10px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
}

.dropdown a:hover {
    background: rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.08);
}

body.theme-dark .dropdown a:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.14);
}

.dropdown .divider {
    height: 1px;
    margin: 8px 0;
    background: rgba(0,0,0,0.08);
}

body.theme-dark .dropdown .divider {
    background: rgba(255,255,255,0.14);
}

.dropdown .danger {
    color: #b00020;
}

body.theme-dark .dropdown .danger {
    color: #ff8fa1;
}