/* ============================================================================
 * bounty-board.css — tc-bounty-board
 * ----------------------------------------------------------------------------
 * SCHICHT 1 (geteilter Organismus). Steckbrief-/Wanted-Poster-Raster.
 * Abstrahiert aus dem Dashboard-Pattern (.bounty-grid / .poster) — die reifste
 * Kopfgeld-Optik der Plattform (Mordheim-Sepia + Gold-Steckbrief).
 *
 * ANTI-BLAND: Der Steckbrief-Charakter (Gold-Verlauf-Leiste oben, zentriert,
 * "WANTED"-Kapitälchen, Belohnungs-Trennlinie) bleibt erhalten. Aber statt
 * harter Sepia-/Gold-Hex jetzt token-getrieben — per Default trägt das Board
 * die Mordheim-Stimmung (Default-Theme), folgt aber jedem aktiven Theme.
 *
 * Struktur:
 *   .tc-bounty-board                     Block (= Grid-Wrapper)
 *     .tc-bounty                         Einzel-Steckbrief  (--danger / --own)
 *       __type      (Icon/Emoji)
 *       __wanted    ("GESUCHT"-Kapitälchen)
 *       __target    (Name des Ziels)
 *       __sub        (Untertitel: Warband/Fraktion)
 *       __reward     (Belohnung, mit Trennlinie)
 *       __issuer     (Auftraggeber, kursiv)
 *     .tc-bounty-board__empty            Leerzustand
 *
 * Modifier am Einzel-Steckbrief:
 *   --danger   pulsierende Gefahr-Leiste (rote Auszeichnung)
 *   --own      eigener Auftrag (gedämpft, Erfolgs-Leiste)
 * ============================================================================ */

.tc-bounty-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--tc-space-3, 12px);
}

/* === EINZEL-STECKBRIEF ==================================================== */
.tc-bounty {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--tc-space-4, 16px) var(--tc-space-3, 14px);
  min-height: 145px;
  background: var(--tc-bg-surface-1);
  border: 1px solid var(--tc-border-default, rgba(255,255,255,0.10));
  border-radius: var(--tc-radius-md, 8px);
  cursor: pointer;
  transition:
    border-color var(--tc-motion-fast, 120ms ease),
    transform var(--tc-motion-fast, 120ms ease),
    box-shadow var(--tc-motion-fast, 120ms ease);
}

/* Steckbrief-Leiste oben: Auszeichnungs-Gold-Verlauf (theme-getrieben) */
.tc-bounty::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  border-radius: var(--tc-radius-md, 8px) var(--tc-radius-md, 8px) 0 0;
  background: linear-gradient(90deg,
    var(--tc-secondary),
    var(--tc-highlight),
    var(--tc-secondary));
}

.tc-bounty:hover {
  border-color: var(--tc-highlight);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.4);
}

/* Gefahr-Variante: rote pulsierende Leiste (Semantik-Danger = Daten/Status) */
.tc-bounty--danger {
  border-color: var(--tc-danger-border, rgba(248,113,113,0.4));
  background: linear-gradient(180deg, var(--tc-danger-bg, rgba(248,113,113,0.06)), var(--tc-bg-surface-1));
}
.tc-bounty--danger::before {
  background: linear-gradient(90deg, var(--tc-danger), #ff6b6b, var(--tc-danger));
  animation: tc-bounty-pulse 1.5s infinite;
}
@keyframes tc-bounty-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

/* Eigener Auftrag: gedämpft, Erfolgs-Leiste */
.tc-bounty--own {
  border-color: var(--tc-success-border, rgba(74,222,128,0.4));
  opacity: 0.85;
}
.tc-bounty--own::before {
  background: linear-gradient(90deg, var(--tc-success), #81C784, var(--tc-success));
}

/* === SLOTS ================================================================ */
.tc-bounty__type {
  font-size: 1.2rem;
  margin-bottom: 3px;
}
.tc-bounty__wanted {
  font-size: var(--tc-text-2xs, 0.6rem);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--tc-secondary);
  font-weight: 600;
  margin-bottom: 3px;
}
.tc-bounty__target {
  font-family: var(--tc-font-display, 'Cinzel', serif);
  font-size: var(--tc-text-base, 1rem);
  font-weight: 700;
  color: var(--tc-text-strong);
  line-height: 1.25;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tc-bounty__sub {
  font-size: var(--tc-text-xs, 0.72rem);
  color: var(--tc-text-muted);
  margin-bottom: var(--tc-space-2, 8px);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tc-bounty__reward {
  font-size: var(--tc-text-sm, 0.82rem);
  color: var(--tc-highlight);
  font-weight: 600;
  margin-top: auto;
  padding-top: var(--tc-space-2, 8px);
  border-top: 1px dashed rgba(var(--tc-highlight-rgb), 0.3);
  width: 100%;
}
.tc-bounty__issuer {
  font-size: var(--tc-text-2xs, 0.68rem);
  color: var(--tc-text-muted);
  font-style: italic;
  margin-top: 6px;
}

/* === EMPTY ================================================================ */
.tc-bounty-board__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--tc-space-6, 25px);
  color: var(--tc-text-muted);
  font-size: var(--tc-text-sm, 0.85rem);
  font-style: italic;
}

/* === MOBILE =============================================================== */
@media (max-width: 480px) {
  .tc-bounty-board {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--tc-space-2, 8px);
  }
  .tc-bounty { min-height: 120px; padding: var(--tc-space-3, 12px) var(--tc-space-2, 8px); }
}

@media (prefers-reduced-motion: reduce) {
  .tc-bounty--danger::before { animation: none; }
}

/* ============================================================================
 * tc-bounty-list - LISTEN-VARIANTE der Kopfgelder (kompakt, schmale Spalten)
 * ----------------------------------------------------------------------------
 * Alternative zum Steckbrief-Raster oben: horizontale Karten-Liste mit
 * Kategorie-Kante links + Siegel. Fuer dichte/schmale Kontexte. Kategorien:
 *   --onme (auf dich, Danger) . --byme (von dir, Akzent) . --open (zu holen, Gold)
 *
 * Struktur:
 *   .tc-bounty-list
 *     .tc-bounty-list__card (--onme/--byme/--open)
 *       __seal . __body ( __tag(--onme/--byme/--open) . __target(small) . __reward )
 * ============================================================================ */
.tc-bounty-list { display: flex; flex-direction: column; gap: 10px; }
.tc-bounty-list__card { position: relative; display: flex; align-items: flex-start; gap: 13px; padding: 12px 15px 12px 13px; overflow: hidden; border-radius: var(--tc-radius-md, 8px); background: linear-gradient(180deg, rgba(161,145,122,0.06), rgba(0,0,0,0.13)); border: 1px solid var(--tc-border-subtle); border-left: 3px solid var(--tc-accent-dark); transition: all var(--tc-motion-normal, 200ms ease); }
.tc-bounty-list__card:hover { transform: translateX(2px); box-shadow: 0 6px 16px rgba(0,0,0,0.35); }
.tc-bounty-list__card--onme { border-left-color: var(--tc-danger, #f87171); background: linear-gradient(180deg, rgba(248,113,113,0.09), rgba(0,0,0,0.13)); }
.tc-bounty-list__card--byme { border-left-color: var(--tc-accent); }
.tc-bounty-list__card--open { border-left-color: var(--tc-highlight); background: linear-gradient(180deg, rgba(var(--tc-highlight-rgb),0.07), rgba(0,0,0,0.13)); }
.tc-bounty-list__seal { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 1.15rem; flex-shrink: 0; background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.06), rgba(0,0,0,0.42)); border: 1px solid var(--tc-border-default); box-shadow: inset 0 1px 3px rgba(0,0,0,0.55); }
.tc-bounty-list__body { flex: 1; min-width: 0; }
.tc-bounty-list__tag { display: inline-block; font-size: 0.56rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; padding: 2px 7px; border-radius: var(--tc-radius-sm, 4px); margin-bottom: 5px; }
.tc-bounty-list__tag--onme { color: #f4b4b4; background: rgba(248,113,113,0.15); border: 1px solid rgba(248,113,113,0.35); }
.tc-bounty-list__tag--byme { color: var(--tc-highlight); background: rgba(var(--tc-accent-rgb),0.13); border: 1px solid rgba(var(--tc-accent-rgb),0.3); }
.tc-bounty-list__tag--open { color: var(--tc-highlight); background: rgba(var(--tc-highlight-rgb),0.13); border: 1px solid rgba(var(--tc-highlight-rgb),0.3); }
.tc-bounty-list__target { font-family: var(--tc-font-display, 'Cinzel', serif); font-weight: 600; font-size: 0.94rem; color: var(--tc-text-strong); line-height: 1.25; }
.tc-bounty-list__target small { font-family: var(--tc-font-body, sans-serif); font-weight: 400; color: var(--tc-text-muted); font-size: 0.72rem; }
.tc-bounty-list__reward { display: flex; align-items: baseline; gap: 6px; margin-top: 5px; font-size: 0.8rem; font-weight: 600; color: var(--tc-highlight); }
.tc-bounty-list__reward span:first-child { font-size: 0.95rem; }

/* ============================================================================
   VETTER NAGEL TRITT AN DEN TISCH (15.08.2026)
   ----------------------------------------------------------------------------
   Der Vorschlags-Dialog nach der Partie. Er erscheint NUR, wenn wirklich ein
   Steckbrief passt — deshalb darf er auffallen. Ein Dialog, der nach jeder
   Partie kommt und meistens nichts sagt, wird weggeklickt, ohne gelesen zu
   werden; einer, der selten kommt, wird gelesen.
   ========================================================================== */

.bounty-vorschlag__intro,
.bounty-vorschlag__fuss {
  margin: 0 0 var(--tc-space-3, 12px);
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--tc-text-muted, #9e9e9e);
}

.bounty-vorschlag__fuss { margin: var(--tc-space-3, 12px) 0 0; font-style: italic; }

.bounty-vorschlag__zeile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tc-space-3, 12px);
  flex-wrap: wrap;
  padding: var(--tc-space-3, 12px);
  margin-bottom: var(--tc-space-2, 8px);
  border: 1px solid var(--tc-border-subtle, rgba(255, 255, 255, 0.1));
  border-left: 3px solid var(--tc-highlight, #d4c4a0);
  border-radius: var(--tc-radius-md, 8px);
  background: var(--tc-bg-surface-2, #2d2d2d);
}

.bounty-vorschlag__ziel {
  margin: 0;
  font-family: var(--tc-font-display, Cinzel, serif);
  font-size: 1.02rem;
  color: var(--tc-text-strong, #e0e0e0);
}

.bounty-vorschlag__grund { margin: 2px 0 0; font-size: 0.8rem; color: var(--tc-text-muted, #9e9e9e); }
.bounty-vorschlag__lohn  { margin: 4px 0 0; font-size: 0.88rem; color: var(--tc-highlight, #d4c4a0); }
.bounty-vorschlag__zeile .tc-button { flex-shrink: 0; }

/* ============================================================================
 * DAS AUSSETZEN-FORMULAR (15.08.2026)
 * ----------------------------------------------------------------------------
 * Tim, am Handy: "Das sieht mobile noch nicht gut aus." — und das war kein
 * Feinschliff, sondern ein komplett ungestyltes Formular.
 *
 * Es benutzte `.form-group` / `.form-control`. Die stehen in css/account.css,
 * css/mordheim-theme.css und css/dashboard.css; `untergrund.html` laedt keine
 * davon. Ergebnis: weisse Systemfelder, Label und Eingabe in einer Zeile,
 * ueberlappende Kaesten.
 *
 * Das Markup ist jetzt `tc-form-group` / `tc-input` / `tc-select` — die
 * Komponente, die die Seite ohnehin laedt. Hier bleiben nur die zwei Stellen,
 * fuer die es keinen Baustein gibt.
 *
 * ⚠️ UND DIESE DATEI SELBST HATTE DIE GLEICHE LUECKE: bounty-system.js liegt
 * auf sechs Seiten, bounty-board.css lag auf vier — es fehlte ausgerechnet auf
 * dashboard.html und untergrund.html, also genau dort, wo das Formular
 * aufgeht. Beim Anlegen einer Komponente also nicht nur fragen, ob das
 * Stilblatt existiert, sondern ob es dort liegt, wo sein JavaScript liegt.
 * ========================================================================== */

.bounty-create-form__issuer {
  padding: 10px 12px;
  border-radius: var(--tc-radius-sm, 6px);
  background: var(--tc-deco-warm-bg);
  border: 1px solid var(--tc-deco-warm-border);
  color: var(--tc-highlight);
  font-weight: 600;
}
