/* ── Marty theme for Gigataba ──────────────────────────────────────────── */
/* Ported from marty.css — dark blue-accent terminal aesthetic             */

:root {
  /* ── UI shell variables (used by admin, homepage, settings panel) ── */
  --ui-bg:           #101013;
  --ui-bg-alt:       #1a1a1f;
  --ui-text:         #eeeeee;
  --ui-text-muted:   #888888;
  --ui-accent:       #0099ff;
  --ui-accent2:      #0077cc;
  --ui-link:         #0099ff;
  --ui-link-visited: #0099ff;
  --ui-border:       #0099ff;
  --ui-border-alt:   #005599;
  --ui-panel-bg:     #1f1f1f;
  --ui-reply-bg:     #2c2c3c;
  --ui-input-bg:     #000000;
  --ui-input-border: #a9a9a9;

  /* ── Extended UI variables ── */
  --ui-panel-bg-alt: #1a1a22;
  --ui-row1:         #1f1f1f;
  --ui-row2:         #161619;
  --ui-tab-bg:       #1a1a22;
  --ui-tab-hover:    #222230;
  --ui-tab-active:   #1f1f1f;
  --ui-header-bg:    #0099ff;
  --ui-header-fg:    #ffffff;
  --ui-badge-bg:     #003355;
  --ui-badge-fg:     #0099ff;
  --ui-badge-border: #005599;
}

.poll-widget {
    background-color: #1a1a1f !important;
}

textarea {
  background-color: #1a1a1f;
  color: #eeeeee;
}

input {
  background-color: #1a1a1f;
  color: #eeeeee;
}

#theme-select {
  color: #eeeeee;
}

.post-no-link {
  color: #ff8080 !important;
}

#drop-zone {
  background-color: #1a1a1f !important;
}

.post-toggle {
  color: #0044ff !important;
}

/* ── Base ── */
body {
  font-family: Hack, monospace, sans-serif;
  font-size: 9pt;
  background: #101013;
  color: #eeeeee;
}

a {
  background: inherit;
  color: #0099ff;
  text-decoration: none;
  font-weight: bolder;
  font-size: 12px;
}
a:visited {
  background: inherit;
  color: #0099ff;
  text-decoration: none;
  font-weight: bolder;
}
a:hover {
  color: #3333ff;
  background: inherit;
  text-decoration: underline;
}

/* ── Top bar ── */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border-bottom: 2px solid #0099ff;
  padding-bottom: 2px;
  font-size: 10px;
  background: #1a1a1f;
  box-sizing: border-box;
}
.menubar {
  text-align: left;
  font-size: 10px;
  flex: 1;
}
.menubar a {
  color: #0099ff;
  text-decoration: none;
  font-weight: bold;
}
.menubar a:hover { color: #3333ff; }
.menubar-empty { color: #555; font-style: italic; }
.adminbar {
  text-align: right;
  font-size: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.spoiler-wrap a {
  pointer-events: none;
}
.spoiler-wrap.revealed a {
  pointer-events: auto;
}
.spoiler-wrap::after {
  content: "SPOILER";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1px;
  padding: 3px 7px;
  border-radius: 3px;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.spoiler-wrap.revealed::after {
  opacity: 0;
}


.spoiler-wrap {
  position: relative;
  display: inline-block; /* or block, depending on your layout */
}

/* ── Logo / banner ── */
.logo {
  clear: both;
  text-align: center;
  background: inherit;
  font-size: 24pt;
  color: #ff0000;
  width: 100%;
}
.board-banner {
  margin: 0 auto;
  display: block;
  width: 300px;
  height: 100px;
}
.board-banner-text {
  font-size: 16pt;
  color: #33ffff;
  text-align: center;
  padding: 4px 0 2px;
}
.board-banner-text em { font-size: 10pt; color: #888; }

/* ── Thread / post layout ── */
.theader {
  background: #0099ff;
  color: #ffffff;
  width: 100%;
}
.postarea  { background: inherit; }
.rules     { font-size: 10px; }

.postblock {
  background: #003355;
  color: #0099ff;
  font-weight: 800;
}

/* ── Post text classes ── */
.filetitle {
  background: inherit;
  font-size: 18px;
  color: #33ddff;
  font-weight: 800;
}
.postername {
  background: inherit;
  font-size: 16px;
  color: #0044ff;
  font-weight: 800;
}
.oldpost {
  background: inherit;
  font-size: 18px;
  color: #33ddff;
  font-weight: 800;
}
.omittedposts {
  background: inherit;
  font-size: 18px;
  color: #eeeeee;
  font-weight: 800;
}
.replytitle {
  background: inherit;
  font-size: 18px;
  color: #33ddff;
  font-weight: 800;
}
.commentpostername {
  background: inherit;
  font-size: 16px;
  color: #0044ff;
  font-weight: 800;
}
.thumbnailmsg {
  background: inherit;
  font-size: 9px;
  color: #eeeeee;
}
.filesize { font-size: 16px; text-decoration: none; }

/* ── Reply box ── */
.reply {
  background: #2c2c3c;
  color: #eeeeee;
}
.doubledash { vertical-align: top; }

/* ── Post body ── */
.post-body { margin-top: 2px; }
.post-reply-content { overflow: hidden; display: flow-root; }
.post-body blockquote { margin: 4px 0 4px 4px; padding: 0; }

/* ── Greentext / special text ── */
.unkfunc { color: #55ff33; }
.bold    { font-weight: 700; color: #ffffff; }
.em      { color: #ff6700; }
.strikethrough { color: #e6e600; }
.spoiler { cursor: help; }

/* ── Post refs ── */
a.post-ref { color: #55ff33; text-decoration: none; }
a.post-ref:hover { text-decoration: underline; color: #0099ff; }

a.post-no-link { color: #0099ff; text-decoration: none; font-weight: bold; }
a.post-no-link:hover { text-decoration: underline; cursor: pointer; }

/* ── Admin / manage tables ── */
.managehead {
  background: #0099ff;
  color: #101013;
  font-size: 14px;
  padding: 0px;
}
.postlists {
  background: #1f1f1f;
  width: 100%;
  padding: 0px;
  color: #eeeeee;
}
.row1 { background: #1a1a2e; font-size: 12px; color: #eeeeee; }
.row2 { background: #1f1f1f; font-size: 12px; color: #eeeeee; }

/* ── Catalog ── */
.catalog-tile {
  padding: 10px;
  margin: 4px;
  height: 240px;
  border: 1px solid #0099ff;
  max-width: 250px;
  background: #1f1f1f;
  color: #eeeeee;
}
.catalog-thumb { width: 80px; height: 80px; }

/* ── Footer ── */
.footer { text-align: center; font-size: 12px; color: #888; }

.passvalid {
  background: #003355;
  text-align: center;
  width: 100%;
  color: #0099ff;
}
.dellist    { background: inherit; text-align: center; }
.delbuttons { background: inherit; text-align: center; padding-bottom: 4px; }

/* Video spoiler: the wrap is a <span> inside the float div; make it block so the label centres */
.spoiler-wrap:has(> a[id^="vp-"]) {
  display: block;
}
