/* ============================================================
   Sun-BD Common Styles — Global Nav + Footer + Variables
   Shared across all pages
   ============================================================ */

/* ── CSS VARIABLES (unified with existing pages) ── */
:root {
  --bg-deep: #04070f;
  --bg-mid: #080d1a;
  --bg-card: #0d1525;
  --bg-card2: #101829;
  --accent-gold: #c8a84b;
  --accent-gold-dim: #8a6f2e;
  --accent-cyan: #1de9b6;
  --accent-cyan-dim: #0a6e56;
  --accent-red: #ff4757;
  --accent-red-dim: #7a1520;
  --accent-amber: #ff9f43;
  --text-primary: #e8eaf2;
  --text-secondary: #8a90a8;
  --text-muted: #4a5068;
  --border: rgba(200,168,75,0.15);
  --border-bright: rgba(200,168,75,0.4);
  --grid-line: rgba(255,255,255,0.03);
}

/* ── GLOBAL NAV ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: rgba(4, 7, 15, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-family: 'Noto Sans TC', 'Inter', sans-serif;
}

.site-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-nav-brand img {
  height: 32px;
  width: auto;
}

.site-nav-brand span {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  color: var(--accent-gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav-links {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
  align-items: center;
}

.site-nav-links li a {
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 16px;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  font-weight: 400;
}

.site-nav-links li a:hover,
.site-nav-links li a.active {
  color: var(--accent-gold);
  border-bottom-color: var(--accent-gold);
}

.site-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Member icon */
.site-nav-member {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 16px;
  text-decoration: none;
  transition: all 0.25s;
  line-height: 1;
}

.site-nav-member:hover,
.site-nav-member.active {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
  background: rgba(200,168,75,0.08);
}

/* Language switcher */
.lang-switch {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.lang-switch a {
  padding: 5px 12px;
  font-size: 11px;
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s;
  background: transparent;
}

.lang-switch a:hover {
  color: var(--text-secondary);
  background: rgba(200,168,75,0.05);
}

.lang-switch a.active {
  color: var(--accent-gold);
  background: rgba(200,168,75,0.1);
}

.lang-switch a.disabled {
  color: var(--text-muted);
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Hamburger (mobile) */
.site-nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.site-nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--accent-gold);
  transition: all 0.3s;
}

/* ── GLOBAL FOOTER ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 48px 32px;
  text-align: center;
  position: relative;
  z-index: 1;
  background: rgba(4, 7, 15, 0.6);
  font-family: 'Noto Sans TC', sans-serif;
}

.site-footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.site-footer-brand img {
  height: 28px;
  width: auto;
}

.site-footer-brand span {
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  color: var(--accent-gold);
  letter-spacing: 0.1em;
}

.site-footer-desc {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  line-height: 1.8;
}

.site-footer-contact {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.site-footer-contact a {
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.site-footer-contact a:hover {
  color: var(--accent-gold);
}

.site-footer-disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto 20px;
  padding: 16px 20px;
  border: 1px solid rgba(255,159,67,0.15);
  background: rgba(255,159,67,0.03);
}

.site-footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.site-footer-links a {
  font-size: 11px;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.site-footer-links a:hover {
  color: var(--accent-gold);
}

.site-footer-copy {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .site-nav {
    padding: 0 20px;
  }

  .site-nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(4, 7, 15, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .site-nav-links.open {
    display: flex;
  }

  .site-nav-links li a {
    height: auto;
    padding: 14px 24px;
    border-bottom: none;
    font-size: 14px;
  }

  .site-nav-hamburger {
    display: flex;
  }

  .site-footer {
    padding: 32px 20px 24px;
  }

  .site-footer-contact {
    flex-direction: column;
    gap: 8px;
  }
}
