/* ===== NAVBAR SHARED VARIABLES (fallback for pages without index.css) ===== */
:root {
    --clr-bg: #0d0d0d;
    --clr-surface: #1a1a1a;
    --clr-border: #2a2a2a;
    --clr-accent: #e8c547;
    --clr-accent-dark: #b8972e;
    --clr-text-primary: #f0f0f0;
    --clr-text-muted: #888888;
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Actor', sans-serif;
}

/* ===== SCROLL SPY ===== */
.nav-center a.active {
    color: var(--clr-accent);
    font-weight: bold;
}

/* ===== NAVBAR ===== */
.navbar {
    background-color: var(--clr-surface);
    color: var(--clr-text-primary);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 5px 15px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--clr-border);
}
.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}
.nav-left a { display: flex; align-items: center; gap: 10px; text-decoration: none; }
#logo { cursor: pointer; height: 45px; }
#nav-left-text {
    font-size: 24px;
    font-weight: bold;
    color: var(--clr-text-primary);
    cursor: pointer;
}
.nav-center {
    display: flex;
    gap: 28px;
    align-items: center;
}
.nav-center a {
    color: var(--clr-text-primary);
    text-decoration: none;
    font-size: 15px;
    font-family: var(--font-body);
    letter-spacing: 0.5px;
}
.nav-center a:hover { color: var(--clr-accent); }
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}
.nav-right a { display: flex; }
.nav-right button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0;
}
.right-icon { cursor: pointer; height: 35px; width: 35px; }

/* ===== NAVBAR DROPDOWN ===== */
.dropdown-container {
    position: relative;
}

.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 35px;
    height: 35px;
    position: relative;
}

.hamburger-line {
    width: 25px;
    height: 2.5px;
    background-color: var(--clr-text-primary);
    border-radius: 2px;
    position: absolute;
    transition: transform 300ms ease, opacity 300ms ease;
}

.line-1 {
    top: 6px;
    transform: translateY(0) rotate(0deg);
}

.line-2 {
    top: 16px;
    opacity: 1;
    transform: translateX(0) scaleX(1);
}

.line-3 {
    top: 26px;
    transform: translateY(0) rotate(0deg);
}

.dropdown-container.open .line-1 {
    transform: translateY(10px) rotate(45deg);
}

.dropdown-container.open .line-2 {
    opacity: 0;
    transform: translateX(10px) scaleX(0);
}

.dropdown-container.open .line-3 {
    transform: translateY(-10px) rotate(-45deg);
}

.hamburger-btn:hover .hamburger-line {
    background-color: var(--clr-accent);
}

.navbar-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.95);
    transform-origin: top right;
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
    z-index: 999;
    overflow: hidden;
}

.dropdown-container.open .navbar-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.dropdown-item {
    width: 100%;
    padding: 11px 14px;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--clr-text-primary);
    transition: background-color 180ms ease, color 180ms ease;
}

.dropdown-item:not(:last-child) {
    border-bottom: 1px solid var(--clr-border);
}

.dropdown-item:hover,
.dropdown-item:focus-visible {
    background-color: rgba(232, 197, 71, 0.15);
    color: var(--clr-accent);
    outline: none;
}

.dropdown-item:active {
    transform: scale(0.98);
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    background: none;
    border: 1px solid var(--clr-border);
    color: var(--clr-text-primary);
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: 1px;
    padding: 4px 10px;
    transition: border-color 0.2s, color 0.2s;
}
.theme-toggle:hover {
    border-color: var(--clr-accent);
    color: var(--clr-accent);
}

/* ===== RESPONSIVE: TABLET ===== */
@media (max-width: 1024px) {
    .nav-center { display: none; }
    .right-icon { height: 28px; width: 28px; }
    #nav-left-text { font-size: 18px; }
}

/* ===== RESPONSIVE: MOBILE ===== */
@media (max-width: 640px) {
    #logo { height: 36px; }
    .navbar { padding: 5px 10px; }
}
