/* Standardized Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.8);
    /* Darker blue/slate tint */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    padding: 0 20px;
    height: 70px;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.navbar-logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    font-size: 1.2em;
    font-weight: 800;
    color: #F8FAFC;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    /* Increased spacing for cleaner look */
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-auth {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Desktop Only: Perfect Centering */
/* Desktop Only: Absolute Centering */
@media (min-width: 1024px) {
    .navbar-container {
        position: relative;
        justify-content: space-between;
    }

    .navbar-menu {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: max-content;
        gap: 30px;
    }
}

.navbar-link {
    color: #94A3B8;
    /* Muted slate text */
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95em;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.navbar-link:hover {
    color: #3B82F6;
    background: rgba(59, 130, 246, 0.1);
}

.navbar-link.active {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
}

/* Underline removed as requested */

.navbar-user {
    color: #E5E7EB;
    font-weight: 600;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    font-size: 0.95em;
}

.navbar-btn {
    background: #3B82F6;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.navbar-btn:hover {
    background: #2563EB;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.navbar-btn.logout {
    background: #EF4444;
}

.navbar-btn.logout:hover {
    background: #DC2626;
}

/* USER PROFILE PILL STYLES */
.user-profile-pill {
    display: flex;
    align-items: center;
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid #374151;
    border-radius: 30px;
    padding: 5px 15px;
    gap: 15px;
    margin-right: 10px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    cursor: default;
}

.user-profile-pill:hover {
    border-color: #3B82F6;
    background: rgba(31, 41, 55, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.user-points {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #FBBF24;
    /* Amber-400 */
    font-weight: 700;
    font-size: 1.05em;
    border-right: 1px solid #4B5563;
    padding-right: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

#userNameDisplay {
    color: #E5E7EB;
    font-weight: 600;
    font-size: 0.95em;
}

.user-headshot-nav {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #3B82F6;
    background-color: #111827;
}

/* Ensure padding for fixed navbar */
body {
    padding-top: 90px;
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    .navbar {
        padding: 5px 15px;
        height: auto;
    }

    .navbar-container {
        flex-wrap: wrap;
    }
}