/* ============================================================
   Shared site header for static guide pages
   Mirrors the Next.js <Navbar /> so the top bar is identical
   on /en/, /vehicles/, /guides/ and every article page.
   ============================================================ */

@font-face {
  font-family: "PangMenZhengDaoTitle";
  src: url("/fonts/pangmen-title.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.ghd {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(13, 21, 38, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #1f2937;
  font-family: "PangMenZhengDaoTitle", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  box-sizing: border-box;
}
.ghd *,
.ghd *::before,
.ghd *::after { box-sizing: border-box; }

.ghd-bar {
  max-width: 1280px;
  margin: 0 auto;
  height: 64px;
  padding-inline: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
@media (min-width: 1280px) {
  .ghd-bar { height: 80px; padding-inline: 24px; gap: 12px; }
}
@media (min-width: 1280px) {
  .ghd-bar { padding-inline: 40px; }
}

/* ---- logo ---- */
.ghd-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 0;
}
.ghd-badge {
  width: 36px;
  height: 36px;
  background: #fff;
  color: #000;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  flex-shrink: 0;
  transition: background 0.15s;
}
.ghd-logo:hover .ghd-badge { background: #e5e7eb; }
@media (min-width: 768px) {
  .ghd-badge { width: 40px; height: 40px; font-size: 18px; }
}
.ghd-txt { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.ghd-name {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.025em;
  white-space: nowrap;
  display: block;
}
@media (max-width: 379px) { .ghd-name { font-size: 12.5px; } }
@media (min-width: 768px) { .ghd-name { font-size: 18px; } }
.ghd-tag {
  display: none;
  color: #6b7280;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  white-space: nowrap;
}
@media (min-width: 640px) { .ghd-tag { display: block; } }

/* ---- desktop links ---- */
.ghd-links { display: none; }
@media (min-width: 1280px) {
  .ghd-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
  }
}
@media (min-width: 1280px) {
  .ghd-links { gap: 32px; }
}
.ghd-links a {
  color: #d1d5db;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}
@media (min-width: 1280px) { .ghd-links a { font-size: 14px; } }
.ghd-links a:hover,
.ghd-links a.on { color: #22d3ee; }

/* ---- right cluster ---- */
.ghd-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
@media (min-width: 1280px) { .ghd-right { gap: 12px; } }

/* ---- language dropdown ---- */
.ghd-lang { position: relative; }
.ghd-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: #d1d5db;
  border-radius: 8px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  line-height: 1;
}
.ghd-lang-btn:hover { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.ghd-lang-btn .ghd-globe { color: #9ca3af; flex-shrink: 0; }
.ghd-lang-btn .ghd-chev { color: #6b7280; flex-shrink: 0; transition: transform 0.15s; }
.ghd-lang.open .ghd-chev { transform: rotate(180deg); }
@media (max-width: 379px) {
  .ghd-lang-btn { padding: 8px; gap: 6px; font-size: 13px; }
  .ghd-lang-btn .ghd-globe { width: 14px; height: 14px; }
}
.ghd-lang-menu {
  position: absolute;
  inset-inline-end: 0;
  top: 100%;
  margin-top: 8px;
  width: 176px;
  background: #0d1526;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
  padding: 8px 0;
  z-index: 70;
}
.ghd-lang-menu[hidden] { display: none; }
.ghd-lang-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #d1d5db;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.15s;
}
.ghd-lang-menu a:hover { background: rgba(255, 255, 255, 0.05); }
.ghd-lang-menu a span { flex: 1; }
.ghd-lang-menu a.on { background: rgba(255, 255, 255, 0.1); }
.ghd-lang-menu a.on span { color: #22d3ee; font-weight: 600; }
.ghd-lang-menu a svg { color: #22d3ee; flex-shrink: 0; }

/* ---- CTA + burger ---- */
.ghd-cta {
  display: none;
  background: linear-gradient(90deg, #06b6d4, #2563eb);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: filter 0.15s;
}
.ghd-cta:hover { filter: brightness(1.12); }
@media (min-width: 1280px) { .ghd-cta { display: inline-block; } }

.ghd-burger {
  background: none;
  border: 0;
  color: #fff;
  padding: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
@media (min-width: 1280px) { .ghd-burger { display: none; } }
.ghd-burger .ghd-ico-close { display: none; }
.ghd-burger[aria-expanded="true"] .ghd-ico-menu { display: none; }
.ghd-burger[aria-expanded="true"] .ghd-ico-close { display: block; }

/* ---- mobile drawer (same flow behaviour as the main site) ---- */
.ghd-drawer { border-top: 1px solid #1f2937; background: #0d1526; }
.ghd-drawer[hidden] { display: none; }
@media (min-width: 1280px) { .ghd-drawer { display: none !important; } }
.ghd-drawer-in {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 1280px;
  margin: 0 auto;
}
.ghd-drawer-in a.ghd-dl {
  color: #d1d5db;
  font-size: 16px;
  text-decoration: none;
  padding: 16px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.ghd-drawer-in a.ghd-dl:hover,
.ghd-drawer-in a.ghd-dl.on { color: #22d3ee; background: rgba(255, 255, 255, 0.05); }
.ghd-drawer-in a.ghd-dl-cta {
  margin-top: 16px;
  background: linear-gradient(90deg, #06b6d4, #2563eb);
  color: #fff;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}
.ghd-drawer-in a.ghd-dl-cta:hover { filter: brightness(1.12); }
