/**
 * Shared Navigation Menu Styles for Local Legacy Vault
 * Pixel-perfect consistency - DO NOT MODIFY without updating all pages
 */

/* Navigation - Exact specifications */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  background: #0f1218;
  border-bottom: 1px solid var(--border-subtle);
  height: 76px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
  transform: rotate(-5deg) scale(1.05);
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.logo-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--gold-light);
  fill: none;
  position: relative;
  z-index: 1;
}

.logo-text {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-family: 'Inter', sans-serif;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-cta {
  padding: 10px 24px;
  background: var(--gradient-gold);
  color: var(--bg-darker) !important;
  border-radius: 10px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--gold-glow);
}

/* Mobile Menu Toggle Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-primary);
  z-index: 1001;
  position: relative;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2.5;
}

/* Mobile Dropdown Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  background: #141821;
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 0;
  z-index: 999;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.mobile-menu.active {
  max-height: 500px;
  opacity: 1;
}

.mobile-menu a {
  font-family: 'Inter', sans-serif;
  display: block;
  padding: 1rem 2rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border-subtle);
  transition: color 0.2s ease, background 0.2s ease;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--gold);
  background: rgba(201, 174, 102, 0.1);
}

.mobile-menu .nav-cta {
  background: var(--gradient-gold) !important;
  color: var(--bg-darker) !important;
  margin: 1rem 2rem;
  border-radius: 10px;
  text-align: center;
  border: none;
}

.footer-brand .logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .mobile-menu {
    display: block;
  }
}