/* ═══ NAV.CSS — Shared navigation styles for all Mikohn pages ══
   Custom properties (--green, --surface, etc.) are defined per-page
   in each file's own :root block.
═══════════════════════════════════════════════════════════════ */

/* ─── NAV BAR ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 68px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6%;
  transition: box-shadow 0.3s;
}

.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.35); }

/* ─── LOGO ────────────────────────────────────────────────── */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

/* ─── NAV LINKS ───────────────────────────────────────────── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}

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

/* ─── DROPDOWN ────────────────────────────────────────────── */
.nav-dropdown { position: relative; }

.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-arrow {
  font-size: 0.6rem;
  color: var(--gray);
  transition: transform 0.2s;
}

.nav-dropdown:hover .nav-arrow { transform: rotate(180deg); }

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  min-width: 240px;
  padding: 8px 0;
  list-style: none;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.nav-dropdown:hover .dropdown { display: block; }

.dropdown-section {
  padding: 10px 18px 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}

.dropdown li a {
  display: block;
  padding: 8px 18px 8px 26px;
  font-size: 0.84rem;
  color: var(--gray);
  transition: background 0.15s, color 0.15s;
}

.dropdown li a:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text);
}

/* ─── LANGUAGE SELECTOR ───────────────────────────────────── */
.nav-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.nav-lang a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s;
}

.nav-lang a:hover { color: var(--green); }

.nav-lang a.lang-active {
  color: var(--green);
  font-weight: 700;
}

/* ─── HAMBURGER ───────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── MOBILE OVERLAY ──────────────────────────────────────── */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 299;
}

.mobile-overlay.open { display: block; }

/* ─── MOBILE MENU PANEL ───────────────────────────────────── */
.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: 300px;
  height: 100vh;
  background: var(--surface2);
  border-left: 1px solid var(--border);
  z-index: 300;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

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

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  height: 68px;
}

.mobile-menu-close {
  background: none;
  border: none;
  color: var(--gray);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.mobile-menu-close:hover { color: var(--text); }

/* ─── MOBILE NAV ──────────────────────────────────────────── */
.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}

.mobile-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, background 0.2s;
}

.mobile-nav a:hover { color: var(--green); }

.mobile-nav a.active { color: var(--green); }

/* ─── MOBILE NAV TOGGLE (submenu button) ──────────────────── */
.mobile-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 24px;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}

.mobile-nav-toggle:hover { color: var(--green); }

.mobile-nav-toggle-arrow {
  font-size: 0.6rem;
  color: var(--gray);
  transition: transform 0.2s;
}

/* ─── MOBILE NAV SUBMENU ──────────────────────────────────── */
.mobile-nav-submenu {
  display: none;
  flex-direction: column;
  background: rgba(0,0,0,0.2);
}

.mobile-nav-submenu.open { display: flex; }

.mobile-nav-submenu a {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 10px 24px 10px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: color 0.2s;
}

.mobile-nav-submenu a:hover { color: var(--text); }

.mobile-sub-section {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  padding: 12px 24px 4px 32px;
}

/* ─── MOBILE LANG SWITCHER ────────────────────────────────── */
.mobile-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.mobile-lang a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 4px;
  transition: color 0.2s;
}

.mobile-lang a:hover { color: var(--green); }

.mobile-lang a.lang-active {
  color: var(--green);
  font-weight: 700;
}

/* ─── RESPONSIVE — NAV VISIBILITY ────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-lang  { display: none; }
  .nav-hamburger { display: flex; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
}
