/* Navigation Bar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    height: 64px;
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

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

.nav-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-logo {
    font-size: 22px;
    font-weight: 800;
    text-decoration: none;
    background: linear-gradient(135deg, #6C63FF, #00D4FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: #8A8A9A;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: #F0F0F5;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-auth-btn {
    padding: 8px 20px;
    border-radius: 980px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-signin {
    color: #F0F0F5;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-signin:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-signup {
    background: linear-gradient(135deg, #6C63FF, #00D4FF);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.btn-signup:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
}

/* User Profile in Nav */
.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 4px 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 980px;
    cursor: pointer;
    position: relative;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: #F0F0F5;
}

.user-role {
    font-size: 10px;
    font-weight: 500;
    color: #8A8A9A;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #6C63FF, #00D4FF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 200px;
    background: #141420;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: none;
    animation: slideDown 0.2s ease forwards;
}

.nav-dropdown.open {
    display: block;
}

/* Visual cue that the pill is clickable */
.nav-user {
    cursor: pointer;
}

.nav-user.active {
    border-color: rgba(108, 99, 255, 0.4);
    background: rgba(108, 99, 255, 0.08);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    color: #8A8A9A;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #F0F0F5;
}

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

.btn-logout {
    color: #FF6B6B;
}

.btn-logout:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #FF6B6B;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-logo { font-size: 18px; }
}

/* Page spacing for sticky nav */
body {
    padding-top: 72px;
}
