/**
 * Nav V12 CSS - Single-Tier Production Version
 * - 1-tier structure (removed 2-tier layout)
 * - Responsive: Mobile(<640) | Small Tablet(640-767) | Desktop(768+)
 * - Brand colors: Navy #010079, Gold #D5AD36, Interactive #1B73D3
 * - Touch targets: 44px minimum
 */

/* ========================================
   1. Font & Basic Settings
   ======================================== */
.orbitron {
  font-family: 'Orbitron', sans-serif;
}

/* ========================================
   2. Nav Wrapper & Sticky Compression
   ======================================== */
.nav-wrapper {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, padding;
}

.nav-compressed .brand-logo {
  width: 2rem;
  height: 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-compressed .brand-text {
  font-size: 1rem;
}

/* ========================================
   3. Icon Navigation (Small Tablet: 640-767px)
   ======================================== */
.nav-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: all 0.2s ease;
}

.nav-icon:hover {
  color: #1e293b;
  background: #f1f5f9;
}

.nav-icon.active {
  color: #010079;
  background: rgba(239, 246, 255, 0.8);
}

/* ========================================
   4. Text Navigation Pills (Desktop: 768px+)
   ======================================== */
.nav-pill {
  transition: all 0.2s ease;
}

.nav-pill:not([aria-current="page"]) {
  color: #64748b;
  border-bottom: 2px solid transparent;
  background: transparent;
}

.nav-pill:not([aria-current="page"]):hover {
  color: #1e293b;
  background: #f8fafc;
}

/* ========================================
   5. Dropdown Menu
   ======================================== */
.dropdown-wrapper:hover .dropdown-menu {
  transition-delay: 0.15s;
}

.dropdown-menu {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   6. Mobile Menu Slide
   ======================================== */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-overlay {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-overlay.visible {
  opacity: 1;
  visibility: visible;
}

/* ========================================
   7. Responsive Breakpoints
   ======================================== */

/* Mobile: <640px - Hamburger only */
@media (max-width: 639px) {
  .nav-icon-only {
    display: none !important;
  }
  .nav-text-only {
    display: none !important;
  }
}

/* Small Tablet: 640-767px - Icon nav + Hamburger */
@media (min-width: 640px) and (max-width: 767px) {
  .nav-icon-only {
    display: flex !important;
  }
  .nav-text-only {
    display: none !important;
  }
}

/* Tablet/Desktop: 768px+ - Text nav, no hamburger */
@media (min-width: 768px) {
  .nav-icon-only {
    display: none !important;
  }
  .nav-text-only {
    display: flex !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ========================================
   8. Touch Target Utilities
   ======================================== */
.touch-target {
  min-width: 44px;
  min-height: 44px;
}

/* ========================================
   9. Keyboard Focus Styles
   ======================================== */
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid #1B73D3;
  outline-offset: 2px;
}

/* ========================================
   10. Refined Shadows
   ======================================== */
.shadow-refined {
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
}

/* ========================================
   11. Copy Notification
   ======================================== */
.copy-notification {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: rgba(34, 197, 94, 0.9);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.copy-notification.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   12. Scrollbar Styling (for dropdowns)
   ======================================== */
.dropdown-menu::-webkit-scrollbar {
  width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ========================================
   13. Performance Optimization
   ======================================== */
.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}

.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
}
