@import url("https://fonts.googleapis.com/css?family=Lato:400,700");

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:       #03FFEB;   /* 9:30 teal */
  --accent-dk:    #00cfc0;
  --bg:           #111111;
  --surface:      rgba(0, 0, 0, 0.55);
  --surface-lite: rgba(255, 255, 255, 0.07);
  --border:       rgba(255, 255, 255, 0.12);
  --text:         #E5E6E6;
  --text-muted:   #999;
  --header-bg:    rgba(0, 0, 0, 0.75);
  --sticky-bg:    rgba(3, 255, 235, 0.06);
  --code-bg:      rgba(0, 0, 0, 0.4);
  --font-body:    'Lato', sans-serif;
  --font-heading: Impact, 'Arial Black', sans-serif;
  --radius:       3px;
}

html { font-size: 16px; }
body {
  font-family: var(--font-body);
  background-color: var(--bg);
  background-image: url("https://forumarchive.930.com/Themes/930curve/images/930/930_metal_seamless.jpg");
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #fff; text-decoration: none; }

.container { max-width: 1020px; margin: 0 auto; padding: 0 1.25rem; }

/* ── Header ── */
.site-header {
  background: var(--header-bg);
  border-bottom: 2px solid var(--accent);
  padding: 1rem 0;
  backdrop-filter: blur(4px);
}
.site-header .container { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }

.site-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-name:hover { color: #fff; }

.breadcrumbs {
  font-size: 0.83rem;
  color: #666;
}
.breadcrumbs a { color: #999; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { margin: 0 0.35rem; }

/* ── Main ── */
main { padding: 2rem 0 3rem; }

.page-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.6rem;
}

/* ── Category / Board Index ── */
.category { margin-bottom: 2.5rem; }

.category-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.4rem;
  padding: 0.4rem 0.75rem;
  background: rgba(3, 255, 235, 0.08);
  border-left: 3px solid var(--accent);
}

/* ── Tables ── */
.board-table,
.topic-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.board-table th,
.topic-table th {
  background: rgba(3, 255, 235, 0.1);
  text-align: left;
  padding: 0.55rem 0.9rem;
  font-family: var(--font-heading);
  font-weight: normal;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
}

.board-table td,
.topic-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.board-table tr:last-child td,
.topic-table tr:last-child td { border-bottom: none; }

.board-table tr:hover td,
.topic-table tr:hover td { background: var(--surface-lite); }

.topic-sticky { background: var(--sticky-bg); }

.num-col { text-align: right; width: 80px; color: var(--text-muted); }
.date-col { width: 160px; color: var(--text-muted); font-size: 0.8rem; }

.board-name,
.topic-name { font-weight: 700; color: var(--text); }
.board-name:hover,
.topic-name:hover { color: var(--accent); }

.board-desc { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.2rem; }
.topic-starter { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.15rem; }

.board-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

/* ── Badges ── */
.badge {
  display: inline-block;
  font-size: 0.65rem;
  font-family: var(--font-heading);
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15em 0.5em;
  border-radius: 2px;
  margin-right: 0.35rem;
  vertical-align: middle;
}
.badge.sticky { background: rgba(3, 255, 235, 0.2); color: var(--accent); border: 1px solid var(--accent); }
.badge.locked { background: rgba(255,255,255,0.08); color: #888; border: 1px solid #444; }

/* ── Posts ── */
.posts { display: flex; flex-direction: column; }

.post {
  display: grid;
  grid-template-columns: 160px 1fr;
  border: 1px solid var(--border);
  border-bottom: none;
  background: var(--surface);
}
.post:last-child { border-bottom: 1px solid var(--border); }

.post-author {
  padding: 1rem;
  background: rgba(0,0,0,0.3);
  border-right: 1px solid var(--border);
  font-size: 0.82rem;
}
.author-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: var(--accent);
  word-break: break-word;
}
.author-joined,
.author-posts { color: var(--text-muted); margin-top: 0.2rem; font-size: 0.8rem; }

.post-body { padding: 1rem; min-width: 0; }

.post-meta {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}
.post-subject { font-weight: 700; color: var(--text); }
.post-link { margin-left: auto; color: #555; font-size: 0.85rem; }
.post-link:hover { color: var(--accent); }

.post-content {
  font-size: 0.95rem;
  line-height: 1.7;
  word-break: break-word;
  overflow-wrap: break-word;
  color: var(--text);
}
.post-content blockquote {
  border-left: 3px solid var(--accent);
  margin: 0.75rem 0;
  padding: 0.5rem 0.75rem;
  background: rgba(3, 255, 235, 0.05);
  font-size: 0.9em;
  color: var(--text-muted);
}
.post-content blockquote cite {
  display: block;
  font-weight: 700;
  font-style: normal;
  margin-bottom: 0.25rem;
  font-size: 0.82em;
  color: var(--accent);
}
.post-content pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  overflow-x: auto;
  margin: 0.75rem 0;
}
.post-content code {
  font-family: 'Courier New', monospace;
  font-size: 0.88em;
  color: var(--accent);
}
.post-content img { max-width: 100%; height: auto; }

/* ── Pagination ── */
.pagination {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  flex-wrap: wrap;
  margin: 1.25rem 0;
  font-size: 0.85rem;
}
.pagination a {
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
}
.pagination a:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
.pagination .current-page {
  padding: 0.3rem 0.65rem;
  background: var(--accent);
  color: #000;
  font-weight: 700;
}
.top-pagination { margin-bottom: 1.25rem; }

.back-link { margin-top: 1.5rem; font-size: 0.9rem; }

/* ── Footer ── */
.site-footer {
  background: var(--header-bg);
  border-top: 1px solid var(--border);
  color: #555;
  padding: 1.25rem 0;
  font-size: 0.8rem;
  margin-top: 2rem;
  text-align: center;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .post { grid-template-columns: 1fr; }
  .post-author { border-right: none; border-bottom: 1px solid var(--border); }
  .num-col, .date-col { display: none; }
  .site-header .container { flex-direction: column; gap: 0.4rem; }
}