/* Glass Navigation Bar */
.glass-nav {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 10px 24px;
    max-width: 600px;
    width: auto;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    font-family: 'Berkeley Mono', monospace;
}

.nav-logo-icon {
    font-size: 16px;
}

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

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #ffffff;
}

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

.nav-button {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(20, 20, 20, 0.85);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    white-space: nowrap;
}

.nav-button:hover {
    background: rgba(40, 40, 40, 0.9);
    border-color: rgba(255, 255, 255, 0.15);
}

.nav-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
}

.nav-time-icon {
    width: 14px;
    height: 14px;
}

/* Scrolled state - glass effect for visibility on white background */
.glass-nav.scrolled {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: background 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
}

/* Text color changes when scrolled */
.glass-nav.scrolled .nav-links a {
    color: rgba(0, 0, 0, 0.85);
    transition: color 0.3s ease;
}

.glass-nav.scrolled .nav-links a:hover {
    color: #000000;
}

/* Button color changes when scrolled */
.glass-nav.scrolled .nav-button {
    background: rgba(20, 20, 20, 0.9);
    color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.glass-nav.scrolled .nav-button:hover {
    background: rgba(0, 0, 0, 1);
    border-color: rgba(0, 0, 0, 0.2);
}

