/* ==========================================================
   SCHOKODOKO — "Schoki" Gaming Hub
   Farbwelt: tiefes Schwarz, Blutrot, mattes Gold
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500&display=swap');

:root {
  --black:        #0a0908;
  --black-panel:  #141110;
  --black-raised: #1c1815;
  --line:         #2c2521;

  --red:          #8c1b1b;
  --red-bright:   #c4291f;
  --red-glow:     rgba(196, 41, 31, 0.35);

  --gold:         #b8912f;
  --gold-bright:  #e3c674;
  --gold-dim:     #6b551f;

  --text:         #eee6d6;
  --text-dim:     #a99f8f;
  --text-faint:   #6f665a;

  --radius: 3px;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* subtle background texture: faint diagonal scanlines */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.012) 0px,
    rgba(255, 255, 255, 0.012) 1px,
    transparent 1px,
    transparent 3px
  );
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

::selection {
  background: var(--red-bright);
  color: var(--black);
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 1;
}

p { margin: 0 0 1em; max-width: 62ch; }

/* ---------- App shell: fixed sidebar + scrollable content ---------- */

.shell {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ---------- Sidebar ---------- */

.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--black-panel);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  padding: 28px 24px 20px;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--gold-bright);
  letter-spacing: 0.03em;
  line-height: 0.95;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 4px;
  letter-spacing: 0.08em;
}

.nav {
  flex: 1;
  padding: 18px 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  border-left: 3px solid transparent;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.nav-item .n {
  color: var(--text-faint);
  font-size: 11px;
  width: 1.4em;
}

.nav-item:hover {
  color: var(--text);
  background: rgba(196, 41, 31, 0.07);
  border-left-color: var(--red);
}

.nav-item.active {
  color: var(--gold-bright);
  background: rgba(184, 145, 47, 0.08);
  border-left-color: var(--gold);
}

.nav-item.active .n { color: var(--gold); }

.sidebar-foot {
  padding: 16px 24px 22px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3fae5c;
  margin-right: 6px;
  box-shadow: 0 0 6px #3fae5c;
}

/* ---------- Main content ---------- */

.main {
  flex: 1;
  min-width: 0;
}

.topbar {
  display: none;
}

.page {
  padding: 64px 56px 90px;
  max-width: 980px;
}

.eyebrow-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--red-bright);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  display: block;
}

.page h1.page-title {
  font-size: clamp(48px, 7vw, 84px);
  color: var(--text);
}

.page h1.page-title em {
  font-style: normal;
  color: var(--gold-bright);
}

.lede {
  margin-top: 20px;
  font-size: 18px;
  color: var(--text-dim);
  max-width: 56ch;
}

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  padding: 72px 56px 80px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, var(--red-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-title {
  position: relative;
  font-size: clamp(64px, 10vw, 128px);
  color: var(--text);
}

.hero-title .line2 {
  color: var(--gold-bright);
  display: block;
}

.hero-alias {
  position: relative;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 18px;
  border-left: 2px solid var(--red);
  padding-left: 12px;
}

.hero-alias strong { color: var(--gold-bright); font-weight: 500; }

.hero-desc {
  position: relative;
  margin-top: 28px;
  font-size: 18px;
  color: var(--text-dim);
  max-width: 54ch;
}

.hero-actions {
  position: relative;
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
  display: inline-block;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--text);
}
.btn-primary:hover { background: var(--red-bright); border-color: var(--red-bright); }

.btn-ghost {
  color: var(--gold-bright);
  border-color: var(--gold-dim);
}
.btn-ghost:hover { border-color: var(--gold); background: rgba(184,145,47,0.08); }

/* ---------- Stat strip ---------- */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: 26px 32px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }

.stat-num {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--gold-bright);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 4px;
}

/* ---------- Section blocks ---------- */

.section {
  padding: 60px 56px;
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 20px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: 34px;
  color: var(--text);
}

.section-head .count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}

/* ---------- Cards grid (games / friends) ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  background: var(--black-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.card:hover {
  border-color: var(--gold-dim);
  background: var(--black-raised);
}

.card-index {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
}

.card h3 {
  font-size: 26px;
  color: var(--text);
  margin-top: 10px;
}

.card p {
  color: var(--text-dim);
  font-size: 14px;
  margin-top: 10px;
  margin-bottom: 0;
}

.tag-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-dim);
}

.tag.gold { color: var(--gold-bright); border-color: var(--gold-dim); }
.tag.red { color: #e0776f; border-color: var(--red); }

/* friend-specific card bits */
.avatar-block {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--red), var(--black-raised));
  border: 1px solid var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--gold-bright);
  margin-bottom: 14px;
}

.friend-status {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-faint);
  margin-top: 12px;
  display: flex;
  align-items: center;
}

/* ---------- Setup / loadout table ---------- */

.loadout {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.loadout-row {
  display: grid;
  grid-template-columns: 120px 1fr 1.4fr;
  border-bottom: 1px solid var(--line);
}

.loadout-row:last-child { border-bottom: none; }

.loadout-row:nth-child(even) { background: rgba(255,255,255,0.012); }

.loadout-slot {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--red-bright);
  padding: 20px 20px;
  letter-spacing: 0.03em;
  border-right: 1px solid var(--line);
  align-self: center;
}

.loadout-item {
  padding: 20px 20px;
  font-weight: 600;
  color: var(--text);
  border-right: 1px solid var(--line);
  align-self: center;
  font-size: 15px;
}

.loadout-detail {
  padding: 20px 20px;
  color: var(--text-dim);
  font-size: 13.5px;
  align-self: center;
}

.loadout-header {
  display: grid;
  grid-template-columns: 120px 1fr 1.4fr;
  background: var(--black-raised);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
}
.loadout-header > div { padding: 12px 20px; }

/* ---------- About page bits ---------- */

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
}

.about-plate {
  border: 1px solid var(--line);
  background: var(--black-panel);
  border-radius: var(--radius);
  padding: 24px;
  height: fit-content;
}

.about-plate .avatar-block {
  width: 64px;
  height: 64px;
  font-size: 28px;
  margin-bottom: 18px;
}

.stat-line {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
}
.stat-line:first-of-type { border-top: none; }
.stat-line span:first-child { color: var(--text-faint); }
.stat-line span:last-child { color: var(--gold-bright); }

.quote-block {
  border-left: 2px solid var(--gold);
  padding-left: 18px;
  margin: 28px 0;
  color: var(--text);
  font-size: 19px;
  font-family: var(--font-display);
  letter-spacing: 0.01em;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 30px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
}

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

/* ---------- Mobile nav toggle ---------- */

.nav-toggle {
  display: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .about-layout { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .loadout-row, .loadout-header { grid-template-columns: 100px 1fr; }
  .loadout-detail { grid-column: 1 / -1; border-top: 1px solid var(--line); border-right: none; }
}

@media (max-width: 760px) {
  .shell { flex-direction: column; }

  .sidebar {
    position: sticky;
    top: 0;
    height: auto;
    width: 100%;
    z-index: 20;
    flex-direction: row;
    align-items: center;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .brand { border-bottom: none; padding: 14px 16px; flex: 1; }
  .brand-mark { font-size: 22px; }
  .brand-sub { display: none; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--black-panel);
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
  }

  .nav.open { display: block; }

  .sidebar-foot { display: none; }

  .nav-toggle {
    display: block;
    background: none;
    border: 1px solid var(--line);
    color: var(--gold-bright);
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 9px 14px;
    margin-right: 14px;
    border-radius: var(--radius);
  }

  .page, .hero, .section, .site-footer { padding-left: 22px; padding-right: 22px; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
}

/* ---------- Reduced motion ---------- */

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