:root {
  --black:#080808;
  --black-2:#111;
  --black-3:#191919;
  --white:#fff;
  --muted:#aaa;
  --orange:#ff5a00;
  --orange-2:#ff8a00;
  --line:rgba(255,255,255,.12);
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  background:
    linear-gradient(
      180deg,
      #ff8500 0,
      #ff5a00 170px,
      #160c07 430px,
      #080808 700px
    );
  background-attachment:fixed;
  color:var(--white);
  min-height:100vh;
}

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

.forum-header {
  min-height:72px;
  padding:18px 28px;
  display:flex;
  align-items:center;
  gap:28px;
  background:rgba(8,8,8,.94);
  border-bottom:1px solid rgba(255,90,0,.4);
  position:sticky;
  top:0;
  z-index:20;
}

.forum-header .brand {
  font-weight:900;
  font-size:1.1rem;
  text-transform:uppercase;
  margin-right:auto;
}

.forum-header nav {
  display:flex;
  gap:18px;
}

.forum-shell {
  width:min(1180px,calc(100% - 30px));
  margin:0 auto;
}

.forum-hero {
  margin:32px 0 24px;
  padding:58px 38px;
  border-radius:24px;
  background:
    radial-gradient(
      circle at 86% 38%,
      rgba(255,190,75,.85),
      rgba(255,90,0,.2) 18%,
      transparent 35%
    ),
    linear-gradient(
      135deg,
      #ff7800,
      #d93b00 43%,
      #080808 82%
    );
  box-shadow:0 24px 60px rgba(0,0,0,.32);
}

.eyebrow,
.forum-category {
  text-transform:uppercase;
  letter-spacing:.13em;
  font-size:.72rem;
  font-weight:900;
}

.eyebrow {
  margin-bottom:12px;
}

.forum-hero h1 {
  margin:0;
  max-width:780px;
  font-size:clamp(3rem,7vw,6rem);
  line-height:.9;
  text-transform:uppercase;
  letter-spacing:-.055em;
}

.forum-hero p {
  max-width:680px;
  line-height:1.6;
  color:rgba(255,255,255,.86);
  font-size:1.02rem;
}

.forum-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:22px;
  padding-bottom:80px;
}

.forum-topic-card,
.forum-thread,
.forum-reply,
.forum-sidebar section,
#forumReplyComposer {
  background:var(--black-2);
  border:1px solid var(--line);
  border-radius:16px;
}

.forum-topic-card {
  padding:22px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 86px;
  gap:20px;
  margin-bottom:14px;
  transition:.18s ease;
}

.forum-topic-card:hover {
  transform:translateY(-2px);
  border-color:rgba(255,138,0,.55);
}

.forum-category {
  color:var(--orange-2);
}

.forum-topic-card h2 {
  margin:8px 0 10px;
  font-size:1.32rem;
}

.forum-topic-card p {
  color:#c7c7c7;
  line-height:1.55;
}

.forum-topic-meta {
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  font-size:.82rem;
  color:var(--muted);
}

.forum-topic-stats {
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  border-left:1px solid var(--line);
}

.forum-topic-stats strong {
  font-size:1.6rem;
}

.forum-topic-stats span {
  color:var(--muted);
  font-size:.78rem;
}

.forum-sidebar section,
#forumReplyComposer {
  padding:22px;
}

.forum-sidebar {
  position:relative;
}

.forum-sidebar section {
  position:sticky;
  top:94px;
}

label {
  display:block;
  margin:14px 0;
  font-size:.83rem;
  font-weight:800;
}

input,
textarea,
select {
  width:100%;
  margin-top:7px;
  padding:12px;
  border:1px solid #343434;
  border-radius:10px;
  background:#090909;
  color:white;
  font:inherit;
}

textarea {
  resize:vertical;
}

button {
  border:0;
  border-radius:9px;
  padding:12px 16px;
  background:linear-gradient(
    135deg,
    var(--orange-2),
    var(--orange)
  );
  color:white;
  font-weight:900;
  cursor:pointer;
}

.forum-form-status,
.forum-empty {
  color:var(--muted);
  padding-top:12px;
}

.forum-thread {
  padding:30px;
  margin-bottom:20px;
}

.forum-thread h1 {
  margin:8px 0 14px;
  font-size:clamp(2.2rem,5vw,4.8rem);
  line-height:.95;
}

.forum-thread-body {
  margin-top:28px;
  line-height:1.7;
  white-space:pre-wrap;
}

.forum-replies h2 {
  margin:26px 0 14px;
}

.forum-reply {
  padding:20px;
  margin-bottom:12px;
}

.forum-reply-author {
  font-weight:900;
}

.forum-reply-date {
  color:var(--muted);
  font-size:.78rem;
  margin-top:4px;
}

.forum-reply p {
  line-height:1.65;
  white-space:pre-wrap;
}

@media(max-width:850px) {
  .forum-layout {
    grid-template-columns:1fr;
  }

  .forum-sidebar section {
    position:static;
  }
}

@media(max-width:560px) {
  .forum-header nav {
    display:none;
  }

  .forum-topic-card {
    grid-template-columns:1fr;
  }

  .forum-topic-stats {
    border-left:0;
    border-top:1px solid var(--line);
    padding-top:14px;
    align-items:flex-start;
  }
}
