/* ==========================================================
   YouLifeRP – design tokens
   Palette: naer-sort baggrund, kulmørke paneler, guld + sølv
   accenter (hentet fra logoets to-farvede ring), varm offwhite tekst.
   Type: Bebas Neue (display/overskrifter, graffiti-agtig kant),
         Work Sans (brødtekst), JetBrains Mono (data/status/IP).
   ========================================================== */
:root {
  --bg:            #0b0b0d;
  --bg-panel:      #16161a;
  --bg-panel-2:    #1d1d22;
  --line:          #2a2a30;
  --text:          #e9e6dd;
  --text-dim:      #a3a09a;
  --gold:          #f0b429;
  --gold-deep:     #b9820f;
  --silver:        #c9ccd1;
  --silver-deep:   #8b8f96;
  --danger:        #b3413e;
  --success:       #4f9d69;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Work Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius: 4px;
  --shadow-panel: 0 20px 50px -25px rgba(0,0,0,0.7);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  background-image:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(240,180,41,0.08), transparent),
    radial-gradient(ellipse 900px 500px at 85% 0%, rgba(201,204,209,0.06), transparent);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0 0 0.4em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }

.accent-gold  { color: var(--gold); }
.accent-silver{ color: var(--silver); }

p { color: var(--text-dim); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* signature element: split gold/silver rule, echoing the logo's two-tone ring */
.split-rule {
  height: 3px;
  width: 84px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--silver) 0%, var(--silver) 49%, var(--gold) 51%, var(--gold) 100%);
  margin: 0.6em 0 1.4em;
}
.split-rule.center { margin-left: auto; margin-right: auto; }

/* ---------- layout helpers ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-head { max-width: 640px; margin-bottom: 2.6rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #1a1400;
  box-shadow: 0 8px 24px -10px rgba(240,180,41,0.55);
}
.btn-gold:hover { box-shadow: 0 12px 28px -10px rgba(240,180,41,0.75); }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--silver); }
.btn-discord {
  background: #16161a;
  border-color: var(--line);
  color: var(--text);
}
.btn-discord:hover { border-color: #5865F2; color: #97a1ff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #08150c; }
.btn-small { padding: 0.55rem 1.1rem; font-size: 0.85rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,11,13,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-logo { width: 40px; height: 40px; border-radius: 50%; }
.brand-name { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.03em; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
  justify-content: flex-end;
}
.main-nav ul { display: flex; gap: 1.6rem; }
.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  position: relative;
  padding: 0.3rem 0;
}
.main-nav a:hover { color: var(--text); }
.main-nav a.active { color: var(--gold); }
.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--silver));
}

.nav-auth { display: flex; align-items: center; gap: 0.8rem; }
.user-chip { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.user-avatar { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 5.5rem 0 6rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 60%, var(--bg) 100%),
    radial-gradient(ellipse 700px 400px at 50% 0%, rgba(240,180,41,0.10), transparent);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3rem;
}
.hero-copy p { max-width: 46ch; font-size: 1.05rem; }
.hero-actions { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-logo-wrap {
  display: flex;
  justify-content: center;
}
.hero-logo-wrap img {
  width: min(380px, 100%);
  filter: drop-shadow(0 25px 45px rgba(0,0,0,0.6));
}
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.6rem;
  font-family: var(--font-mono);
}
.hero-stats div strong { display: block; font-size: 1.4rem; color: var(--gold); }
.hero-stats div span { font-size: 0.75rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- cards / grid ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-top: 3px solid;
  border-image: linear-gradient(90deg, var(--silver), var(--gold)) 1;
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-panel);
}
.card h3 { margin-bottom: 0.5rem; }
.card p { margin: 0; font-size: 0.92rem; }

/* ---------- rules page ---------- */
.rules-list { display: flex; flex-direction: column; gap: 1.2rem; }
.rule-block {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
}
.rule-block h3 {
  display: flex; align-items: baseline; gap: 0.7rem;
  margin-bottom: 0.8rem;
}
.rule-block .rule-num {
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 1rem;
}
.rule-block ol { margin: 0; padding-left: 1.2rem; color: var(--text-dim); }
.rule-block li { margin-bottom: 0.4rem; }
.rule-block li::marker { color: var(--silver); font-family: var(--font-mono); }

/* ---------- forms ---------- */
.form-panel {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 640px;
}
.field { margin-bottom: 1.3rem; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--silver);
}
.field textarea,
.field select,
.field input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.field textarea { min-height: 140px; resize: vertical; }
.field small { color: var(--text-dim); font-size: 0.8rem; }

/* ---------- application cards / status ---------- */
.app-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin-bottom: 1rem;
}
.app-card-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.6rem; flex-wrap: wrap; gap: 0.6rem;
}
.app-meta { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-dim); }
.app-content { white-space: pre-wrap; color: var(--text); font-size: 0.94rem; }
.app-actions { display: flex; gap: 0.7rem; margin-top: 1rem; }

.status-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.status-pending { color: var(--gold); border-color: var(--gold-deep); }
.status-approved { color: var(--success); border-color: var(--success); }
.status-denied { color: var(--danger); border-color: var(--danger); }

.alert {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 1.4rem;
  border: 1px solid;
}
.alert-success { background: rgba(79,157,105,0.1); border-color: var(--success); color: #bfe6cb; }
.alert-error { background: rgba(179,65,62,0.1); border-color: var(--danger); color: #f0b8b6; }
.alert-info { background: rgba(201,204,209,0.08); border-color: var(--line); color: var(--text-dim); }

/* ---------- donation tiers ---------- */
.tier-card { text-align: center; display: flex; flex-direction: column; }
.tier-price { font-family: var(--font-display); font-size: 2.4rem; color: var(--gold); margin: 0.4rem 0; }
.tier-card ul { margin: 1.2rem 0; text-align: left; }
.tier-card ul li {
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.9rem;
  color: var(--text-dim);
}
.tier-card .btn { margin-top: auto; justify-content: center; }
.tier-card.featured { border-top-color: var(--gold); box-shadow: 0 25px 60px -25px rgba(240,180,41,0.35); }

/* ---------- vehicles ---------- */
.vehicle-card { overflow: hidden; padding: 0; }
.vehicle-card .vehicle-img {
  height: 160px;
  background: linear-gradient(135deg, var(--bg-panel-2), var(--bg));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); color: var(--text-dim); font-size: 0.8rem;
  border-bottom: 1px solid var(--line);
}
.vehicle-card .vehicle-body { padding: 1.4rem 1.6rem; }
.vehicle-class {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.vehicle-price { font-family: var(--font-mono); color: var(--silver); margin-top: 0.6rem; }

/* ---------- discord page ---------- */
.discord-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.discord-widget-list { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1rem; }
.discord-member {
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--bg-panel-2);
  border-radius: var(--radius);
  padding: 0.5rem 0.8rem;
  font-size: 0.85rem;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }

/* ---------- about ---------- */
.team-card { text-align: center; }
.team-avatar {
  width: 76px; height: 76px; border-radius: 50%;
  margin: 0 auto 0.8rem;
  border: 2px solid var(--gold-deep);
}
.team-role { font-family: var(--font-mono); color: var(--silver); font-size: 0.78rem; text-transform: uppercase; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 4rem; }
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
}
.footer-brand { display: flex; gap: 0.8rem; align-items: flex-start; }
.footer-logo { width: 48px; height: 48px; border-radius: 50%; }
.footer-links { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-links h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--silver);
  margin-bottom: 0.8rem;
}
.footer-links a { display: block; color: var(--text-dim); font-size: 0.88rem; margin-bottom: 0.5rem; }
.footer-links a:hover { color: var(--gold); }
.server-ip { font-family: var(--font-mono); color: var(--gold); font-size: 0.9rem; }
.footer-bottom {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dim);
  padding: 1.2rem;
  border-top: 1px solid var(--line);
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy p { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .discord-panel { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 1.2rem 1.5rem 1.6rem;
    display: none;
    gap: 1.2rem;
  }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 1rem; }
  .nav-auth { justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
