/* Header / navigation */
header {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Logo */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.6rem;
    text-decoration: none;
    line-height: 1;
}

/* Nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    transition: color 0.18s ease, background 0.18s ease;
}

.nav-links a:hover,
.nav-links a:focus {
    color: #ffd700;
    background: rgba(255, 255, 255, 0.03);
}

/* User area */
.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
}

.user-greeting {
    font-weight: 600;
    color: #ffffff;
}

/* Logout button styled to match links */
.logout-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.18s ease, background 0.18s ease;
    border-radius: 8px;
}

.logout-btn:hover,
.logout-btn:focus {
    color: #ffd700;
    background: rgba(255, 255, 255, 0.03);
}

/* Mobile toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
}

/* Mobile menu (hidden by default) */
.mobile-menu {
    display: none;
    position: absolute;
    right: 1rem;
    top: calc(100% + 8px);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    padding: 0.75rem;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    min-width: 180px;
}

.mobile-menu a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem 0.25rem;
    border-radius: 6px;
}

.mobile-menu a:hover {
    color: #ffd700;
    background: rgba(255,255,255,0.03);
}

.mobile-user-info {
    color: #ffffff;
    padding: 0.5rem 0.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
    }
    header .container {
        padding-right: 0.5rem;
    }
}