/* ─────────────────────────────────────────────────────────────
   GODLE Shared Nav  — nav.css
   Loaded by every page. Editing here affects all headers.
───────────────────────────────────────────────────────────── */

.godle-nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(9,9,11,0.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 12px 0;
  transition: padding 0.3s ease;
}
.godle-nav.compact { padding: 7px 0; }

.godle-nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}

.gnav-logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: #eeeef0; flex-shrink: 0;
}
.gnav-logo-icon { font-size: 20px; line-height: 1; }
.gnav-logo-text {
  font-size: 18px; font-weight: 800;
  background: linear-gradient(135deg, #FF6B00, #FF9500);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; letter-spacing: -0.3px;
}

.gnav-links {
  display: flex; align-items: center; gap: 2px;
  flex: 1; justify-content: center;
}
.gnav-link {
  padding: 6px 14px; border-radius: 8px;
  color: #8b8d9a; text-decoration: none;
  font-size: 14px; font-weight: 500;
  transition: color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.gnav-link:hover { color: #eeeef0; background: rgba(255,255,255,0.06); }
.gnav-link.gnav-active { color: #eeeef0; font-weight: 600; }

.gnav-pill {
  padding: 6px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: transparent;
  color: #8b8d9a; text-decoration: none;
  font-size: 13px; font-weight: 600;
  transition: all 0.15s ease; white-space: nowrap;
  margin-left: 6px;
}
.gnav-pill:hover { border-color: rgba(255,107,0,0.4); color: #FF6B00; background: rgba(255,107,0,0.06); }
.gnav-pill.gnav-active { border-color: #FF6B00; color: #FF6B00; background: rgba(255,107,0,0.08); }

.gnav-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.gnav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 6px;
  background: none; border: none; cursor: pointer;
}
.gnav-hamburger span {
  display: block; width: 18px; height: 2px;
  background: #8b8d9a; border-radius: 2px; transition: all 0.3s ease;
}

/* ── Icon buttons — theme toggle AND lang toggle ── */
.theme-toggle {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06); background: transparent;
  color: #8b8d9a; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all 0.15s ease;
  font-family: inherit; line-height: 1;
}
.theme-toggle:hover { border-color: rgba(255,255,255,0.12); color: #eeeef0; }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }

/* ── Light mode ── */
html.light .godle-nav       { background: rgba(248,249,252,0.92); border-bottom-color: rgba(0,0,0,0.09); }
html.light .gnav-logo       { color: #111; }
html.light .gnav-link       { color: #6b6d7a; }
html.light .gnav-link:hover { color: #111; background: rgba(0,0,0,0.05); }
html.light .gnav-link.gnav-active { color: #111; }
html.light .gnav-pill       { border-color: rgba(0,0,0,0.15); color: #6b6d7a; }
html.light .theme-toggle    { border-color: rgba(0,0,0,0.08); color: #6b6d7a; }
html.light .theme-toggle:hover { color: #111; }
html.light .theme-toggle .icon-sun  { display: block; }
html.light .theme-toggle .icon-moon { display: none; }
html.light .gnav-hamburger span { background: #6b6d7a; }

/* ── RTL ── */
[dir="rtl"] .godle-nav-inner { flex-direction: row-reverse; }
[dir="rtl"] .gnav-links      { flex-direction: row-reverse; }
[dir="rtl"] .gnav-right      { flex-direction: row-reverse; }

/* ── Language selector ── */
.lang-toggle-wrap { position: relative; }
.lang-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 200px; max-height: 300px; overflow-y: auto;
  background: #1a1a20; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; box-shadow: 0 8px 24px rgba(0,0,0,0.35); z-index: 300;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}
.lang-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-option {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 10px 16px;
  background: none; border: none; width: 100%; cursor: pointer;
  font-family: inherit; font-size: 13px; color: #8b8d9a; text-align: left;
  transition: background 0.15s;
}
.lang-option:hover, .lang-option.active { background: rgba(255,255,255,0.06); color: #eeeef0; }
.lang-option .native  { font-weight: 500; }
.lang-option .english { font-size: 11px; color: #6b6d7a; }
html.light .lang-dropdown { background: #ffffff; border-color: rgba(0,0,0,0.1); }
html.light .lang-option   { color: #6b6d7a; }
html.light .lang-option:hover, html.light .lang-option.active { background: rgba(0,0,0,0.04); color: #111; }

/* ── Mobile ── */
@media (max-width: 700px) {
  .gnav-links {
    display: none; flex-direction: column; align-items: flex-start;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #111114; border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 10px 16px 14px; gap: 2px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25); z-index: 999;
  }
  .gnav-links.open  { display: flex; }
  .gnav-hamburger   { display: flex; }
  .gnav-link  { width: 100%; padding: 10px 12px; border-radius: 8px; }
  .gnav-pill  { width: 100%; padding: 10px 12px; border-radius: 8px; border: none; margin-left: 0; }
}
