/* ==========================================
   NAVV2 - Premium Compact Navigation
   Namespacad, collision-proof, reversibel
   ========================================== */

/* Root container */
.navv2 {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(10,15,20,.85), rgba(10,15,20,.55));
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 4px 16px rgba(255,122,0,.08);
  height: 72px;
}

.navv2__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand/Logo */
.navv2__brand {
  margin-left: -8px;
  flex-shrink: 0;
}

.navv2__brand img {
  height: 36px;
  width: auto;
  display: block;
}

/* Desktop Navigation */
.navv2__links {
  display: none;
  align-items: center;
  gap: 24px;
}

.navv2__links a {
  text-decoration: none;
  color: #e8eef7;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 12px 8px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  position: relative;
  transition: color 0.2s ease;
}

.navv2__links a:hover {
  color: #ffa347;
}

.navv2__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff7a45, #ffc64d);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.navv2__links a:hover::after,
.navv2__links a.is-active::after {
  transform: scaleX(1);
}

/* Language Switcher (Desktop) - SEO FIX: 48px tap target */
.navv2__lang {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  color: #bdbdbd;
  margin-left: 8px;
}

.navv2__lang-divider {
  color: #555;
}

.navv2__lang a {
  text-decoration: none;
  color: #bdbdbd;
  transition: color 0.2s ease, text-shadow 0.2s ease;
  padding: 10px 14px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}

.navv2__lang a::after {
  display: none;
}

.navv2__lang a:hover {
  color: #ffa347;
  text-shadow: 0 0 8px rgba(255,122,0,0.45);
}

.navv2__lang a.is-active {
  color: #ff7a00;
  text-shadow: 0 0 10px rgba(255,122,0,0.6);
}

/* Hamburger Toggle - SEO FIX: 48px tap target */
.navv2__toggle {
  display: none;
  min-width: 48px;
  min-height: 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(30,35,45,0.8);
  border: 1px solid rgba(255,122,0,0.2);
  cursor: pointer;
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.navv2__toggle:hover {
  background: rgba(40,45,55,0.9);
  border-color: rgba(255,122,0,0.4);
}

.navv2__toggle:focus-visible {
  outline: 2px solid #ff9b33;
  outline-offset: 2px;
}

.navv2__toggle-bar {
  width: 20px;
  height: 2px;
  background: #e8eef7;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.navv2.is-open .navv2__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navv2.is-open .navv2__toggle-bar:nth-child(2) {
  opacity: 0;
}

.navv2.is-open .navv2__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer */
.navv2__drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(88vw, 420px);
  height: 100dvh;
  background: rgba(16, 20, 26, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px 0 0 20px;
  box-shadow: -8px 0 32px rgba(0,0,0,.6), 0 0 0 1px rgba(255,122,0,.15);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.28s;
  z-index: 1090;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
  padding-top: 88px;
  display: none;
  visibility: hidden;
  pointer-events: none;
}

.navv2.is-open .navv2__drawer {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.navv2__drawer-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.navv2__drawer-item {
  border-top: 1px dashed rgba(255,122,0,.22);
}

.navv2__drawer-item:first-child {
  border-top: none;
}

.navv2__drawer-link {
  display: block;
  padding: 16px 14px;
  color: #e9eef6;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  min-height: 52px;
  display: flex;
  align-items: center;
}

.navv2__drawer-link:hover {
  background: radial-gradient(130% 150% at 0% 0%, rgba(255,122,0,.14), transparent 65%);
  color: #ffd7b0;
  box-shadow: inset 0 0 0 1px rgba(255,122,0,.28);
}

.navv2__drawer-link.is-active {
  background: radial-gradient(170% 190% at 10% 10%, rgba(255,122,0,.18), transparent 65%);
  color: #ffb36b;
  box-shadow: inset 0 0 0 1px rgba(255,122,0,.4), 0 0 14px rgba(255,122,0,.28);
}

.navv2__drawer-separator {
  margin: 12px 8px;
  border-top: 1px dashed rgba(255,122,0,.25);
}

.navv2__drawer-lang {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 4px;
  font-weight: 500;
  font-size: 0.95rem;
}

.navv2__drawer-lang a {
  color: #bdbdbd;
  text-decoration: none;
  transition: color 0.2s ease;
}

.navv2__drawer-lang a:hover {
  color: #ffa347;
}

.navv2__drawer-lang a.is-active {
  color: #ff7a00;
}

.navv2__drawer-lang-divider {
  color: #666;
}

/* Backdrop */
.navv2__backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  z-index: 1089 !important;
  display: none;
}

.navv2.is-open .navv2__backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.28s ease, visibility 0s;
}

/* Scroll lock */
html.navv2-no-scroll,
html.navv2-no-scroll body {
  overflow: hidden;
}

/* ========== RESPONSIVE ========== */

/* Desktop: Show links, hide toggle & drawer */
@media (min-width: 992px) {
  .navv2__links {
    display: flex;
  }
  
  .navv2__toggle {
    display: none;
  }
  
  .navv2__drawer,
  .navv2__backdrop {
    display: none !important;
  }
}

/* Mobile: Show toggle, hide desktop links */
@media (max-width: 991.98px) {
  /* Prevent horizontal scroll from drawer */
  html,
  body {
    overflow-x: hidden;
  }
  
  /* Remove backdrop-filter on mobile so fixed toggle works */
  .navv2 {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  
  .navv2__toggle {
    display: flex;
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1100;
  }
  
  .navv2__links {
    display: none;
  }
  
  .navv2__drawer,
  .navv2__backdrop {
    display: block;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .navv2__container {
    padding: 0 16px;
  }
  
  .navv2__drawer {
    width: min(92vw, 380px);
  }
  
  .navv2__brand img {
    height: 30px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .navv2,
  .navv2 *,
  .navv2__drawer,
  .navv2__backdrop {
    transition: none !important;
  }
}
