/**
 * NumeraIQ Navigation Styles
 * Matching React Navigation.tsx and MenuOverlay.tsx exactly
 */

/* ============================================
   Site Header (matching React)
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header, 50);
  transition: all 0.3s ease;
}

/* Glass effect on scroll (matching React: glass-light when scrolled) */
.site-header.is-scrolled {
  background-color: hsl(var(--cream) / 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Dark section state */
.site-header.in-dark-section .menu-toggle {
  color: hsl(var(--text-light));
}

.site-header.in-dark-section .lang-link {
  color: hsl(var(--text-light) / 0.4);
}

.site-header.in-dark-section .lang-link.is-active {
  color: hsl(var(--text-light));
}

.site-header.in-dark-section .lang-divider {
  color: hsl(var(--text-light) / 0.2);
}

/* Logo */
.site-logo {
  display: block;
}

.site-logo img {
  height: 2.5rem; /* h-10 */
  width: auto;
}

@media (min-width: 768px) {
  .site-logo img {
    height: 3rem; /* md:h-12 */
  }
}

/* ============================================
   Language Switcher
   ============================================ */

.language-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
}

.lang-link {
  padding: 0.25rem 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: hsl(var(--dark) / 0.4);
  transition: color 0.2s ease;
}

.lang-link:hover {
  color: hsl(var(--dark) / 0.7);
}

.lang-link.is-active {
  color: hsl(var(--dark));
}

.lang-divider {
  color: hsl(var(--dark) / 0.2);
}

/* ============================================
   Menu Toggle Button (matching React exactly)
   ============================================ */

.menu-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--dark));
  transition: color 0.2s ease;
}

.menu-toggle:hover .menu-toggle-icon {
  transform: rotate(45deg);
}

.menu-toggle-icon {
  transition: transform 0.3s ease;
}

/* ============================================
   Menu Overlay (matching React MenuOverlay.tsx)
   ============================================ */

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: hsl(var(--dark));
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* Close button (matching React: absolute top-6 right-6 lg:right-12) */
.menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--text-light));
  transition: color 0.2s ease;
}

@media (min-width: 1024px) {
  .menu-close {
    right: 3rem;
  }
}

.menu-close:hover {
  color: hsl(var(--lime));
}

/* Menu container layout */
.menu-overlay > .container {
  height: 100%;
  display: flex;
}

/* Left Side - Logo area (desktop only) */
.menu-left {
  display: none;
  width: 50%;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem;
  border-right: 1px solid hsl(var(--text-light) / 0.1);
}

@media (min-width: 1024px) {
  .menu-left {
    display: flex;
  }
}

.menu-logo-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-logo-image {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.menu-subscribe {
  margin-top: auto;
}

.menu-email-input {
  width: 100%;
  max-width: 20rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid hsl(var(--text-light) / 0.3);
  padding: 0.75rem 0;
  color: hsl(var(--text-light));
  font-family: var(--font-sans);
  transition: border-color 0.2s ease;
}

.menu-email-input::placeholder {
  color: hsl(var(--text-light) / 0.5);
}

.menu-email-input:focus {
  outline: none;
  border-color: hsl(var(--lime));
}

/* Right Side - Navigation */
.menu-right {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
}

@media (min-width: 1024px) {
  .menu-right {
    width: 50%;
    padding: 3rem 4rem;
  }
}

/* Menu language switcher override */
.menu-language {
  justify-content: flex-start;
}

.menu-language .lang-link {
  color: hsl(var(--text-light) / 0.5);
  font-size: 0.875rem;
}

.menu-language .lang-link:hover {
  color: hsl(var(--text-light));
}

.menu-language .lang-link.is-active {
  color: hsl(var(--lime));
}

.menu-language .lang-divider {
  color: hsl(var(--text-light) / 0.3);
}

/* Menu navigation links (matching React: text-4xl lg:text-5xl font-semibold) */
.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.menu-link {
  display: block;
  font-size: 2.25rem;
  font-weight: 600;
  color: hsl(var(--text-light));
  text-decoration: none;
  transition: color 0.2s ease;
}

@media (min-width: 1024px) {
  .menu-link {
    font-size: 3rem;
  }
}

.menu-link:hover {
  color: hsl(var(--lime));
}

/* Social links */
.social-link {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--text-light) / 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

.social-link:hover {
  color: hsl(var(--lime));
}

/* Partner badges */
.partner-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid hsl(var(--text-light) / 0.2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--text-light) / 0.6);
}

/* ============================================
   Scroll Progress Indicator
   ============================================ */

.scroll-progress {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60vh;
  background-color: hsl(var(--dark) / 0.1);
  z-index: 40;
  display: none;
}

@media (min-width: 1024px) {
  .scroll-progress {
    display: block;
  }
}

/* Top and bottom brackets (matching React) */
.scroll-progress::before,
.scroll-progress::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 0.75rem;
  height: 0.75rem;
}

.scroll-progress::before {
  top: -1rem;
  border-left: 1px solid hsl(var(--dark) / 0.3);
  border-top: 1px solid hsl(var(--dark) / 0.3);
}

.scroll-progress::after {
  bottom: -1rem;
  border-right: 1px solid hsl(var(--dark) / 0.3);
  border-bottom: 1px solid hsl(var(--dark) / 0.3);
}

.scroll-progress-fill {
  position: absolute;
  inset: 0;
  background-color: hsl(var(--lime));
  transform-origin: top;
  transform: scaleY(0);
}
