﻿:root {
  --bg-body: #0d0d0d;
  --bg-card: #141414;
  --bg-card-hover: #1c1c1c;
  --bg-surface: #1a1a1a;
  --bg-surface-mixed-200: #1e1e1e;
  --bg-surface-mixed-400: #2a2a2a;
  --bg-border: #2a2a2a;
  --text-primary: #e8e8e8;
  --text-secondary: #999;
  --text-muted: #666;
  --pistachio: #6b8f3a;
  --color-accent: #8bc34a;
  --color-accent-hover: #9dce5c;
  --gold: #ffd700;
  --font-body: 'DM Sans', Arial, Helvetica, sans-serif;
  --font-heading: 'DM Sans', Arial, Helvetica, sans-serif;
  --color-surface-mixed-200: #1e1e1e;
  --color-surface-mixed-400: #2a2a2a;
  --color-text-primary: #e8e8e8;
}
[data-theme="light"] {
  --bg-body: #f5f5f5;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f0f0;
  --bg-surface: #ffffff;
  --bg-surface-mixed-200: #e8e8e8;
  --bg-surface-mixed-400: #dddddd;
  --bg-border: #cccccc;
  --text-primary: #1a1a1a;
  --text-secondary: #555;
  --text-muted: #888;
  --pistachio: #6b8f3a;
  --color-accent: #6b8f3a;
  --color-accent-hover: #5a7a2e;
  --gold: #b8960f;
  --color-surface-mixed-200: #e8e8e8;
  --color-surface-mixed-400: #dddddd;
  --color-text-primary: #1a1a1a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-body);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  transition: background 0.35s ease, color 0.35s ease;
}

a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-hover); }

img { max-width: 100%; height: auto; }

.container-fluid {
  padding: 20px;
  max-width: 1800px;
  margin: 0 auto;
}

.markdown-body.card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: #fff;
}
.btn-primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #111;
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  color: #111;
}
.btn-secondary {
  background: var(--bg-surface-mixed-400);
  border-color: var(--bg-border);
  color: var(--text-primary);
}
.btn-secondary:hover {
  background: var(--bg-surface);
  border-color: var(--text-muted);
}

.text-center { text-align: center; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.flex-wrap { flex-wrap: wrap; }
.me-1 { margin-right: 0.25rem; }
.me-2 { margin-right: 0.5rem; }
.ms-1 { margin-left: 0.25rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.position-relative { position: relative; }

.btn-discord-join {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 10px 24px;
  background: #5865F2;
  color: #fff !important;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-discord-join:hover { background: #4752c4; }

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-box {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  max-width: 560px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.modal-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #2a2a2a;
}
.modal-box-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.modal-box-close {
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
  padding: 0 0.25rem;
}
.modal-box-close:hover { color: #fff; }
[data-theme="light"] .modal-box { background: #fff; border-color: #ccc; }
[data-theme="light"] .modal-box-header { border-bottom-color: #e0e0e0; }
[data-theme="light"] .modal-box-close:hover { color: #000; }
[data-theme="light"] .modal-info-row { border-bottom-color: #e8e8e8; }
[data-theme="light"] .modal-locs-heading { border-top-color: #e0e0e0; }
.modal-box-body {
  padding: 1.25rem;
  overflow-y: auto;
}
.modal-info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.4rem 0;
  border-bottom: 1px solid #222;
  gap: 1rem;
}
.modal-info-row:last-of-type { border-bottom: none; }
.modal-info-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 600;
  flex-shrink: 0;
}
.modal-info-value {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
  word-break: break-all;
}
.modal-info-notes .modal-info-value {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.modal-locs-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin: 1rem 0 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid #2a2a2a;
}
.modal-loc-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
}
.modal-loc-flag { font-size: 1.2rem; }
.modal-loc-name {
  font-weight: 600;
  color: var(--text-primary);
  min-width: 80px;
}
.modal-loc-specs {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

