/* BASIC RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

/* GLOOMY BASE */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #151821 0, #050608 55%, #020204 100%);
  color: #e5e5e5;
}

/* SITE HEADER */

.site-header {
  background: linear-gradient(to right, #050608, #111623);
  border-bottom: 1px solid #23283a;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
}

.site-header-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  gap: 16px;
}

.logo-block {
  flex-shrink: 0;
}

.logo-main {
  font-weight: 800;
  letter-spacing: 0.16em;
  font-size: 18px;
  color: #d6f266;
}

.logo-sub {
  font-size: 11px;
  color: #8a8fa1;
  margin-top: 2px;
}

.site-nav {
  display: flex;
  gap: 10px;
  margin-left: 16px;
}

.nav-link {
  font-size: 12px;
  text-decoration: none;
  text-transform: lowercase;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #b4b8c8;
  background: transparent;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.nav-link:hover {
  border-color: #3b425b;
  background: rgba(214, 242, 102, 0.05);
  color: #e5e5e5;
}

.nav-link-active {
  border-color: #d6f266;
  color: #d6f266;
}

.site-user {
  margin-left: auto;
  font-size: 11px;
  color: #9ca0b5;
}

.user-handle {
  color: #d6f266;
}

/* BOARD HEADER */

.board-header {
  border-bottom: 1px solid #1c2130;
  background: #090b10;
}

.board-header-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
}

.breadcrumbs {
  font-size: 11px;
  color: #7d8295;
}

.crumb {
  white-space: nowrap;
}

.crumb.current {
  color: #d6f266;
}

.crumb-sep {
  margin: 0 6px;
  opacity: 0.5;
}

.board-meta {
  text-align: right;
}

.board-name {
  display: block;
  font-size: 12px;
  color: #e0e1eb;
}

.board-stat {
  display: block;
  font-size: 10px;
  color: #6b7084;
}

/* MAIN LAYOUT */

.page {
  max-width: 980px;
  margin: 18px auto 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr);
  gap: 16px;
}

/* THREAD SHELL */

.thread-shell {
  background: radial-gradient(circle at top left, #171b27 0, #090b11 55%, #07070c 100%);
  border-radius: 10px;
  border: 1px solid #23283a;
  padding: 14px 14px 12px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.6);
  position: relative;
}

.thread-shell::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(214, 242, 102, 0.04);
  pointer-events: none;
}

.thread-title {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
  color: #f0f1f7;
}

.thread-subtitle {
  margin: 4px 0 10px;
  font-size: 11px;
  color: #8a8fa1;
}

.thread-top {
  display: flex;
  padding: 8px 4px 4px;
  border-radius: 8px;
  background: rgba(3, 4, 8, 0.8);
  border: 1px solid #242839;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.thread-top:hover {
  background: rgba(9, 11, 18, 0.95);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

/* VOTE COLUMN */

.vote-column {
  width: 46px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 2px;
}

.vote-btn {
  width: 28px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #585f7a;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.vote-btn:hover {
  border-color: #3c425a;
  background: rgba(214, 242, 102, 0.06);
  color: #d6f266;
}

.vote-score {
  margin: 4px 0;
  font-size: 12px;
  font-weight: 600;
  color: #d6d8f0;
}

/* POST MAIN */

.post-main {
  flex: 1;
  padding-left: 6px;
}

.post-meta {
  font-size: 11px;
  color: #8a8fa1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.post-author {
  color: #f0f1f7;
  font-weight: 600;
}

.post-flair {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid;
}

.flair-shitcore {
  border-color: #42a5f5;
  color: #b9e3ff;
  background: rgba(66, 165, 245, 0.08);
}

.flair-shitgore {
  border-color: #ff6e6e;
  color: #ffb3b3;
  background: rgba(255, 110, 110, 0.08);
}

.flair-neutral {
  border-color: #9e9e9e;
  color: #cccccc;
  background: rgba(158, 158, 158, 0.08);
}

.post-sep {
  opacity: 0.4;
  padding: 0 4px;
}

.post-tag {
  color: #c76fda;
}

/* IMAGE PLACEHOLDER */

.image-placeholder {
  margin-top: 8px;
  margin-bottom: 8px;
  padding: 7px 9px;
  border-radius: 6px;
  border: 1px dashed #3c425a;
  font-size: 11px;
  color: #9da2bc;
  background: rgba(4, 6, 11, 0.9);
  letter-spacing: 0.03em;
  text-transform: lowercase;
  transition: border-style 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.image-placeholder:hover {
  border-style: solid;
  border-color: #d6f266;
  background: rgba(11, 15, 24, 0.95);
}

.image-placeholder-small {
  margin: 4px 0 6px;
  font-size: 10px;
}

/* POST BODY */

.post-body {
  font-size: 13px;
  line-height: 1.55;
  color: #dcdfee;
}

.post-body p {
  margin: 6px 0;
}

/* ACTION BUTTONS */

.post-actions,
.comment-actions {
  margin-top: 6px;
  display: flex;
  gap: 8px;
}

.action-btn {
  font-size: 11px;
  text-transform: lowercase;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 3px 10px;
  background: transparent;
  color: #8a8fa1;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.action-btn:hover {
  border-color: #3c425a;
  background: rgba(214, 242, 102, 0.05);
  color: #e5e5e5;
}

/* COMMENTS */

.comment-area {
  margin-top: 16px;
}

.comment-header {
  margin-bottom: 6px;
}

.comment-title {
  margin: 0;
  font-size: 13px;
  color: #b4b8c8;
}

.comment-list {
  margin-top: 4px;
}

/* COMMENT THING */

.comment.thing {
  display: flex;
  margin: 6px 0;
  padding: 6px 4px;
  border-radius: 8px;
  background: rgba(5, 7, 13, 0.7);
  border: 1px solid rgba(44, 49, 70, 0.9);
  position: relative;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.comment.thing:hover {
  background: rgba(9, 12, 21, 0.95);
  transform: translateY(-1px);
  border-color: #3d435e;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.7);
}

/* COMMENT RAIL – THICK LINES + ARROWS */

.comment-rail {
  width: 20px;
  position: relative;
  flex-shrink: 0;
}

.rail-line {
  position: absolute;
  left: 7px;
  top: -4px;
  bottom: -4px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(to bottom, #3c425a, #585f7a);
}

.rail-arrow {
  position: absolute;
  top: 16px;
  left: 10px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid #585f7a;
}

/* depth variants */
.rail-line-depth {
  background: linear-gradient(to bottom, #5b4f7d, #a66ed8);
}
.rail-line-depth2 {
  background: linear-gradient(to bottom, #703b3b, #ff6e6e);
}

.rail-arrow-depth {
  border-left-color: #a66ed8;
}
.rail-arrow-depth2 {
  border-left-color: #ff6e6e;
}

/* glow on hover */
.comment.thing:hover .rail-line {
  box-shadow: 0 0 12px rgba(214, 242, 102, 0.3);
}
.comment.thing:hover .rail-arrow {
  filter: drop-shadow(0 0 6px rgba(214, 242, 102, 0.4));
}

/* COMMENT VOTE COLUMN OVERRIDE */

.comment .vote-column {
  padding-top: 0;
}

/* COMMENT MAIN */

.comment-main {
  flex: 1;
  padding-left: 6px;
}

.comment-meta {
  font-size: 11px;
  color: #8a8fa1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.comment-author {
  color: #f0f1f7;
  font-weight: 500;
}

.comment-author-op {
  color: #d6f266;
  font-weight: 650;
}

.comment-flair {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid;
}

.comment-time {
  color: #7d8295;
}

.comment-tag {
  color: #c76fda;
}

/* COMMENT BODY */

.comment-body {
  font-size: 13px;
  line-height: 1.5;
  color: #d3d6e9;
  margin-top: 4px;
}

.comment-body p {
  margin: 4px 0;
}

/* COMMENT INDENTATION (LEVELS) */

.comment.level-1 {
  margin-left: 0;
}

.comment.level-2 {
  margin-left: 24px;
}

.comment.level-3 {
  margin-left: 48px;
}

/* SIDEBAR */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.panel {
  border-radius: 10px;
  background: radial-gradient(circle at top, #10131e 0, #080910 60%);
  border: 1px solid #24283a;
  padding: 10px 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.panel-title {
  margin: 0 0 4px;
  font-size: 13px;
  color: #f0f1f7;
}

.panel-text {
  margin: 0;
  font-size: 12px;
  color: #a0a4ba;
  line-height: 1.5;
}

.tag-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-pill {
  font-size: 11px;
  text-decoration: none;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #32384d;
  color: #b4b8c8;
  background: rgba(3, 5, 10, 0.9);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.tag-pill:hover {
  border-color: #d6f266;
  background: rgba(214, 242, 102, 0.1);
  color: #f0f1f7;
  transform: translateY(-1px);
}

/* DESKTOP-ONLY ATTITUDE */

@media (max-width: 900px) {
  body::before {
    content: "Støjpest er skabt til en rigtig computer-browser. Telefoner og tablets må lytte til stilhed.";
    display: block;
    background: #3b0000;
    color: #ffd4d4;
    padding: 8px 10px;
    font-size: 11px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
}
