/* Bannerborn shared tokens + base styles — palette matches app/templates/splash.html. */

:root {
  --raven: #100e0c;
  --smoke: #262019;
  --parchment: #e9dcc0;
  --parchment-dim: rgba(233, 220, 192, .62);
  --oxblood: #7e1d1d;
  --oxblood-deep: #4a1010;
  --brass: #a08444;
  --brass-bright: #c9a85c;
  --steel: #b9bec4;
  --body-font: "Alegreya Sans", "Segoe UI", sans-serif;
  --lapidary: "Cinzel", "Times New Roman", serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; }

body {
  background: var(--raven);
  color: var(--parchment);
  font-family: var(--body-font);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

a { color: var(--brass-bright); }

/* ---- header ------------------------------------------------------------ */

.bb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(160, 132, 68, .25);
  background: var(--smoke);
}

.bb-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--parchment);
}

.bb-crest { display: block; }

.bb-nav a {
  margin-left: 14px;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.bb-wordmark {
  font-family: var(--lapidary);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 1.05rem;
}

/* ---- main / panel -------------------------------------------------------- */

.bb-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6vh 16px;
}

.bb-panel {
  width: min(420px, 92vw);
  background: var(--smoke);
  border: 1px solid rgba(160, 132, 68, .3);
  padding: 28px;
}

.bb-panel h1 {
  font-family: var(--lapidary);
  font-size: 1.4rem;
  margin: 0 0 6px;
}

.bb-dim { color: var(--parchment-dim); margin: 0 0 20px; font-size: .92rem; }
.bb-hint { color: var(--parchment-dim); font-size: .78rem; margin-top: 10px; }

/* ---- forms + buttons ----------------------------------------------------- */

.bb-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.bb-form label {
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--parchment-dim);
}

.bb-form input[type="text"],
.bb-form input[type="password"] {
  background: var(--raven);
  border: 1px solid rgba(160, 132, 68, .4);
  color: var(--parchment);
  padding: .7em .8em;
  font-family: var(--body-font);
  font-size: .95rem;
}

.bb-form input:focus {
  outline: 2px solid var(--brass-bright);
  outline-offset: 1px;
}

.bb-btn {
  font-family: var(--body-font);
  font-weight: 500;
  font-size: .92rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--parchment);
  padding: .8em 1.4em;
  border: 1px solid var(--brass);
  background: linear-gradient(180deg, rgba(160, 132, 68, .12), rgba(160, 132, 68, .04));
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}

.bb-btn:hover:not(:disabled) {
  background-color: var(--oxblood);
  border-color: var(--brass-bright);
}

.bb-btn-primary { border-color: var(--brass-bright); }

.bb-btn-disabled,
.bb-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* ---- creation flow + character sheet ------------------------------------- */

.bb-create, .bb-quiz, .bb-city { width: min(640px, 94vw); }

.bb-route-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.bb-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(160, 132, 68, .15);
}

.bb-route-label { font-size: .92rem; }

.bb-route-form { margin: 0; }

.bb-error {
  color: #e2a0a0;
  font-size: .85rem;
  margin: 0 0 16px;
}

/* P1.3: the post-crime outcome flash (city.html) -- a calmer tone than
   .bb-error since it reports a completed action, not a refusal. */
.bb-flash {
  color: var(--parchment);
  font-size: .85rem;
  margin: 0 0 16px;
}

/* P1.3: the Heat flavour line (me.html / city.html) -- same quiet register
   as .bb-dim, distinct class so it can be themed on its own later (e.g. a
   warmer tint at higher bands) without touching every other dim line. */
.bb-heat {
  color: var(--parchment-dim);
  font-size: .85rem;
  margin: 0 0 16px;
}

.bb-quiz-question {
  border: 1px solid rgba(160, 132, 68, .25);
  padding: 14px;
  margin: 0 0 14px;
}

.bb-quiz-question legend {
  font-family: var(--lapidary);
  font-size: .95rem;
  padding: 0 6px;
}

.bb-quiz-option {
  display: block;
  padding: 6px 0;
  font-size: .9rem;
  text-transform: none;
  letter-spacing: normal;
}

.bb-sheet { text-align: center; }
/* Deliberate forward-reference relic: unused until the Bannerman-breakpoint motto perk lands (BANNERBORN_V2.md §4) -- keep. */
.bb-motto { font-style: italic; color: var(--parchment-dim); }

.bb-stat-flavour {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  text-align: left;
}

.bb-stat-flavour li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(160, 132, 68, .15);
  font-size: .92rem;
}

/* ---- P1.5: notifications inbox + header badge ---------------------------- */

.bb-notifications { width: min(640px, 94vw); }

.bb-notif-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.bb-notif {
  padding: 12px 4px;
  border-bottom: 1px solid rgba(160, 132, 68, .15);
}

/* Unread rows read visually distinct from read ones -- a brass rule down
   the left edge, same accent color as the rest of the palette. */
.bb-notif-unread {
  border-left: 3px solid var(--brass-bright);
  padding-left: 10px;
}

.bb-notif-body { margin: 0 0 4px; font-size: .92rem; }
.bb-notif-meta { margin: 0; font-size: .74rem; color: var(--parchment-dim); }

/* The header nav badge (base.html's notif_badge macro / notif_badge.html's
   htmx-swapped replacement) -- a small pill after the "Notifications" link. */
.bb-badge {
  display: inline-block;
  min-width: 1.1em;
  margin-left: 5px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--oxblood);
  color: var(--parchment);
  font-size: .72rem;
  text-align: center;
  text-transform: none;
  letter-spacing: normal;
}

/* Zero unread -- the badge renders but stays invisible rather than showing
   an empty pill (its hx-get/hx-trigger attributes must stay in the DOM so
   the next 20s poll still fires). */
.bb-badge-empty { display: none; }

/* ---- footer -------------------------------------------------------------- */

.bb-footer {
  text-align: center;
  padding: 14px;
  font-size: .74rem;
  letter-spacing: .08em;
  color: rgba(233, 220, 192, .34);
}
