/* ============================================================
   Shellbound theme — news.shellbound.xyz
   Brand language matches the launcher (frontend/src/style.css):
   flat dark base, gold accents, ember-red wow-buttons,
   Cinzel wordmark / Arial Black headings / Segoe UI body.
   ============================================================ */

:root {
  --sb-base: #0a0a0a;
  --sb-panel: #0c0c0c;
  --sb-card: rgba(0, 0, 0, 0.4);
  --sb-border: #1f1f1f;
  --sb-gold: #c9a46b;
  --sb-gold-text: #ffb050;
  --sb-text: #cccccc;
  --sb-text-dim: #999999;
  --sb-white: #ffffff;
  --sb-font-brand: "Cinzel", serif;
  --sb-font-head: "Arial Black", "Segoe UI", Tahoma, sans-serif;
  --sb-font-body: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--sb-base); }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--sb-base);
  color: var(--sb-text);
  font-family: var(--sb-font-body);
  font-size: 15px;
  line-height: 1.6;
}

a { color: var(--sb-gold-text); text-decoration: none; }
a:hover { color: #ffc878; }

.sb-main { flex: 1; display: flex; flex-direction: column; }
.sb-wrap { max-width: 1100px; margin: 0 auto; padding: 0 28px; }

/* ------------------------------------------------------------
   Top bar: wordmark left, nav, download button right
   ------------------------------------------------------------ */
.sb-topbar {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 12px 28px;
  background: var(--sb-panel);
  border-bottom: 1px solid var(--sb-border);
}

.sb-wordmark { display: flex; flex-direction: column; line-height: 1.2; }
.sb-wordmark-name {
  font-family: var(--sb-font-brand);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 3px;
  color: var(--sb-gold);
}
.sb-wordmark-tag {
  font-size: 9px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: #777777;
}

.sb-nav { display: flex; gap: 22px; margin-left: 12px; }
.sb-nav a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #aaaaaa;
  padding: 6px 2px;
}
.sb-nav a:hover { color: var(--sb-gold-text); }
.sb-nav a.active { color: var(--sb-gold); }

.sb-download { margin-left: auto; }
.sb-download .wow-button-text { font-size: 12.5px; }
.sb-download { padding: 9px 22px; }

/* ------------------------------------------------------------
   Buttons — the launcher's ember wow-button, verbatim
   ------------------------------------------------------------ */
.wow-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 30px;
  cursor: pointer;
  user-select: none;
  border: 2px solid #1c0b04;
  border-radius: 5px;
  text-decoration: none;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 45%),
    linear-gradient(to bottom, #3a0d06 0%, #962212 45%, #ad2c14 55%, #4a1208 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 140, 70, 0.25),
    inset 0 -2px 4px rgba(0, 0, 0, 0.45),
    0 4px 10px rgba(0, 0, 0, 0.6),
    0 0 8px rgba(220, 60, 20, 0.3);
  transition: all 0.15s ease-in-out;
}
.wow-button::before {
  content: "";
  position: absolute;
  top: -3px; left: -3px; right: -3px; bottom: -3px;
  border: 1px solid rgba(255, 130, 50, 0.2);
  border-radius: 7px;
  pointer-events: none;
}
.wow-button-text {
  font-family: var(--sb-font-body);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #ffb050;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.7),
    0 0 8px rgba(255, 150, 40, 0.45);
  transition: color 0.15s ease-in-out, text-shadow 0.15s ease-in-out;
}
.wow-button:hover {
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 45%),
    linear-gradient(to bottom, #4d1208 0%, #c43018 45%, #d63c1e 55%, #621a0c 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 150, 80, 0.35),
    inset 0 -2px 4px rgba(0, 0, 0, 0.45),
    0 4px 10px rgba(0, 0, 0, 0.6),
    0 0 14px rgba(255, 90, 25, 0.55);
}
.wow-button:hover .wow-button-text {
  color: #ffc878;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.7),
    0 0 10px rgba(255, 170, 60, 0.65);
}
.wow-button:active {
  transform: translateY(1px);
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 45%),
    linear-gradient(to bottom, #240a05 0%, #6e1a0e 50%, #38100a 100%);
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.6),
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 0 6px rgba(220, 60, 20, 0.25);
}

/* Secondary button: dark card face, gold on hover */
.sb-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 28px;
  border: 1px solid var(--sb-border);
  border-radius: 5px;
  background: var(--sb-card);
  color: var(--sb-text);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.sb-btn-ghost:hover {
  border-color: rgba(201, 164, 107, 0.5);
  color: var(--sb-gold-text);
  background: rgba(0, 0, 0, 0.55);
}

/* ------------------------------------------------------------
   Hero: full-bleed druid art right, dark gradient left
   ------------------------------------------------------------ */
.sb-hero {
  display: flex;
  align-items: center;
  min-height: 520px;
  border-bottom: 1px solid var(--sb-border);
  background:
    linear-gradient(to right,
      rgba(10, 10, 10, 0.97) 0%,
      rgba(10, 10, 10, 0.92) 30%,
      rgba(10, 10, 10, 0.55) 62%,
      rgba(10, 10, 10, 0.25) 100%),
    url("/assets/img/hero.jpg") right center / cover no-repeat var(--sb-base);
}
.sb-hero-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 84px 28px;
}
.sb-hero-title {
  font-family: var(--sb-font-head);
  font-size: clamp(44px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: 2px;
  color: var(--sb-white);
  margin: 0 0 10px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}
.sb-hero-sub {
  font-family: var(--sb-font-brand);
  font-size: 19px;
  letter-spacing: 1px;
  color: var(--sb-gold-text);
  margin: 0 0 18px;
}
.sb-hero-desc {
  max-width: 560px;
  font-size: 15.5px;
  color: #cfcfcf;
  margin: 0 0 30px;
}
.sb-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.sb-hero-actions .wow-button { min-width: 220px; height: 52px; }

/* ------------------------------------------------------------
   Sections
   ------------------------------------------------------------ */
.sb-section { padding: 56px 0; }
.sb-section-title {
  position: relative;
  font-family: var(--sb-font-head);
  font-size: 17px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--sb-white);
  margin: 0 0 24px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sb-border);
}
.sb-section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 56px;
  height: 2px;
  background: var(--sb-gold);
}

.sb-about { background: var(--sb-panel); border-bottom: 1px solid var(--sb-border); }
.sb-about-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 980px;
}
.sb-about-cols p {
  margin: 0;
  color: #b9b9b9;
  font-size: 15px;
  line-height: 1.75;
}

/* ------------------------------------------------------------
   News cards — the launcher's .news-item DNA
   ------------------------------------------------------------ */
.sb-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.sb-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 150px;
  overflow: hidden;
  background: var(--sb-card);
  border: 1px solid var(--sb-border);
  border-radius: 6px;
  padding: 18px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.sb-card:hover { border-color: rgba(201, 164, 107, 0.5); }
.sb-card time {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.5px;
  color: #8a8a8a;
  margin-bottom: 5px;
}
.sb-card-title {
  font-family: var(--sb-font-body);
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.3;
  color: var(--sb-white);
  margin: 0 0 6px;
}
.sb-card-excerpt {
  font-size: 13px;
  line-height: 1.45;
  color: #b5b5b5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* With a feature image: the image becomes the card's backdrop, cover
   cropped to fill it, with a left-to-right dark gradient over the left
   side (where the text sits) to keep it legible on busy art. */
.sb-card.has-image .sb-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.sb-card.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.6) 45%,
    rgba(0, 0, 0, 0.3) 100%);
  z-index: 1;
  pointer-events: none;
}
.sb-card .sb-card-body { position: relative; z-index: 2; }

.sb-more { margin-top: 22px; font-size: 13.5px; letter-spacing: 1px; }
.sb-empty { color: var(--sb-text-dim); }

/* News feed page: single column, roomier cards */
.sb-page-title {
  font-family: var(--sb-font-head);
  font-size: 34px;
  letter-spacing: 1.5px;
  color: var(--sb-white);
  margin: 0 0 8px;
}
.sb-page-sub { color: var(--sb-text-dim); font-size: 14.5px; margin: 0 0 28px; }
.sb-feed { display: flex; flex-direction: column; gap: 12px; max-width: 820px; }
.sb-feed .feed-card { min-height: 140px; }

/* ------------------------------------------------------------
   Post (article) page
   ------------------------------------------------------------ */
.sb-post { max-width: 780px; margin: 0 auto; padding: 48px 28px 72px; }
.sb-back {
  font-size: 12.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #8a8a8a;
}
.sb-back:hover { color: var(--sb-gold-text); }
.sb-post-title {
  font-family: var(--sb-font-head);
  font-size: clamp(28px, 4.5vw, 40px);
  line-height: 1.12;
  color: var(--sb-white);
  margin: 14px 0 10px;
}
.sb-post-date { font-size: 13px; color: #8a8a8a; }
.sb-post-feature { margin: 28px 0 36px; }
.sb-post-feature img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--sb-border);
}

/* Rich Ghost HTML content */
.sb-post-content, .sb-page-content {
  color: #dddddd;
  font-size: 15.5px;
  line-height: 1.75;
}
.sb-post-content p, .sb-page-content p { margin: 0 0 1.1em; }
.sb-post-content h2, .sb-page-content h2 {
  font-family: var(--sb-font-head);
  font-size: 22px;
  color: var(--sb-white);
  margin: 1.6em 0 0.6em;
}
.sb-post-content h3, .sb-page-content h3 {
  font-family: var(--sb-font-head);
  font-size: 17px;
  color: var(--sb-white);
  margin: 1.4em 0 0.5em;
}
.sb-post-content a, .sb-page-content a { color: var(--sb-gold-text); }
.sb-post-content ul, .sb-post-content ol,
.sb-page-content ul, .sb-page-content ol { padding-left: 1.4em; margin: 0 0 1.1em; }
.sb-post-content blockquote, .sb-page-content blockquote {
  border-left: 3px solid var(--sb-gold);
  margin: 1.2em 0;
  padding: 4px 0 4px 16px;
  color: #bbbbbb;
}
.sb-post-content img, .sb-page-content img { max-width: 100%; border-radius: 6px; }
.sb-post-content figure, .sb-page-content figure { margin: 1.4em 0; }
.sb-post-content figcaption, .sb-page-content figcaption {
  font-size: 12px;
  color: #888888;
  margin-top: 6px;
  text-align: center;
}
.sb-post-content pre, .sb-page-content pre {
  background: #111111;
  border: 1px solid var(--sb-border);
  border-radius: 6px;
  padding: 14px;
  overflow-x: auto;
}
.sb-post-content code, .sb-page-content code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92em;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  padding: 1px 4px;
}
.sb-post-content pre code { background: none; padding: 0; }

/* Koenig (the editor's) image width classes: "wide" breaks out of the
   780px article column, "full" runs edge-to-edge. */
.sb-post-content .kg-width-wide,
.sb-page-content .kg-width-wide {
  margin-left: -60px;
  margin-right: -60px;
}
.sb-post-content .kg-width-full,
.sb-page-content .kg-width-full {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.sb-post-content hr, .sb-page-content hr {
  border: none;
  border-top: 1px solid var(--sb-border);
  margin: 2em 0;
}

/* ------------------------------------------------------------
   Download page: platform tiles + one-command install
   ------------------------------------------------------------ */
.sb-download-page { padding-top: 64px; }
.sb-dl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 760px;
}
.sb-dl-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--sb-card);
  border: 1px solid var(--sb-border);
  border-radius: 6px;
  padding: 34px 24px 30px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.sb-dl-tile:hover { border-color: rgba(201, 164, 107, 0.5); }
.sb-dl-icon { width: 44px; height: 44px; color: var(--sb-gold); margin-bottom: 16px; }
.sb-dl-os {
  font-family: var(--sb-font-head);
  font-size: 19px;
  letter-spacing: 1px;
  color: var(--sb-white);
  margin: 0 0 4px;
}
.sb-dl-note { font-size: 13px; color: var(--sb-text-dim); margin: 0 0 20px; }
.sb-dl-tile .wow-button { width: 100%; max-width: 240px; }

.sb-dl-cmdbox {
  margin-top: 22px;
  max-width: 760px;
  background: var(--sb-card);
  border: 1px solid var(--sb-border);
  border-radius: 6px;
  padding: 18px 20px 20px;
}
.sb-dl-cmdlabel {
  font-size: 12px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--sb-text-dim);
  margin: 0 0 10px;
}
.sb-dl-cmdrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sb-dl-cmd {
  flex: 1;
  font-family: Consolas, "Courier New", monospace;
  font-size: 14px;
  color: var(--sb-gold-text);
  background: #111111;
  border: 1px solid var(--sb-border);
  border-radius: 4px;
  padding: 10px 14px;
  overflow-x: auto;
  white-space: nowrap;
}
.sb-dl-copy {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--sb-text);
  background: var(--sb-card);
  border: 1px solid var(--sb-border);
  border-radius: 4px;
  padding: 9px 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.sb-dl-copy:hover { border-color: rgba(201, 164, 107, 0.5); color: var(--sb-gold-text); }

/* ------------------------------------------------------------
   404 / error
   ------------------------------------------------------------ */
.sb-404 { text-align: center; padding: 90px 28px 110px; }
.sb-404 h1 {
  font-family: var(--sb-font-head);
  font-size: 64px;
  color: var(--sb-gold);
  margin: 0 0 10px;
}
.sb-404 p { margin: 0 0 26px; color: var(--sb-text-dim); }

/* ------------------------------------------------------------
   Footer — disclaimer only, no "Powered by Ghost"
   ------------------------------------------------------------ */
.sb-footer {
  margin-top: auto;
  padding: 26px 28px 34px;
  border-top: 1px solid var(--sb-border);
  background: var(--sb-panel);
}
.sb-footer p {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  font-size: 11.5px;
  line-height: 1.7;
  color: #666666;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  .sb-cards { grid-template-columns: 1fr; }
  .sb-about-cols { grid-template-columns: 1fr; }
  .sb-dl-grid { grid-template-columns: 1fr; }
  .sb-hero {
    background:
      linear-gradient(to right,
        rgba(10, 10, 10, 0.95) 0%,
        rgba(10, 10, 10, 0.75) 60%,
        rgba(10, 10, 10, 0.55) 100%),
      url("/assets/img/hero.jpg") center 30% / cover no-repeat var(--sb-base);
  }
  .sb-hero-inner { padding: 60px 22px; }
}

@media (max-width: 640px) {
  .sb-topbar { flex-wrap: wrap; gap: 10px 18px; padding: 12px 18px; }
  .sb-download { margin-left: 0; }
  .sb-wrap { padding: 0 18px; }
  .sb-hero-actions .wow-button { width: 100%; min-width: 0; }
  .sb-hero-actions .sb-btn-ghost { width: 100%; }
}
