/**
 * Navigation Component
 * Header and navigation styles
 */

.site-header {
  position: sticky;
  top: 0;
  background: rgba(10, 14, 20, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(230, 232, 235, 0.1);
  padding: var(--space-3) 0;
  z-index: 50;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1536px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.site-logo {
  font-family: var(--font-code);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--frost-white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-1);
  transition: color var(--duration-fast) var(--ease-out);
}

.site-logo:hover {
  color: var(--syntax-gold);
}

.site-logo .logo-bracket {
  color: var(--comment-gray);
}

.site-logo .logo-text {
  color: var(--frost-white);
}

.site-logo .logo-accent {
  color: var(--syntax-gold);
}

.site-nav {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}

.nav-link {
  color: var(--frost-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--duration-fast) var(--ease-out);
  position: relative;
}

.nav-link:hover {
  color: var(--syntax-gold);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--syntax-gold);
  transition: width var(--duration-base) var(--ease-out);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

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

/* Mobile menu toggle (hidden by default, shown on mobile) */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--frost-white);
  font-size: var(--text-2xl);
  cursor: pointer;
  padding: var(--space-1);
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .site-nav {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 250px;
    height: calc(100vh - 70px);
    background: var(--midnight-elevated);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-4);
    gap: var(--space-3);
    transition: right var(--duration-base) var(--ease-out);
    border-left: 1px solid rgba(230, 232, 235, 0.1);
  }
  
  .site-nav.is-open {
    right: 0;
  }
  
  .nav-link {
    width: 100%;
    padding: var(--space-2) 0;
  }
}
