/* ── Shared Site Navigation & Footer ── */

/* Header Nav */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: rgba(2,2,18,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-family: 'Orbitron', 'M PLUS 1p', 'Hiragino Sans', sans-serif;
}
.site-header-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; height: 48px;
}
.site-header .site-logo {
  font-size: 13px; font-weight: 900; color: #fff;
  letter-spacing: 0.1em; text-decoration: none; white-space: nowrap;
}
.site-header .site-logo:hover { opacity: 0.85; text-decoration: none; }

/* Desktop nav links */
.site-nav { display: flex; align-items: stretch; gap: 4px; height: 100%; }
.site-nav a {
  font-size: 12px; color: #c8d8ff; letter-spacing: 0.08em;
  text-decoration: none; padding: 0 10px; border-radius: 6px;
  display: flex; align-items: center;
  transition: color 0.15s, background 0.15s; white-space: nowrap;
}
.site-nav a span { pointer-events: none; }
.site-nav a:hover { color: #fff; background: rgba(255,255,255,0.06); text-decoration: none; }
.site-nav a.active { color: #44aaff; }

/* Language toggle in header */
.site-header .header-lang { display: flex; gap: 0; margin-left: 8px; }
.site-header .header-lang button {
  background: none; border: 1px solid rgba(255,255,255,0.12);
  color: #c8d8ff; font-family: 'Orbitron', sans-serif; font-size: 11px;
  padding: 4px 10px; cursor: pointer; letter-spacing: 0.08em;
  transition: background 0.15s, color 0.15s;
}
.site-header .header-lang button:first-child { border-radius: 4px 0 0 4px; border-right: none; }
.site-header .header-lang button:last-child { border-radius: 0 4px 4px 0; }
.site-header .header-lang button.active { background: rgba(255,255,255,0.12); color: #fff; }

/* Hamburger (mobile) */
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 32px; position: relative; padding: 0;
}
.hamburger span {
  display: block; width: 20px; height: 2px; background: #8899cc;
  position: absolute; left: 6px; transition: transform 0.25s, opacity 0.25s;
}
.hamburger span:nth-child(1) { top: 9px; }
.hamburger span:nth-child(2) { top: 15px; }
.hamburger span:nth-child(3) { top: 21px; }
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; top: 48px; left: 0; right: 0; bottom: 0; z-index: 899;
  background: rgba(2,2,18,0.97); backdrop-filter: blur(16px);
  flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 32px 20px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Orbitron', sans-serif; font-size: 14px; color: #c8d8ff;
  letter-spacing: 0.1em; text-decoration: none; padding: 14px 24px;
  border-radius: 8px; transition: color 0.15s, background 0.15s; width: 100%;
  text-align: center; max-width: 320px;
}
.mobile-menu a:hover { color: #fff; background: rgba(255,255,255,0.06); text-decoration: none; }
.mobile-menu a.active { color: #44aaff; }
.mobile-menu .mobile-lang { display: flex; gap: 0; margin-top: 16px; }
.mobile-menu .mobile-lang button {
  background: none; border: 1px solid rgba(255,255,255,0.12);
  color: #c8d8ff; font-family: 'Orbitron', sans-serif; font-size: 12px;
  padding: 8px 20px; cursor: pointer; letter-spacing: 0.08em;
  transition: background 0.15s, color 0.15s;
}
.mobile-menu .mobile-lang button:first-child { border-radius: 6px 0 0 6px; border-right: none; }
.mobile-menu .mobile-lang button:last-child { border-radius: 0 6px 6px 0; }
.mobile-menu .mobile-lang button.active { background: rgba(255,255,255,0.12); color: #fff; }

/* Footer */
.site-footer {
  margin-top: 64px; padding: 40px 20px 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-family: 'Orbitron', 'M PLUS 1p', 'Hiragino Sans', sans-serif;
  text-align: center;
}
.site-footer-inner { max-width: 720px; margin: 0 auto; }
.site-footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-bottom: 16px; }
.site-footer-nav a {
  font-size: 12px; color: #c8d8ff; letter-spacing: 0.08em;
  text-decoration: none; transition: color 0.15s;
}
.site-footer-nav a:hover { color: #44aaff; text-decoration: none; }
.site-footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-bottom: 16px; }
.site-footer-legal a {
  font-size: 11px; color: #c8d8ff; letter-spacing: 0.06em;
  text-decoration: none; transition: color 0.15s;
}
.site-footer-legal a:hover { color: #44aaff; text-decoration: none; }
.site-footer-social { margin-bottom: 12px; }
.site-footer-social a {
  font-size: 11px; color: #c8d8ff; letter-spacing: 0.06em;
  text-decoration: none; transition: color 0.15s;
}
.site-footer-social a:hover { color: #44aaff; }
.site-footer-copy { font-size: 11px; color: #8899aa; letter-spacing: 0.08em; }

/* Body padding for fixed header */
body.has-site-header { padding-top: 48px; }

/* Responsive */
@media (max-width: 640px) {
  .site-nav { display: none; }
  .site-header .header-lang { display: none; }
  .hamburger { display: block; }
}
@media (min-width: 641px) {
  .mobile-menu { display: none !important; }
}
