/* ==============================
   GameSense Forum CSS - Skeet Dark Theme
   ============================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

:root {
  --bg: #0d0d0d;
  --bg2: #1a1a1a;
  --bg3: #141414;
  --accent: #95b806;
  --accent2: #a8cc08;
  --txt: #d0d0d0;
  --txt2: #888;
  --lnk: #95b806;
  --brd: #2a2a2a;
  --brd2: #333;
  --font: Verdana, Tahoma, 'Raleway', sans-serif;
  --fs: 12px;
}

html,
body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font);
  font-size: var(--fs);
  line-height: 1.5;
  min-height: 100vh
}

a {
  color: var(--lnk);
  text-decoration: none
}

a:hover {
  color: #b8e010;
  text-decoration: underline
}

#wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 20px
}

/* top gradient bar */
body::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, #3b4cca, #a855f7, #3b82f6, #8b5cf6);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999
}

body {
  padding-top: 3px
}

/* HEADER */
#header {
  padding: 12px 0 6px;
  border-bottom: 1px solid var(--brd)
}

.logo-link {
  font-family: 'Raleway', Verdana, sans-serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -.5px;
  text-decoration: none;
  display: inline-block
}

.logo-game {
  color: #fff
}

.logo-sense {
  color: var(--accent)
}

/* NAV */
#nav-main {
  display: flex;
  align-items: center;
  background: var(--bg3);
  border: 1px solid var(--brd);
  border-top: none;
  padding: 0 8px;
  height: 34px
}

.nav-bell {
  color: var(--accent);
  font-size: 14px;
  margin-right: 10px
}

.nav-main-links a {
  display: inline-block;
  color: var(--txt);
  font-size: 12px;
  padding: 0 8px;
  height: 34px;
  line-height: 34px;
  text-decoration: none;
  border-right: 1px solid var(--brd)
}

.nav-main-links a:first-child {
  border-left: 1px solid var(--brd)
}

.nav-main-links a:hover {
  background: #222;
  color: #fff;
  text-decoration: none
}

.nav-info-bar {
  padding: 4px 0 6px;
  font-size: 12px;
  color: var(--txt2);
  border-bottom: 1px solid var(--brd);
  margin-bottom: 8px
}

.nav-info-bar a {
  color: var(--lnk)
}

/* PAGE TITLE */
.page-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--txt);
  padding: 8px 0 6px;
  border-bottom: 1px solid var(--brd);
  margin-bottom: 6px
}

/* ALERTS */
.alert-error {
  background: #1f0808;
  border: 1px solid #5a1515;
  color: #e07070;
  padding: 7px 12px;
  font-size: 12px;
  margin-bottom: 8px
}

.alert-ok {
  background: #0a1a04;
  border: 1px solid #3a6000;
  color: #95b806;
  padding: 7px 12px;
  font-size: 12px;
  margin-bottom: 8px
}

/* FORUM CATEGORIES */
.cat-header {
  background: #1e1e1e;
  border: 1px solid var(--brd);
  border-bottom: none;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--txt2);
  display: flex;
  align-items: center;
  gap: 8px
}

.cat-header::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 12px;
  background: var(--accent);
  border-radius: 1px
}

.cat-header:not(:first-child) {
  margin-top: 10px
}

.forum-row {
  background: var(--bg2);
  border: 1px solid var(--brd);
  border-top: none;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  gap: 12px;
  transition: background .1s
}

.forum-row:hover {
  background: #1f1f1f
}

.forum-icon {
  width: 30px;
  height: 30px;
  background: var(--bg3);
  border: 1px solid var(--brd2);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 14px;
  flex-shrink: 0
}

.forum-info {
  flex: 1
}

.forum-title-link {
  color: #e0e0e0;
  font-size: 13px;
  font-weight: 600
}

.forum-title-link:hover {
  color: var(--accent);
  text-decoration: none
}

.forum-desc {
  color: var(--txt2);
  font-size: 11px;
  margin-top: 2px
}

.forum-stats {
  text-align: right;
  font-size: 11px;
  color: var(--txt2);
  min-width: 110px
}

.forum-stats .stat-num {
  color: var(--txt);
  font-size: 12px
}

/* THREADS LIST */
.thread-row {
  background: var(--bg2);
  border: 1px solid var(--brd);
  border-top: none;
  display: flex;
  align-items: center;
  padding: 9px 12px;
  gap: 10px;
  transition: background .1s
}

.thread-row:hover {
  background: #1f1f1f
}

.thread-row-icon {
  color: var(--accent);
  font-size: 13px;
  width: 18px;
  flex-shrink: 0;
  text-align: center
}

.thread-main {
  flex: 1;
  min-width: 0
}

.thread-title-link {
  color: #e0e0e0;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block
}

.thread-title-link:hover {
  color: var(--accent);
  text-decoration: none
}

.thread-meta {
  color: var(--txt2);
  font-size: 10px;
  margin-top: 1px
}

.thread-stats {
  text-align: right;
  font-size: 10px;
  color: var(--txt2);
  min-width: 90px;
  flex-shrink: 0
}

.thread-stats b {
  display: block;
  color: var(--txt);
  font-size: 11px
}

/* THREAD VIEW */
.thread-header-box {
  background: var(--bg2);
  border: 1px solid var(--brd);
  padding: 10px 12px;
  margin-bottom: 4px
}

.thread-header-box h1 {
  font-size: 15px;
  color: #e0e0e0;
  font-weight: 600
}

.thread-header-box .meta {
  font-size: 11px;
  color: var(--txt2);
  margin-top: 2px
}

.post-box {
  background: var(--bg2);
  border: 1px solid var(--brd);
  border-top: none;
  display: flex;
  gap: 0
}

.post-box:first-of-type {
  border-top: 1px solid var(--brd)
}

.post-sidebar {
  width: 120px;
  flex-shrink: 0;
  padding: 12px 10px;
  background: #171717;
  border-right: 1px solid var(--brd);
  text-align: center
}

.post-avatar {
  width: 48px;
  height: 48px;
  background: #222;
  border: 1px solid var(--brd2);
  border-radius: 4px;
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--txt2)
}

.post-username {
  font-size: 12px;
  color: #e0e0e0;
  font-weight: 600;
  word-break: break-all
}

.post-userrole {
  font-size: 10px;
  color: var(--txt2);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: 2px
}

.post-admin {
  color: var(--accent)
}

.post-content-area {
  flex: 1;
  padding: 12px 14px;
  min-width: 0
}

.post-timestamp {
  font-size: 10px;
  color: var(--txt2);
  margin-bottom: 8px;
  border-bottom: 1px solid var(--brd);
  padding-bottom: 6px
}

.post-body {
  font-size: 12px;
  color: var(--txt);
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word
}

.code-block {
  background: #0a0a0a;
  border: 1px solid var(--brd2);
  padding: 8px 10px;
  font-family: monospace;
  font-size: 11px;
  color: #b0d060;
  margin: 6px 0;
  white-space: pre-wrap;
  overflow-x: auto
}

/* REPLY FORM */
.reply-section {
  margin-top: 10px
}

.reply-section-header {
  background: #1e1e1e;
  border: 1px solid var(--brd);
  border-bottom: none;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--txt2)
}

.reply-body {
  background: var(--bg2);
  border: 1px solid var(--brd);
  padding: 12px
}

.reply-body textarea {
  width: 100%;
  background: #111;
  border: 1px solid var(--brd2);
  color: var(--txt);
  font-family: var(--font);
  font-size: 12px;
  padding: 8px;
  resize: vertical;
  min-height: 90px;
  outline: none;
  line-height: 1.5
}

.reply-body textarea:focus {
  border-color: var(--accent)
}

/* NEW THREAD / FORM */
.reg-section {
  background: var(--bg2);
  border: 1px solid var(--brd);
  margin-bottom: 6px;
  padding: 8px 10px 10px
}

.reg-section-legend {
  font-size: 11px;
  font-style: italic;
  color: #6a9a20;
  margin-bottom: 6px;
  line-height: 1.3
}

.reg-table {
  border-collapse: collapse;
  width: auto
}

.reg-table.fullwidth {
  width: 100%
}

.reg-table.two-col td {
  padding-right: 12px;
  vertical-align: top
}

.reg-label-top {
  font-size: 12px;
  color: var(--txt);
  padding-bottom: 3px;
  display: block;
  white-space: nowrap
}

.reg-table input[type=text],
.reg-table input[type=password],
.reg-table input[type=email] {
  background: #111;
  border: 1px solid var(--brd2);
  color: var(--txt);
  font-family: var(--font);
  font-size: 12px;
  padding: 4px 6px;
  outline: none;
  width: 100%;
  min-width: 180px;
  box-sizing: border-box
}

.reg-table input:focus {
  border-color: var(--accent)
}

.reg-table.fullwidth input {
  width: 100%
}

.reg-note {
  font-size: 11px;
  color: var(--txt2);
  padding-top: 4px;
  line-height: 1.4
}

.reg-table select {
  background: #111;
  border: 1px solid var(--brd2);
  color: var(--txt);
  font-family: var(--font);
  font-size: 12px;
  padding: 3px 6px;
  outline: none;
  min-width: 200px
}

.reg-table select:focus {
  border-color: var(--accent)
}

.cb-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--txt);
  cursor: pointer
}

.cb-label input[type=checkbox] {
  accent-color: var(--accent);
  width: 13px;
  height: 13px
}

.radio-label {
  font-size: 12px;
  color: var(--txt);
  cursor: pointer;
  line-height: 2
}

.radio-label input[type=radio] {
  accent-color: var(--accent);
  margin-right: 4px
}

.captcha-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1c1c1c;
  border: 1px solid #333;
  padding: 12px 14px;
  width: 240px
}

.captcha-box input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0
}

.captcha-logo {
  margin-left: auto;
  text-align: center;
  font-size: 9px;
  color: #666;
  line-height: 1.3
}

.captcha-icon {
  font-size: 20px;
  color: #4285f4
}

.form-submit-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0 4px
}

.reg-table .reg-label {
  font-size: 12px;
  color: var(--txt);
  padding-right: 12px;
  white-space: nowrap;
  vertical-align: middle;
  padding-bottom: 8px
}

.reg-table .reg-field {
  vertical-align: middle;
  padding-bottom: 8px
}

.reg-table .reg-field input {
  background: #111;
  border: 1px solid var(--brd2);
  color: var(--txt);
  font-family: var(--font);
  font-size: 12px;
  padding: 4px 6px;
  outline: none;
  width: 220px
}

.reg-table .reg-field input:focus {
  border-color: var(--accent)
}

/* BREADCRUMB */
.breadcrumb {
  font-size: 11px;
  color: var(--txt2);
  padding: 4px 0 8px;
  margin-bottom: 2px
}

.breadcrumb a {
  color: var(--lnk)
}

.breadcrumb span {
  color: var(--txt2)
}

/* BUTTONS */
.btn {
  background: var(--accent);
  color: #000;
  border: none;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 16px;
  cursor: pointer;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: background .15s;
  text-decoration: none;
  display: inline-block
}

.btn:hover {
  background: var(--accent2);
  color: #000;
  text-decoration: none
}

.btn-secondary {
  background: #2a2a2a;
  color: var(--txt);
  border: 1px solid var(--brd2);
  font-family: var(--font);
  font-size: 12px;
  padding: 5px 16px;
  cursor: pointer;
  border-radius: 0;
  transition: background .15s;
  text-decoration: none;
  display: inline-block
}

.btn-secondary:hover {
  background: #333;
  color: #fff;
  text-decoration: none
}

.btn-sm {
  background: #2a2a2a;
  color: #ccc;
  border: 1px solid #333;
  padding: 2px 8px;
  font-size: 11px;
  cursor: pointer;
  font-family: var(--font)
}

.btn-sm:hover {
  background: #333
}

/* FOOTER */
#footer {
  margin-top: 16px;
  border-top: 1px solid var(--brd);
  padding: 10px 0 6px;
  text-align: center;
  font-size: 11px;
  color: var(--txt2)
}