/* 1800.gg: dark tactical theme on top of Bootstrap 5.3 (data-bs-theme="dark").
   Change the look by editing the tokens below. */

:root {
  --wd-bg: #0b0d0e;
  --wd-surface: #121517;
  --wd-surface-2: #181c1f;
  --wd-border: #252a2e;
  --wd-text: #e7e9ea;
  --wd-muted: #8a939b;
  --wd-accent: #f5a524;
  --wd-accent-hover: #ffb940;
  --wd-accent-ink: #1a1203;
  --wd-steam: #1b2838;
  --wd-steam-hover: #2a475e;

  /* In-game factions */
  --wd-lonestar: #4ea1ff;
  --wd-valkyra: #ef5b6b;
  --wd-manticore: #34c38f;

  --wd-font-display: "Rajdhani", "Segoe UI", sans-serif;
  --wd-font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wd-radius: 10px;
}

[data-bs-theme="dark"] {
  --bs-body-bg: var(--wd-bg);
  --bs-body-color: var(--wd-text);
  --bs-border-color: var(--wd-border);
  --bs-secondary-color: var(--wd-muted);
  --bs-link-color-rgb: 245, 165, 36;
  --bs-link-hover-color-rgb: 255, 185, 64;
  --bs-tertiary-bg: var(--wd-surface-2);
  --bs-dropdown-bg: var(--wd-surface-2);
}

body {
  background: var(--wd-bg);
  color: var(--wd-text);
  font-family: var(--wd-font-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5 {
  font-family: var(--wd-font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
}

a { text-decoration: none; }
a:hover { text-decoration: underline; }

.text-muted-2 { color: var(--wd-muted) !important; }
.text-accent { color: var(--wd-accent) !important; }
.text-lonestar { color: var(--wd-lonestar) !important; }
.text-valkyra { color: var(--wd-valkyra) !important; }
.text-manticore { color: var(--wd-manticore) !important; }

/* ---------- Navbar ---------- */
.site-nav {
  background: rgba(11, 13, 14, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--wd-border);
  transition: box-shadow 0.2s;
}
.site-nav.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5); }
.site-nav .nav-link {
  font-family: var(--wd-font-display);
  font-weight: 600;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--wd-muted);
}
.site-nav .nav-link:hover,
.site-nav .nav-link.active { color: var(--wd-text); text-decoration: none; }
.site-nav .nav-link.active { box-shadow: inset 0 -2px 0 var(--wd-accent); }

.brand { display: flex; align-items: baseline; gap: 0.5rem; text-decoration: none !important; }
.brand-mark {
  font-family: var(--wd-font-display);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--wd-text);
  letter-spacing: 0.04em;
  padding-left: 0.55rem;
  border-left: 4px solid var(--wd-accent);
}
.brand-mark.small-mark { font-size: 1.25rem; border-left-width: 3px; padding-left: 0.4rem; }
.brand-sub {
  font-family: var(--wd-font-display);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--wd-muted);
}

/* ---------- Buttons & badges ---------- */
.btn { font-weight: 600; border-radius: 8px; }
.btn-accent {
  --bs-btn-bg: var(--wd-accent);
  --bs-btn-border-color: var(--wd-accent);
  --bs-btn-color: var(--wd-accent-ink);
  --bs-btn-hover-bg: var(--wd-accent-hover);
  --bs-btn-hover-border-color: var(--wd-accent-hover);
  --bs-btn-hover-color: var(--wd-accent-ink);
  --bs-btn-active-bg: var(--wd-accent);
  --bs-btn-active-color: var(--wd-accent-ink);
}
.btn-steam {
  --bs-btn-bg: var(--wd-steam);
  --bs-btn-border-color: #3d5a73;
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--wd-steam-hover);
  --bs-btn-hover-border-color: #66c0f4;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--wd-steam-hover);
  --bs-btn-active-color: #fff;
}
.btn-ghost {
  --bs-btn-color: var(--wd-text);
  --bs-btn-hover-bg: var(--wd-surface-2);
  --bs-btn-hover-color: var(--wd-text);
  --bs-btn-active-bg: var(--wd-surface-2);
  --bs-btn-active-color: var(--wd-text);
}
.btn-lg { padding: 0.7rem 1.4rem; }

.badge-soon {
  background: rgba(245, 165, 36, 0.12);
  color: var(--wd-accent);
  border: 1px solid rgba(245, 165, 36, 0.35);
  font-family: var(--wd-font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 0.15em;
}

/* ---------- Layout pieces ---------- */
.section { padding-top: 4rem; padding-bottom: 4rem; }
.section-title {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--wd-muted);
  margin-bottom: 1rem;
}
.section-kicker {
  font-family: var(--wd-font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--wd-muted);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--wd-accent);
}

.panel {
  background: var(--wd-surface);
  border: 1px solid var(--wd-border);
  border-radius: var(--wd-radius);
  padding: 1.25rem 1.4rem;
}

.callout {
  background: linear-gradient(135deg, rgba(245, 165, 36, 0.08), rgba(245, 165, 36, 0) 60%), var(--wd-surface);
  border: 1px solid var(--wd-border);
  border-left: 4px solid var(--wd-accent);
  border-radius: var(--wd-radius);
  padding: 1.5rem;
}

/* Background grid texture shared by hero + page headers */
.hero,
.page-header {
  position: relative;
  border-bottom: 1px solid var(--wd-border);
  background:
    radial-gradient(ellipse 60% 80% at 85% 20%, rgba(245, 165, 36, 0.10), transparent 60%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(78, 161, 255, 0.06), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--wd-bg);
}

/* ---------- Hero ---------- */
.hero { padding: 6rem 0 5rem; overflow: hidden; }
.hero-title {
  font-size: clamp(5rem, 16vw, 10rem);
  line-height: 0.85;
  margin: 0;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #ffffff 30%, #9aa3ab);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lede { font-size: 1.15rem; color: var(--wd-muted); max-width: 36rem; margin-top: 1.25rem; }

.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--wd-accent);
  box-shadow: 0 0 0 0 rgba(245, 165, 36, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(245, 165, 36, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 165, 36, 0); }
}
@media (prefers-reduced-motion: reduce) { .pulse-dot { animation: none; } }

.hud-card {
  background: rgba(18, 21, 23, 0.85);
  border: 1px solid var(--wd-border);
  border-radius: var(--wd-radius);
  padding: 1.25rem 1.4rem;
  position: relative;
}
/* corner brackets */
.hud-card::before,
.hud-card::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border-color: var(--wd-accent);
  border-style: solid;
}
.hud-card::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; border-top-left-radius: var(--wd-radius); }
.hud-card::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; border-bottom-right-radius: var(--wd-radius); }
.hud-card-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--wd-font-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--wd-muted);
  margin-bottom: 0.75rem;
}

.hud-list > div {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--wd-border);
}
.hud-list > div:last-child { border-bottom: 0; }
.hud-list dt { font-weight: 500; color: var(--wd-muted); }
.hud-list dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------- Announcements ---------- */
.announcement-body > p:last-child { margin-bottom: 0; }

/* ---------- Page header ---------- */
.page-header { padding: 4rem 0 3rem; margin-bottom: 2.5rem; }
.page-title { font-size: clamp(2.5rem, 6vw, 3.75rem); margin: 0; text-transform: uppercase; }
.page-lede { color: var(--wd-muted); max-width: 40rem; margin: 0.75rem 0 0; font-size: 1.05rem; }

/* ---------- Servers ---------- */
.server-name { font-family: var(--wd-font-display); font-weight: 700; font-size: 1.2rem; }
.status {
  flex-shrink: 0;
  font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--wd-border);
  color: var(--wd-muted);
  white-space: nowrap;
}
.status::before { content: "●"; margin-right: 0.35rem; }
.status-online { color: var(--wd-manticore); border-color: rgba(52, 195, 143, 0.4); }
.status-offline { color: var(--wd-valkyra); border-color: rgba(239, 91, 107, 0.4); }
.status-untracked { color: var(--wd-accent); border-color: rgba(245, 165, 36, 0.35); }

.server-live { padding-top: 0.75rem; border-top: 1px dashed var(--wd-border); }
.server-players { font-size: 1.05rem; }
.faction-scores { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.faction-score {
  font-size: 0.8rem; font-weight: 600;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--wd-border);
  border-radius: 6px;
  background: var(--wd-surface-2);
}

/* ---------- Rules ---------- */
.rules-list { list-style: none; padding: 0; margin: 0; counter-reset: rule; display: grid; gap: 0.75rem; }
.rules-list li { counter-increment: rule; position: relative; padding-left: 4.25rem; }
.rules-list li::before {
  content: counter(rule, decimal-leading-zero);
  position: absolute; left: 1.3rem; top: 1.1rem;
  font-family: var(--wd-font-display); font-weight: 700; font-size: 1.6rem;
  color: var(--wd-accent);
}
.join-steps li { padding: 0.35rem 0; }

/* ---------- Stats preview ---------- */
.roadmap-item {
  display: flex; align-items: center; gap: 0.75rem;
  height: 100%;
  padding: 0.9rem 1rem;
  background: var(--wd-surface);
  border: 1px solid var(--wd-border);
  border-radius: var(--wd-radius);
  font-weight: 500;
  font-size: 0.95rem;
}
.roadmap-item i { color: var(--wd-accent); font-size: 1.2rem; }

.preview {
  position: relative;
  padding: 1.25rem;
  border: 1px dashed #353c42;
  border-radius: calc(var(--wd-radius) + 4px);
  opacity: 0.8;
  user-select: none;
}
.preview-badge {
  position: absolute; top: -0.8rem; left: 1rem;
  background: var(--wd-bg);
  padding: 0 0.5rem;
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--wd-muted);
}

.stat-tile {
  background: var(--wd-surface);
  border: 1px solid var(--wd-border);
  border-radius: var(--wd-radius);
  padding: 1rem 1.2rem;
}
.stat-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--wd-muted); }
.stat-value { font-family: var(--wd-font-display); font-weight: 700; font-size: 2rem; line-height: 1.1; }

.balance-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; gap: 2px; }
.faction-lonestar { background: var(--wd-lonestar); }
.faction-valkyra { background: var(--wd-valkyra); }
.faction-manticore { background: var(--wd-manticore); }

.match-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--wd-border);
}
.match-row:last-child { border-bottom: 0; }
.match-row .scores { display: flex; gap: 0.6rem; font-family: var(--wd-font-display); font-weight: 700; font-size: 1.15rem; }
.match-row .score { width: 1.6rem; text-align: center; }

.lb-table { --bs-table-bg: transparent; }
.lb-table th {
  font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--wd-muted);
}
.lb-table td { vertical-align: middle; padding-top: 0.55rem; padding-bottom: 0.55rem; }

.skeleton {
  height: 0.8rem;
  border-radius: 4px;
  background: linear-gradient(90deg, #1d2226 0%, #262c31 50%, #1d2226 100%);
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
}
.skeleton-sm { height: 0.6rem; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }

/* ---------- Profile ---------- */
.avatar { border-radius: 8px; object-fit: cover; }
.avatar-sm { width: 26px; height: 26px; border-radius: 5px; }
.avatar-lg { width: 112px; height: 112px; border: 2px solid var(--wd-border); }
.avatar-placeholder {
  display: inline-grid; place-items: center;
  background: var(--wd-surface-2);
  font-size: 3rem; color: var(--wd-muted);
}

/* ---------- Misc ---------- */
.error-code {
  font-family: var(--wd-font-display); font-weight: 700;
  font-size: clamp(6rem, 20vw, 10rem); line-height: 1;
  color: var(--wd-accent);
}

.site-footer { border-top: 1px solid var(--wd-border); background: var(--wd-surface); }
.site-footer a { color: var(--wd-muted); }
.site-footer a:hover { color: var(--wd-text); }

.dropdown-menu { border-color: var(--wd-border); }

@media (max-width: 575.98px) {
  .hero { padding: 3.5rem 0 3rem; }
  .section { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .page-header { padding: 2.5rem 0 2rem; margin-bottom: 1.5rem; }
  .rules-list li { padding-left: 3.5rem; }
  .rules-list li::before { left: 1rem; }
}
