﻿:root {
  --bg: #060606;
  --surface: #0f0f0f;
  --surface-2: #151515;
  --surface-3: #191919;
  --border: #1f1f1f;
  --border-2: #2b2b2b;
  --green: #00ff88;
  --green-soft: rgba(0, 255, 136, 0.12);
  --blue: #6b8cff;
  --amber: #ffb347;
  --red: #ff5555;
  --text: #efefef;
  --text-dim: #9a9a9a;
  --text-muted: #666;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, sans-serif;
  background:
    radial-gradient(circle at top, rgba(0, 255, 136, 0.08), transparent 20%),
    linear-gradient(180deg, #050505, #080808 32%, #0a0a0a);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.forum-shell {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 104px 0 72px;
}

.forum-nav {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 32px;
  background: rgba(6, 6, 6, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-copy strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 19px;
  color: var(--green);
  letter-spacing: -0.04em;
}

.brand-copy span {
  display: block;
  margin-top: 2px;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links,
.nav-actions,
.thread-toolbar,
.hero-actions,
.meta-row,
.thread-meta,
.inline-form-actions,
.auth-tabs,
.page-grid,
.stat-row,
.category-strip,
.post-head {
  display: flex;
}

.nav-links,
.nav-actions,
.thread-toolbar,
.hero-actions,
.meta-row,
.thread-meta,
.inline-form-actions,
.auth-tabs,
.stat-row,
.category-strip,
.post-head {
  align-items: center;
  gap: 12px;
}

.nav-links {
  flex-wrap: wrap;
}

.nav-link,
.ghost-link,
.ghost-button,
.solid-button,
.chip,
.tab-button {
  border-radius: 999px;
  border: 1px solid transparent;
  transition: 0.18s ease;
}

.nav-link,
.ghost-link,
.ghost-button,
.chip,
.tab-button {
  padding: 10px 16px;
  color: var(--text-dim);
  background: transparent;
}

.nav-link.active,
.nav-link:hover,
.ghost-link:hover,
.ghost-button:hover,
.chip:hover,
.tab-button.active {
  color: var(--text);
  border-color: var(--border-2);
  background: rgba(255, 255, 255, 0.03);
}

.solid-button {
  padding: 11px 18px;
  background: var(--green);
  color: #03140b;
  font-weight: 800;
  border-color: transparent;
  box-shadow: 0 0 24px rgba(0, 255, 136, 0.16);
}

.solid-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.28);
}

.ghost-button {
  border-color: var(--border-2);
}

.panel,
.thread-card,
.category-card,
.stat-card,
.auth-card,
.composer-card,
.reply-card,
.profile-card,
.empty-card {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(12, 12, 12, 0.9);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
}

.hero-copy,
.hero-side,
.page-column,
.sidebar {
  min-width: 0;
}

.hero-copy {
  padding: 34px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid rgba(0, 255, 136, 0.22);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-head h1,
.auth-card h1,
.composer-card h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero h1 { font-size: clamp(38px, 6vw, 72px); }
.page-head h1,
.auth-card h1,
.composer-card h1 { font-size: clamp(28px, 4vw, 52px); }

.lede {
  margin: 18px 0 0;
  color: var(--text-dim);
  font-size: 18px;
  line-height: 1.8;
  max-width: 62ch;
}

.hero-actions {
  margin-top: 26px;
  flex-wrap: wrap;
}

.hero-side {
  display: grid;
  gap: 16px;
}

.stat-card,
.panel,
.auth-card,
.composer-card,
.profile-card {
  padding: 24px;
}

.stat-card strong,
.metric-value {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 34px;
  color: var(--green);
  letter-spacing: -0.05em;
}

.stat-card span,
.metric-label,
.muted,
.thread-snippet,
.field-note,
.panel p,
.thread-card p,
.reply-card p,
.profile-card p {
  color: var(--text-dim);
}

.section {
  margin-top: 28px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-head h2,
.sidebar h3,
.panel h3,
.reply-card h3,
.profile-card h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
}

.section-head p,
.section-note {
  margin: 0;
  color: var(--text-dim);
}

.category-strip,
.thread-list,
.reply-list {
  display: grid;
  gap: 16px;
}

.category-strip {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.category-card,
.thread-card,
.reply-card,
.empty-card {
  padding: 22px;
}

.category-card {
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--card-accent, rgba(0,255,136,0.14)), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}

.category-card > * {
  position: relative;
  z-index: 1;
}

.category-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 20px;
  margin-bottom: 16px;
}

.category-card h3,
.thread-card h3,
.reply-card h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
}

.category-card p,
.thread-card p {
  margin: 12px 0 0;
  line-height: 1.7;
}

.thread-list {
  grid-template-columns: 1fr;
}

.thread-card {
  display: grid;
  gap: 14px;
}

.thread-topline,
.detail-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-2);
  color: var(--text-dim);
  font-size: 12px;
}

.badge.accent {
  color: var(--green);
  border-color: rgba(0, 255, 136, 0.18);
  background: rgba(0, 255, 136, 0.08);
}

.thread-title-link:hover {
  color: var(--green);
}

.thread-snippet {
  line-height: 1.75;
}

.thread-meta,
.meta-row,
.post-head {
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 13px;
}

.page-grid {
  align-items: start;
  gap: 22px;
}

.page-column {
  flex: 1 1 0;
}

.sidebar {
  flex: 0 0 330px;
  display: grid;
  gap: 16px;
}

.thread-body,
.reply-body {
  white-space: pre-wrap;
  line-height: 1.85;
  color: var(--text);
}

.post-author {
  font-weight: 700;
  color: var(--green);
}

.inline-form,
.auth-form,
.composer-form {
  display: grid;
  gap: 14px;
}

.field-group {
  display: grid;
  gap: 8px;
}

.field-group label {
  color: var(--text-dim);
  font-size: 13px;
}

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border-2);
  background: #0a0a0a;
  color: var(--text);
  outline: none;
}

.field-group textarea {
  min-height: 160px;
  resize: vertical;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  border-color: rgba(0, 255, 136, 0.4);
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.08);
}

.status-line,
.flash {
  min-height: 22px;
  font-size: 13px;
}

.flash.error,
.status-line.error { color: var(--red); }
.flash.success,
.status-line.success { color: var(--green); }

.auth-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 24px;
}

.auth-card {
  min-height: 540px;
}

.auth-tabs {
  margin-top: 18px;
  flex-wrap: wrap;
}

.tab-button {
  border-color: var(--border-2);
}

.auth-panel {
  display: none;
  margin-top: 18px;
}

.auth-panel.active {
  display: block;
}

.empty-card {
  text-align: center;
  color: var(--text-dim);
}

.footer-note {
  margin-top: 28px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 1080px) {
  .hero,
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .page-grid {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    flex: 1 1 auto;
  }
}

@media (max-width: 760px) {
  .forum-shell {
    width: min(100% - 24px, 1240px);
    padding-top: 88px;
  }

  .forum-nav {
    padding: 14px 16px;
    flex-wrap: wrap;
  }

  .nav-links,
  .nav-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-copy,
  .hero-side .stat-card,
  .panel,
  .thread-card,
  .category-card,
  .reply-card,
  .auth-card,
  .composer-card {
    padding: 18px;
  }
}
