/* ============================================
   GW Observer Website — matching app UI style
   Colors extracted from ImGui theme in codebase
   ============================================ */

:root {
  /* Backgrounds */
  --bg-main:       #131820;
  --bg-panel:      #0E131A;
  --bg-card:       #0E141AE0;
  --bg-card-hover: #141C24;
  --bg-surface:    #1A1E26;

  /* Gold accent (primary brand) */
  --gold:          #D4A020;
  --gold-bright:   #E8C860;
  --gold-dim:      #6A5830;
  --gold-bg:       rgba(212, 160, 32, 0.08);

  /* Text */
  --text:          #E6E6E6;
  --text-dim:      #7D7D7E;
  --text-gold:     #C8B88C;

  /* Borders */
  --border:        #2A2A2A;
  --border-subtle: #1A1A1A;
  --border-gold:   rgba(212, 160, 32, 0.25);

  /* Teams */
  --blue:          #2A8CFF;
  --red:           #FF4A4A;

  /* Status */
  --success:       #40C060;
  --warning:       #E07830;

  /* Layout */
  --radius:        5px;
  --radius-lg:     12px;
  --max-w:         1200px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: 'Inter', 'Segoe UI', 'Roboto', system-ui, sans-serif;
  background: var(--bg-main);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.gold { color: var(--gold); }
.mt { margin-top: 40px; }

/* ---- Navbar ---- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(14, 19, 26, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 18px; color: var(--text);
}
.nav-logo:hover { color: var(--gold); }
.nav-icon { width: 28px; height: 28px; }
.nav-links {
  display: flex; list-style: none; gap: 32px; align-items: center;
}
.nav-links a {
  color: var(--text-dim); font-size: 14px; font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--gold) !important; color: var(--bg-main) !important;
  padding: 6px 18px; border-radius: var(--radius); font-weight: 600 !important;
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--gold-bright) !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--text);
  margin: 5px 0; transition: .3s;
}

/* ---- Hero ---- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 100px 24px 60px; overflow: hidden;
}
.hero-bg-wrap {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 1.2s ease;
}
.hero-bg.active { opacity: 1; }
.hero-bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(19, 24, 30, 0.45) 0%,
    rgba(19, 24, 30, 0.70) 40%,
    rgba(19, 24, 30, 0.92) 75%,
    rgba(19, 24, 30, 0.98) 100%
  );
}
.hero-content {
  position: relative; z-index: 1; text-align: center; max-width: 720px;
}
.hero-badge {
  display: inline-block;
  padding: 6px 16px; border-radius: 100px;
  background: var(--gold-bg); border: 1px solid var(--border-gold);
  color: var(--gold); font-size: 13px; font-weight: 500;
  letter-spacing: 0.04em; margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(40px, 7vw, 72px); font-weight: 700;
  line-height: 1.1; margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: 17px; color: var(--text-dim); max-width: 560px;
  margin: 0 auto 36px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }


/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: var(--radius); font-size: 15px;
  font-weight: 600; transition: all .2s; cursor: pointer; border: none;
}
.btn-primary {
  background: var(--gold); color: var(--bg-main);
}
.btn-primary:hover { background: var(--gold-bright); color: var(--bg-main); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--gold-dim); color: var(--gold); }
.btn-lg { padding: 16px 36px; font-size: 16px; }

/* Hero stats */
.hero-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 28px; margin-top: 48px;
}
.stat { text-align: center; }
.stat-num { display: block; font-size: 28px; font-weight: 700; color: var(--gold); }
.stat-label { font-size: 13px; color: var(--text-dim); letter-spacing: 0.03em; }
.stat-sep { width: 1px; height: 36px; background: var(--border); }

/* Hero dots */
.hero-dots {
  display: flex; gap: 8px; justify-content: center; margin-top: 32px;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border); border: none; cursor: pointer;
  transition: background .3s;
}
.hero-dot.active { background: var(--gold); }

/* ---- Professions Strip ---- */
.prof-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-panel);
  padding: 20px 0;
}
.prof-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: center; gap: 28px; flex-wrap: wrap;
}
.prof-inner img {
  width: 40px; height: 40px; opacity: 0.7;
  transition: opacity .2s, transform .2s;
  image-rendering: auto;
}
.prof-inner img:hover { opacity: 1; transform: scale(1.15); }

/* ---- Sections ---- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-panel); }

.section-head {
  text-align: center; margin-bottom: 56px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px); font-weight: 700;
  margin-bottom: 12px; letter-spacing: -0.01em;
}
.section-head p {
  color: var(--text-dim); font-size: 16px; max-width: 520px; margin: 0 auto;
}

/* ---- Grids ---- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---- Cards ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color .25s, transform .25s;
}
.card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-2px);
}
.card-glass {
  background: rgba(14, 20, 26, 0.65);
  backdrop-filter: blur(8px);
}
.card-icon {
  width: 40px; height: 40px; margin-bottom: 16px;
  color: var(--gold);
}
.card-icon svg { width: 100%; height: 100%; }
.card h3 {
  font-size: 17px; font-weight: 600; margin-bottom: 8px;
}
.card h4 {
  font-size: 15px; font-weight: 600; margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.card p, .mini-card p {
  color: var(--text-dim); font-size: 14px; line-height: 1.65;
}
.card-sm { padding: 22px; }
.card-wide { padding: 28px; }

/* Preview cards */
.card.has-preview {
  cursor: pointer; position: relative;
}
.card.has-preview:hover { border-color: var(--gold); }
.preview-badge {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px; font-size: 12px; font-weight: 500;
  color: var(--gold); opacity: 0.7; transition: opacity .2s;
}
.preview-badge::before {
  content: '';
  display: inline-block; width: 0; height: 0;
  border-left: 6px solid var(--gold);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}
.card.has-preview:hover .preview-badge { opacity: 1; }

/* GIF Modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-content {
  position: relative; max-width: 1200px; width: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius-lg);
  padding: 20px; text-align: center;
}
.modal-close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none; color: var(--text-dim);
  font-size: 28px; cursor: pointer; line-height: 1;
  transition: color .2s;
}
.modal-close:hover { color: var(--text); }
.modal-title {
  font-size: 18px; font-weight: 600; margin-bottom: 16px;
  color: var(--gold);
}
.modal-loading {
  color: var(--text-dim); font-size: 14px; padding: 40px 0;
}
.modal-gif {
  max-width: 100%; border-radius: var(--radius);
  display: none;
}
.modal-gif.loaded { display: block; }

kbd.inline {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: 4px; padding: 1px 7px; font-size: 11px;
  font-family: 'Inter', monospace; color: var(--gold); font-weight: 600;
}

/* Mini cards */
.mini-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color .25s;
}
.mini-card:hover { border-color: var(--gold-dim); }
.mini-card h5 {
  font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text);
}
.mini-card p { font-size: 13px; }

/* ---- Hotkey Row ---- */
.hotkey-row {
  display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 48px;
}
.hotkey-item {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px 26px;
  transition: border-color .25s;
}
.hotkey-item:hover { border-color: var(--gold-dim); }
.hotkey-item kbd {
  display: flex; align-items: center; justify-content: center;
  min-width: 56px; padding: 8px 14px;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius); font-family: 'Inter', monospace;
  font-size: 14px; font-weight: 600; color: var(--gold);
  white-space: nowrap;
}
.hotkey-item strong {
  display: block; font-size: 15px; font-weight: 600;
}
.hotkey-item span {
  display: block; font-size: 13px; color: var(--text-dim); margin-top: 2px;
}

/* ---- Maps Gallery ---- */
.maps-section { background: var(--bg-main); }
.maps-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
}
.map-thumb {
  position: relative; border-radius: var(--radius);
  overflow: hidden; aspect-ratio: 16/10;
  border: 1px solid var(--border); cursor: pointer;
  transition: border-color .25s, transform .25s;
}
.map-thumb:hover {
  border-color: var(--gold-dim); transform: scale(1.03);
}
.map-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.map-thumb:hover img { transform: scale(1.08); }
.map-thumb span {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 6px 10px; font-size: 11px; font-weight: 600;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: var(--text); letter-spacing: 0.02em;
}

/* ---- CTA Section ---- */
.cta-section {
  background: var(--bg-main);
  padding: 80px 0;
}
.cta-box {
  text-align: center;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  max-width: 680px; margin: 0 auto;
}
.cta-box h2 {
  font-size: 32px; font-weight: 700; margin-bottom: 12px;
}
.cta-box p {
  color: var(--text-dim); font-size: 15px; margin-bottom: 28px;
  max-width: 480px; margin-left: auto; margin-right: auto;
}
.cta-buttons {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
.cta-meta {
  margin-top: 20px; font-size: 13px; color: var(--text-dim);
}
.dot { margin: 0 8px; }

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--gold-dim);
  padding: 0;
}
.footer-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.footer-brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px; color: var(--text);
}
.footer-icon { width: 22px; height: 22px; }
.footer-credits {
  font-size: 14px; color: var(--text-dim);
}
.footer-right small {
  font-size: 12px; color: var(--text-dim);
}
.footer-bottom {
  padding: 14px 0;
  text-align: center;
}
.footer-bottom small {
  font-size: 11px; color: var(--text-dim); opacity: 0.6; line-height: 1.5;
}
a.map-thumb { text-decoration: none; color: var(--text); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .maps-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 60px; left: 0; right: 0;
    background: rgba(14, 19, 26, 0.97); padding: 20px 24px;
    border-bottom: 1px solid var(--border); gap: 16px;
  }
  .nav-toggle { display: block; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .maps-grid { grid-template-columns: repeat(2, 1fr); }

  .hero { min-height: auto; padding: 120px 24px 60px; }
  .hero h1 { font-size: 36px; }
  .hero-stats { gap: 16px; }
  .stat-num { font-size: 22px; }

  .hotkey-row { flex-direction: column; align-items: stretch; }
  .hotkey-item { justify-content: center; }

  .section { padding: 64px 0; }
  .cta-box { padding: 40px 24px; }

  .footer-top {
    flex-direction: column; gap: 10px; text-align: center;
  }
}

@media (max-width: 480px) {
  .maps-grid { grid-template-columns: 1fr; }
  .prof-inner { gap: 16px; }
  .prof-inner img { width: 32px; height: 32px; }
}
