/* reColony forum and staff panel. Same language as site.css: charcoal, thin
   lines, Jost headings, boxy Flash buttons; the game's player colours mark roles. */

/* --- forum index / lists ---------------------------------------------------- */
.forum-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
.forum-side { display: flex; flex-direction: column; gap: 22px; }
.fsearch { max-width: none; }
.fsort { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Category colours: grey, cyan, blue, green, amber, orange, red, pink, purple (game player colours). */
.cc-grey { --cc: #8c939a; } .cc-cyan { --cc: #4fd3de; } .cc-blue { --cc: #2f7fe6; } .cc-green { --cc: #43b649; }
.cc-amber { --cc: #e8b931; } .cc-orange { --cc: #ef7d22; } .cc-red { --cc: #d8392f; } .cc-pink { --cc: #e48ed5; } .cc-purple { --cc: #9a7fe8; }
.cc-none { --cc: #5a6168; }
.fpill {
  display: inline-flex; align-items: center; flex: none; padding: 3px 9px; border-radius: 999px;
  font: 500 12px/1.2 var(--font); color: #0d0d0d; background: var(--cc, #8c939a); border: 1px solid rgba(0, 0, 0, .5);
}
.fpill:hover { color: #000; text-decoration: none; filter: brightness(1.12); }
.cdot { width: 8px; height: 8px; flex: none; background: var(--cc, #8c939a); display: inline-block; }
.fi { width: 13px; height: 13px; flex: none; vertical-align: -2px; }

/* Hot / New / Top / Latest pills and the "+ Post" button. */
.ftoolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.fpill-tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.fpill-tab {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px;
  font: 400 14px/1 var(--font-head); color: var(--muted); background: linear-gradient(#2b2f34, #1b1e21); border: 1px solid #484e55;
}
.fpill-tab:hover { color: #fff; text-decoration: none; border-color: #79828b; }
.fpill-tab[aria-current="page"] { color: #0d0d0d; background: linear-gradient(#e9fdff, #9fdfe6); border-color: #1e3236; }
.fpill-tabs-sm .fpill-tab { padding: 4px 10px; font-size: 13px; }
.fpost-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 16px; border-radius: 3px;
  font: 500 15px/1 var(--font); color: #0d0d0d; border: 1px solid #1f4f22;
  background: linear-gradient(#a6efaa, #43b649 60%, #3aa140); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45);
}
.fpost-btn span { font-size: 19px; font-weight: 400; margin-top: -2px; }
.fpost-btn:hover { color: #000; text-decoration: none; filter: brightness(1.08); }

/* Thread rows: pill + title / Posted by / votes and replies. */
.flist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.frow { padding: 11px 12px 10px; border-bottom: 1px solid var(--line); }
.frow:hover { background: rgba(255, 255, 255, .02); }
.frow.is-pinned { box-shadow: inset 2px 0 0 transparent; border-left: 2px dashed var(--gold); padding-left: 10px; background: rgba(232, 195, 106, .03); }
.frow-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.frow-title { font: 400 17px/1.3 var(--font-head); margin: 0; display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.frow-title a { color: #eef1f3; overflow-wrap: anywhere; }
.frow-title a:hover { color: var(--cyan); }
.is-unread .frow-title a { color: #fff; font-weight: 500; }
.frow-by { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 5px 0 0; font-size: 13px; color: var(--faint); }
.frow-by .user-link { color: var(--link); font-weight: 400; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.frow-by time { margin-left: 6px; }
.fpinned { display: inline-flex; color: var(--gold); margin-left: 4px; }
.frow-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: 5px 0 0; font-size: 13px; color: var(--muted); }
.frow-stats > span { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.frow-last { font-size: 12px; color: var(--faint); }
.frow-last:hover { color: var(--muted); }
.frow-meta { font-size: 12px; color: var(--faint); margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.new-dot { width: 8px; height: 8px; background: var(--cyan); display: inline-block; flex: none; box-shadow: 0 0 6px rgba(196, 247, 251, .5); }
.fcat-chip { font-size: 11px; padding: 2px 6px; border: 1px solid var(--line-2); color: var(--muted); background: var(--sunk); }
.fcat-chip:hover { color: var(--text); text-decoration: none; border-color: #79828b; }
.fmore { text-align: center; margin: 14px 0 6px; }
.fmore a { font: 400 15px var(--font-head); color: var(--link); }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.fchips .fpill { opacity: .55; }
.fchips .fpill.is-on, .fchips .fpill:hover { opacity: 1; }
.fcat-desc { margin: -4px 0 10px; }

/* "recent on forum" (home page) */
.frecent ul { list-style: none; margin: 0; padding: 0; }
.frecent li { display: flex; align-items: center; gap: 7px; padding: 5px 0; border-top: 1px solid rgba(255, 255, 255, .06); font-size: 14px; min-width: 0; }
.frecent li:first-child { border-top: 0; }
.frecent li > a { flex: 1 1 0; width: 0; min-width: 0; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frecent li > a:hover { color: var(--cyan); }
.frecent .fpinned { margin: 0; }
.frecent .fpinned .fi { width: 11px; height: 11px; }
.frecent-n { display: inline-flex; gap: 9px; flex: none; font-size: 12px; color: var(--faint); }
.frecent-n span { display: inline-flex; align-items: center; gap: 3px; }
.frecent-n .fi { width: 10px; height: 10px; }

/* Inside the play page's forum overlay (embed layout). */
body.embed { min-height: 0; background: #111315; }
.fembed-bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 8px 16px; background: #111315; border-bottom: 1px solid var(--line); box-shadow: 0 4px 10px rgba(0, 0, 0, .35); }
.fembed-home { font: 400 14px var(--font-head); color: var(--muted); white-space: nowrap; }
.fembed-search { flex: 1 1 120px; max-width: 300px; min-width: 0; margin-left: auto; }
.fembed-search input { min-height: 30px !important; padding: 4px 10px !important; font-size: 13px; }
.fembed-who { font-size: 13px; color: var(--faint); white-space: nowrap; }
.fembed-wrap { padding: 14px 16px 20px; }
body.embed .page-head-in { padding-top: 14px; padding-bottom: 12px; }
body.embed .page-head h1 { font-size: 1.6rem; }
body.embed .wrap { padding-left: 16px; padding-right: 16px; }
body.embed .section { padding-top: 16px; padding-bottom: 20px; }
body.embed .narrow { max-width: none; }

.fcats { list-style: none; margin: 0; padding: 0; }
.fcat { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 10px 0; border-top: 1px solid var(--line); }
.fcat:first-child { border-top: 0; padding-top: 0; }
.fcat h3 { font: 400 16px var(--font-head); margin: 0 0 2px; display: flex; align-items: center; gap: 8px; }
.fcat h3 a { color: var(--text); }
.fcat h3 a:hover { color: var(--cyan); }
.fcat-main p { font-size: 13px; color: var(--muted); margin: 0; }
.fcat-stats { font-size: 12px; color: var(--faint); display: flex; gap: 10px; }
.fcat-last { font-size: 12px; display: flex; flex-direction: column; min-width: 0; }
.fcat-last a { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.fpager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 18px 0; }
.pg-list { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.pg { min-width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; border: 1px solid var(--line-2); color: var(--muted); font: 400 14px var(--font-head); }
.pg:hover { color: #fff; border-color: #79828b; text-decoration: none; }
.pg-cur { color: #0d0d0d; background: linear-gradient(#bdbdbd, #7b7b7b 20%, #737373 26%, #b4b4b4); border-color: #1e1e1e; }
.pg-gap { color: var(--faint); padding: 0 2px; }

/* --- thread ------------------------------------------------------------------- */
.fthread-head { margin-bottom: 18px; }
.fthread-head h1 { margin: 0 0 6px; overflow-wrap: anywhere; }
.fthread-head .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; }
.fmodbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 10px; border: 1px dashed #4b4170; background: rgba(140, 120, 220, .05); }
.fmodbar-label { font: 400 12px var(--font-head); color: #c9b6ff; text-transform: uppercase; letter-spacing: .08em; margin-right: 4px; }
.fmove { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.fmove select { min-height: 30px; padding: 2px 8px; width: auto; }

.fpost { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); scroll-margin-top: 12px; }
.fpost:target { background: rgba(196, 247, 251, .04); box-shadow: inset 2px 0 0 var(--cyan); }
.fpost#t1, .fthread > .fpost:first-of-type { border-top: 1px solid var(--line-2); }
.fpost.is-deleted { opacity: .65; }
.fpost.is-deleted > .muted { grid-column: 1 / -1; margin: 0; font-size: 14px; font-style: italic; }
.fauthor { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.fauthor .avatar { --size: 44px; }
.fauthor-id { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; font-size: 14px; }
.fauthor-id .user-link { overflow-wrap: anywhere; }
.fauthor-count { font-size: 12px; color: var(--faint); }
.fpost-meta { font-size: 12px; color: var(--faint); margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fedited { font-style: italic; }
.fquote-ref { font-size: 12px; color: var(--muted); margin: 0 0 6px; }
.fprose { font-size: 15px; }
.fprose > :last-child { margin-bottom: 0; }
.fprose blockquote { background: rgba(255, 255, 255, .025); }
.fpost-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.ftools { display: flex; flex-wrap: wrap; gap: 2px; }
.tbtn { background: none; border: 1px solid transparent; color: var(--faint); font: 400 13px var(--font); padding: 4px 8px; cursor: pointer; }
.tbtn:hover { color: var(--text); border-color: var(--line-2); text-decoration: none; }
.tbtn-danger:hover { color: var(--danger); border-color: #6b302a; }
.fedit { margin-top: 12px; }

.fvote { display: inline-flex; align-items: center; border: 1px solid var(--line-2); background: var(--sunk); }
.vbtn { width: 30px; height: 28px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; color: var(--faint); cursor: pointer; }
.vbtn svg { width: 11px; height: 8px; }
.vbtn:hover:not(:disabled) { color: var(--text); }
.vbtn:disabled { cursor: default; opacity: .45; }
.vup.on { color: var(--p-green); }
.vdown.on { color: var(--p-red); }
.vscore { min-width: 26px; text-align: center; font: 400 14px var(--font-head); color: var(--text); font-variant-numeric: tabular-nums; }

.fbadge { display: inline-flex; align-items: center; font: 500 10px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; padding: 3px 5px; border: 1px solid; }
.badge-owner { color: var(--gold); border-color: #6a5a32; background: rgba(232, 195, 106, .08); }
.badge-admin { color: #ff9a8f; border-color: #6b302a; background: rgba(216, 57, 47, .08); }
.badge-mod { color: #9fc6ff; border-color: #2c4b78; background: rgba(47, 127, 230, .08); }

.freplies-head { margin-top: 26px; }
.funread-mark { display: flex; align-items: center; gap: 10px; margin: 6px 0; font: 400 12px var(--font-head); color: var(--cyan); text-transform: uppercase; letter-spacing: .08em; }
.funread-mark::before, .funread-mark::after { content: ""; flex: 1; height: 1px; background: rgba(196, 247, 251, .35); }
.freply { margin-top: 28px; }
.freply-note { margin-top: 24px; }
.fquoting { font-size: 12px; color: var(--muted); margin: 0 0 6px; }
.fpreview { margin: 12px 0; padding: 12px 14px; border: 1px dashed var(--line-2); background: var(--sunk); }

/* --- search / profile lists ---------------------------------------------------- */
.fresults { list-style: none; margin: 18px 0 0; padding: 0; }
.fresult { padding: 12px 0; border-top: 1px solid var(--line); }
.fresult:first-child { border-top: 0; }
.fresult h3 { font: 400 16px var(--font-head); margin: 0 0 4px; }
.fresult-snip { font-size: 14px; color: #c3c8cc; margin: 0 0 6px; overflow-wrap: anywhere; }
.fresult-snip mark { background: rgba(196, 247, 251, .18); color: #fff; padding: 0 1px; }

@media (max-width: 900px) {
  .forum-cols { grid-template-columns: 1fr; }
  .forum-side { order: -1; }
  .forum-side .block { display: none; }
}
@media (max-width: 640px) {
  .frow { padding: 10px 6px; }
  .frow-last { display: none; }
  .fembed-who { display: none; }
  .fpost { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .fauthor { flex-direction: row; align-items: center; }
  .fauthor .avatar { --size: 32px; }
  .fauthor-id { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
  .page-head-extra { flex-wrap: wrap; }
}

/* --- staff panel ---------------------------------------------------------------- */
.admin-shell { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 30px; align-items: start; }
.anav { display: flex; flex-direction: column; padding: 12px 0; position: sticky; top: 16px; }
.anav-who { display: flex; align-items: center; gap: 10px; padding: 0 14px 12px; margin: 0 0 6px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 14px; }
.anav-who > span { display: flex; flex-direction: column; min-width: 0; }
.anav-who strong { overflow: hidden; text-overflow: ellipsis; }
.anav-link { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; font: 400 15px var(--font-head); color: var(--muted); border-left: 2px solid transparent; }
.anav-link:hover { color: #fff; text-decoration: none; background: rgba(255, 255, 255, .04); }
.anav-link[aria-current="page"] { color: var(--cyan); border-left-color: var(--cyan); background: rgba(196, 247, 251, .05); }
.anav-count { font: 600 11px/17px var(--font); min-width: 18px; padding: 0 5px; text-align: center; color: #0d0d0d; background: var(--gold); }
.admin-main { min-width: 0; gap: 30px; }
.admin-title { font-size: 1.9rem; margin: 0; }
.admin-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; align-items: start; }
.nowrap { white-space: nowrap; }

.astats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0; border: 1px solid var(--line); background: var(--bg-2); }
.astat { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--text); margin: 0 -1px -1px 0; }
.astat:hover { text-decoration: none; background: rgba(255, 255, 255, .03); }
.astat-n { font: 300 28px/1.1 var(--font-head); color: #eef1f3; font-variant-numeric: tabular-nums; }
.astat-l { font-size: 12px; color: var(--faint); }
.astat.warn .astat-n { color: var(--gold); }

.areports { list-style: none; margin: 16px 0 0; padding: 0; }
.areport { padding: 16px 0; border-top: 1px solid var(--line); }
.areport:first-child { border-top: 0; }
.areport-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 8px; font: 400 16px var(--font-head); }
.areport-body { margin: 0 0 8px; padding: 8px 12px; border-left: 2px solid var(--line-2); background: var(--sunk); font-size: 14px; color: #c3c8cc; white-space: pre-wrap; overflow-wrap: anywhere; }
.areport-body footer { font-size: 12px; color: var(--faint); margin-top: 6px; white-space: normal; }

.acats { list-style: none; margin: 0 0 14px; padding: 0; }
.acat { padding: 10px 0; border-top: 1px solid var(--line); }
.acat:first-child { border-top: 0; }
.acat-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.acat-row p { margin: 2px 0 0; }
.acat-row .actions { display: flex; gap: 4px; flex: none; }
.acat-form { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); background: var(--sunk); max-width: 640px; }
.acat-new summary { list-style: none; display: inline-flex; cursor: pointer; }
.acat-new summary::-webkit-details-marker { display: none; }

.alog-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.alog-filter select, .alog-filter input { width: auto; min-width: 160px; }
.alog-act { font-size: 13px; }
.alog-act::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; background: var(--p-blue); }
.alog-game::before { background: var(--p-red); }
.alog-site::before { background: var(--gold); }

.aplayer { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; padding: 18px 20px; }
.aplayer-name { margin: 0 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 1.6rem; }
.aplayer .profile-tags { margin-bottom: 10px; }
.aplayer .profile-tags a.tag { color: var(--link); }

@media (max-width: 820px) {
  .admin-shell { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .anav { position: static; flex-direction: row; overflow-x: auto; padding: 0; scrollbar-width: none; }
  .anav-who { display: none; }
  .anav-link { flex: none; border-left: 0; border-bottom: 2px solid transparent; padding: 10px 12px; gap: 6px; }
  .anav-link[aria-current="page"] { border-bottom-color: var(--cyan); }
  .acat-row { flex-direction: column; }
}

/* The Forum link makes the header nav one item longer: tighten it on phones so it still fits. */
@media (max-width: 480px) {
  .main-nav ul { gap: 13px; }
  .main-nav a { font-size: 14px; }
}
