/* Base Navbar Styles */
:root {
    --nav-height: 64px;
    --primary-color: #2563eb;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    /* Use a solid-ish background reference or just specific values in classes */
    --bg-color: #fafafa;
    --border-color: #e2e8f0;
}

/* Ensure content doesn't hide behind fixed navbar */
body {
    padding-top: 80px !important;
}

/* Ensure fixed positioning overrides any sticky styles from other files */
.top-nav {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(250, 250, 250, 0.85);
    /* Slightly more opaque */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.login-btn {
    text-decoration: none;
    color: white;
    background: #0f172a;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    border-radius: 0.4rem;
    transition: all 0.2s;
}

.login-btn:hover {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* User Profile */
.user-profile {
    position: relative;
    z-index: 1001;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.profile-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.nav-user-icon {
    color: #000000;
}

/* Points Badge in Navbar */
.nav-points-badge {
    background-color: #000000;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 4px;
}

.hidden {
    display: none !important;
}