/* ===================================================================
   OCnians Community Forum — Reddit-style, on brand (green + gold).
   Fonts: Syne (headings) · Space Grotesk (body).
   =================================================================== */

.ocf-wrap {
  background: radial-gradient(120% 90% at 70% -10%, #173527 0%, #0e2017 46%, #081109 100%);
  color: #f3efe2;
  min-height: 100vh;
  font-family: "Space Grotesk", system-ui, sans-serif;
}
.ocf-container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px 72px;
  box-sizing: border-box;
}
.ocf-container--single {
  max-width: 820px;
}

/* ── hero ── */
.ocf-hero {
  padding: 40px 0 22px;
}
.ocf-eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #edab2e;
  margin-bottom: 12px;
}
.ocf-hero__h1 {
  font-family: "Syne", sans-serif;
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 900;
  line-height: 1.03;
  color: #f3efe2;
  margin: 0 0 10px;
}
.ocf-hero__sub {
  font-size: 15px;
  color: #7a9e8a;
  line-height: 1.6;
  max-width: 620px;
  margin: 0;
}

/* ── toolbar ── */
.ocf-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 18px 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ocf-sorts {
  display: flex;
  gap: 6px;
}
.ocf-sort {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.ocf-sort:hover { color: #f3efe2; background: rgba(255, 255, 255, 0.09); }
.ocf-sort.is-on {
  color: #1a1206;
  background: linear-gradient(135deg, #edab2e, #e8821e);
  border-color: transparent;
}

.ocf-newbtn,
.ocf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: "Syne", sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  color: #1a1206;
  background: linear-gradient(135deg, #edab2e, #e8821e);
  transition: transform 0.1s, opacity 0.15s;
}
.ocf-newbtn:hover,
.ocf-btn:hover { transform: translateY(-1px); }
.ocf-btn:disabled { opacity: 0.55; cursor: default; transform: none; }
.ocf-btn--sm { padding: 7px 14px; font-size: 12.5px; }

/* ── layout ── */
.ocf-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}
.ocf-main { min-width: 0; display: flex; flex-direction: column; gap: 12px; }

/* ── thread card ── */
.ocf-card {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  transition: border-color 0.15s, background 0.15s;
}
.ocf-card:hover {
  border-color: rgba(237, 171, 46, 0.28);
  background: rgba(255, 255, 255, 0.055);
}
.ocf-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.ocf-card__title {
  font-family: "Syne", sans-serif;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  color: #f3efe2;
  text-decoration: none;
}
.ocf-card__title:hover { color: #edc97a; }
.ocf-card__excerpt {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ocf-card__meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.ocf-card__by { font-weight: 700; color: rgba(255, 255, 255, 0.6); }
.ocf-card__dot { opacity: 0.4; }
.ocf-card__cc { color: rgba(255, 255, 255, 0.5); text-decoration: none; }
.ocf-card__cc:hover { color: #edc97a; }

/* ── vote box ── */
.ocf-vote {
  flex: none;
  width: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  user-select: none;
}
.ocf-vote.is-busy { opacity: 0.5; pointer-events: none; }
.ocf-vote__btn {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  line-height: 1;
  padding: 3px;
  border-radius: 6px;
  transition: color 0.12s, background 0.12s, transform 0.1s;
}
.ocf-vote__btn:hover { background: rgba(255, 255, 255, 0.08); color: #f3efe2; }
.ocf-vote__up.is-on { color: #edab2e; transform: translateY(-1px); }
.ocf-vote__down.is-on { color: #6ea8ff; transform: translateY(1px); }
.ocf-vote__score {
  font-size: 13px;
  font-weight: 800;
  color: #f3efe2;
  font-variant-numeric: tabular-nums;
}
.ocf-vote--sm { width: 30px; }
.ocf-vote--sm .ocf-vote__btn { font-size: 11px; padding: 2px; }
.ocf-vote--sm .ocf-vote__score { font-size: 11.5px; }

/* ── category badge ── */
.ocf-badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  color: #edc97a;
  background: rgba(237, 171, 46, 0.12);
  border: 1px solid rgba(237, 171, 46, 0.25);
  padding: 2px 9px;
  border-radius: 999px;
  text-decoration: none;
}
.ocf-badge:hover { background: rgba(237, 171, 46, 0.2); }

/* ── sidebar ── */
.ocf-side__card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 16px 10px;
  position: sticky;
  top: 20px;
}
.ocf-side__title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0 10px;
}
.ocf-catlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ocf-catlist a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.ocf-catlist a:hover { background: rgba(255, 255, 255, 0.07); color: #f3efe2; }
.ocf-catlist a.is-on { background: rgba(237, 171, 46, 0.14); color: #edc97a; }
.ocf-catlist__n { font-size: 11px; color: rgba(255, 255, 255, 0.35); font-variant-numeric: tabular-nums; }

/* ── empty / pager ── */
.ocf-empty {
  padding: 40px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 14px;
}
.ocf-pager { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 18px; }
.ocf-pager .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.ocf-pager .page-numbers.current { color: #1a1206; background: #edab2e; border-color: transparent; }
.ocf-pager a.page-numbers:hover { color: #f3efe2; background: rgba(255, 255, 255, 0.1); }

/* ── new-post modal ── */
.ocf-modal { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.ocf-modal[hidden] { display: none; }
.ocf-modal__backdrop { position: absolute; inset: 0; background: rgba(4, 8, 6, 0.72); backdrop-filter: blur(4px); }
.ocf-modal__panel {
  position: relative;
  width: 100%;
  max-width: 540px;
  background: #10241a;
  border: 1px solid rgba(237, 171, 46, 0.2);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.ocf-modal__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: "Syne", sans-serif;
  font-size: 16px;
  color: #f3efe2;
}
.ocf-modal__x { background: none; border: none; color: rgba(255, 255, 255, 0.5); font-size: 16px; cursor: pointer; }
.ocf-modal__x:hover { color: #f3efe2; }

.ocf-form { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.ocf-field { display: flex; flex-direction: column; gap: 6px; }
.ocf-field > span { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(237, 171, 46, 0.7); }
.ocf-field input,
.ocf-field select,
.ocf-field textarea,
.ocf-reply-form textarea {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  padding: 11px 13px;
  color: #f3efe2;
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  resize: vertical;
}
.ocf-field input:focus,
.ocf-field select:focus,
.ocf-field textarea:focus,
.ocf-reply-form textarea:focus {
  outline: none;
  border-color: rgba(237, 171, 46, 0.55);
  box-shadow: 0 0 0 3px rgba(237, 171, 46, 0.12);
}
.ocf-field select option { color: #111; }
.ocf-form__foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.ocf-form__msg,
.ocf-reply-form__msg { flex: 1; font-size: 12.5px; color: #e0a0a0; }

/* ── single thread ── */
.ocf-back { display: inline-block; margin: 26px 0 14px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.5); text-decoration: none; }
.ocf-back:hover { color: #edc97a; }
.ocf-post {
  display: flex;
  gap: 14px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}
.ocf-post__body { flex: 1; min-width: 0; }
.ocf-post__title { font-family: "Syne", sans-serif; font-size: clamp(22px, 3.4vw, 30px); font-weight: 900; line-height: 1.15; color: #f3efe2; margin: 8px 0 8px; }
.ocf-post__meta { font-size: 12.5px; color: rgba(255, 255, 255, 0.45); margin-bottom: 12px; }
.ocf-post__by { font-weight: 700; color: rgba(255, 255, 255, 0.65); }
.ocf-post__content { font-size: 15px; line-height: 1.65; color: #dbe9df; }
.ocf-post__content p { margin: 0 0 1em; }
.ocf-post__content a { color: #edc97a; }

/* ── replies ── */
.ocf-replies { margin-top: 26px; }
.ocf-replies__hd { font-family: "Syne", sans-serif; font-size: 16px; font-weight: 800; color: #f3efe2; margin: 0 0 14px; }
.ocf-loginnote { font-size: 14px; }
.ocf-loginnote a { color: #edc97a; }

.ocf-reply-form { display: flex; flex-direction: column; gap: 8px; margin: 0 0 18px; }
.ocf-reply-form--root { margin-bottom: 24px; }
.ocf-reply-form .ocf-reply-form__foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.ocf-c .ocf-reply-form { margin-top: 10px; }

.ocf-comments { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ocf-comments--root { gap: 18px; }
.ocf-comments .ocf-comments {
  margin-top: 12px;
  padding-left: 14px;
  border-left: 2px solid rgba(255, 255, 255, 0.08);
}
.ocf-c__row { display: flex; gap: 10px; }
.ocf-c__main { flex: 1; min-width: 0; }
.ocf-c__meta { display: flex; align-items: center; gap: 7px; margin-bottom: 3px; }
.ocf-c__avatar { width: 22px; height: 22px; border-radius: 50%; }
.ocf-c__author { font-size: 12.5px; font-weight: 700; color: #d4e8c8; }
.ocf-c__dot { color: rgba(255, 255, 255, 0.3); }
.ocf-c__when { font-size: 11.5px; color: rgba(255, 255, 255, 0.4); }
.ocf-c__body { font-size: 14px; line-height: 1.55; color: #cfe0d5; }
.ocf-c__body p { margin: 0 0 0.6em; }
.ocf-c__actions { margin-top: 4px; }
.ocf-c__reply-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 0;
}
.ocf-c__reply-btn:hover { color: #edc97a; }

/* ── responsive ── */
@media (max-width: 820px) {
  .ocf-layout { grid-template-columns: 1fr; }
  .ocf-side { order: -1; }
  .ocf-side__card { position: static; }
}
@media (max-width: 560px) {
  .ocf-container { padding: 0 14px 56px; }
  .ocf-toolbar { gap: 10px; }
  .ocf-newbtn { padding: 9px 16px; }
}

/* ── Pack A: VIP badge · user links · profile ── */
.ocf-vip {
  display: inline-block;
  margin-left: 6px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #1a1206;
  background: linear-gradient(135deg, #edab2e, #e8821e);
  padding: 1px 6px;
  border-radius: 999px;
  vertical-align: middle;
}
.ocf-user { color: inherit; text-decoration: none; font-weight: 700; }
.ocf-user:hover { color: #edc97a; text-decoration: underline; }

.ocf-profile {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 22px;
  margin: 4px 0 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}
.ocf-profile__avatar { width: 72px; height: 72px; border-radius: 50%; flex: none; }
.ocf-profile__name {
  font-family: "Syne", sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: #f3efe2;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.ocf-profile__stats { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: rgba(255, 255, 255, 0.5); }
.ocf-profile__stats strong { color: #edc97a; font-family: "Syne", sans-serif; }

.ocf-profile__comments { display: flex; flex-direction: column; gap: 8px; }
.ocf-pcomment {
  display: block;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  text-decoration: none;
}
.ocf-pcomment:hover { border-color: rgba(237, 171, 46, 0.25); }
.ocf-pcomment__on { display: block; font-size: 12px; font-weight: 700; color: #edc97a; margin-bottom: 3px; }
.ocf-pcomment__body { display: block; font-size: 13px; color: rgba(255, 255, 255, 0.55); line-height: 1.4; }

/* ── Pack B: notifications bell ── */
.ocf-bell { position: fixed; right: 22px; bottom: 22px; z-index: 8000; }
.ocf-bell__btn {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(237, 171, 46, 0.4);
  background: #10241a;
  color: #f3efe2;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: background 0.15s;
}
.ocf-bell__btn:hover { background: #163021; }
.ocf-bell__count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e8481e;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #10241a;
  box-sizing: border-box;
  font-family: "Space Grotesk", sans-serif;
}
.ocf-bell__panel {
  position: absolute;
  right: 0;
  bottom: 62px;
  width: 320px;
  max-width: 84vw;
  max-height: 60vh;
  overflow-y: auto;
  background: #10241a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}
.ocf-bell__hd {
  padding: 12px 14px;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: #f3efe2;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  background: #10241a;
}
.ocf-bell__list { padding: 4px; }
.ocf-notif { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: #cfe0d5; }
.ocf-notif:hover { background: rgba(255, 255, 255, 0.06); }
.ocf-notif.is-unread { background: rgba(237, 171, 46, 0.08); }
.ocf-notif__t { display: block; font-size: 13px; }
.ocf-notif__t strong { color: #f3efe2; }
.ocf-notif__x { display: block; font-size: 12px; color: rgba(255, 255, 255, 0.5); margin: 2px 0; line-height: 1.3; }
.ocf-notif__w { display: block; font-size: 11px; color: rgba(255, 255, 255, 0.35); }
.ocf-notif-empty { padding: 20px 14px; text-align: center; font-size: 13px; color: rgba(255, 255, 255, 0.4); }

/* ── Pack D: image / link posts + auto-linked URLs ── */
.ocf-post__image { display: block; margin: 14px 0 4px; }
.ocf-post__image img { max-width: 100%; max-height: 520px; border-radius: 12px; display: block; }
.ocf-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 2px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(237, 171, 46, 0.25);
  border-radius: 10px;
  color: #edc97a;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  word-break: break-all;
}
.ocf-link:hover { background: rgba(237, 171, 46, 0.12); }
.ocf-card__thumb { display: block; margin: 6px 0 2px; }
.ocf-card__thumb img { max-height: 160px; max-width: 100%; border-radius: 10px; display: block; }
.ocf-post__content a,
.ocf-c__body a { color: #edc97a; word-break: break-word; }
