/* ============================================================================
 * COMPONENT · tc-empty-state
 * ----------------------------------------------------------------------------
 * Variants: default, coming-soon, lore, compact, einladung, laedt/erfolg/fehler.
 *
 * Loest die historischen .no-data, .no-events, .no-data-flavor, .gm-empty
 * und das .system-placeholder Pattern ab.
 *
 * Die --lore Variante bewahrt den Mordheim-Sprach-Charakter:
 * "Die Annalen schweigen noch...", "Noch hat der Tod keine Ernte gehalten."
 *
 * Version: 1.0 (29. Mai 2026, Phase 2)
 * ============================================================================ */


/* ============================================================================
 * BASE
 * ============================================================================ */
.tc-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--tc-space-6) var(--tc-space-4);
  text-align: center;
  color: var(--tc-text-muted);
  /* Die Komponente bringt ihre Schrift mit (CLAUDE.md §9) — auf activate.html
     stand der Hinweis bis #778 in Times, weil body dort keine trug. */
  font-family: var(--tc-font-body);
}

.tc-empty-state__icon {
  font-size: 2.5rem;
  margin-bottom: var(--tc-space-3);
  opacity: 0.6;
  line-height: 1;
}

.tc-empty-state__title {
  font-family: var(--tc-font-display);
  font-size: var(--tc-text-lg);
  color: var(--tc-text-default);
  margin: 0 0 var(--tc-space-2) 0;
  letter-spacing: var(--tc-tracking-wide);
}

.tc-empty-state__hint {
  font-size: var(--tc-text-sm);
  color: var(--tc-text-muted);
  max-width: 380px;
  line-height: var(--tc-leading-snug);
  margin: 0;
}

.tc-empty-state__action {
  margin-top: var(--tc-space-4);
}


/* ============================================================================
 * VARIANT · coming-soon — fuer noch nicht gebaute Bereiche
 * (loest .system-placeholder ab, mit Features-Liste + "Demnaechst"-Badge)
 * ============================================================================ */
.tc-empty-state--coming-soon {
  padding: var(--tc-space-7) var(--tc-space-5);
  background: var(--tc-deco-warm-bg);
  border: 1px dashed var(--tc-deco-warm-border);
  border-radius: var(--tc-radius-xl);
  max-width: 720px;
  margin: 0 auto;
}

.tc-empty-state--coming-soon .tc-empty-state__icon {
  font-size: 3.5rem;
  opacity: 0.85;
}

.tc-empty-state--coming-soon .tc-empty-state__title {
  font-size: var(--tc-text-2xl);
  color: var(--tc-deco-warm-text);
}

.tc-empty-state--coming-soon .tc-empty-state__hint {
  font-size: var(--tc-text-base);
  max-width: 480px;
  margin-bottom: var(--tc-space-4);
}

.tc-empty-state__features {
  display: flex;
  flex-direction: column;
  gap: var(--tc-space-2);
  padding: var(--tc-space-3) var(--tc-space-4);
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--tc-radius-md);
  font-size: var(--tc-text-sm);
  color: var(--tc-text-default);
  text-align: left;
  max-width: 480px;
}

.tc-empty-state__features-item {
  display: flex;
  align-items: center;
  gap: var(--tc-space-2);
}

.tc-empty-state__badge {
  display: inline-block;
  padding: var(--tc-space-2) var(--tc-space-4);
  margin-top: var(--tc-space-4);
  background: var(--tc-accent);
  color: var(--tc-text-on-accent);
  border-radius: var(--tc-radius-full);
  font-family: var(--tc-font-display);
  font-size: var(--tc-text-sm);
  font-weight: var(--tc-weight-semibold);
  letter-spacing: var(--tc-tracking-wide);
}


/* ============================================================================
 * VARIANT · lore — Mordheim-Sprach-Charakter
 * "Die Annalen schweigen noch..."
 * ============================================================================ */
.tc-empty-state--lore {
  padding: var(--tc-space-5) var(--tc-space-4);
  color: var(--tc-text-muted);
}

.tc-empty-state--lore .tc-empty-state__icon {
  font-size: 1.8rem;
  opacity: 0.4;
  margin-bottom: var(--tc-space-2);
}

.tc-empty-state--lore .tc-empty-state__title {
  font-family: var(--tc-font-display);
  font-size: var(--tc-text-base);
  color: var(--tc-text-muted);
  font-style: italic;
  font-weight: var(--tc-weight-normal);
  letter-spacing: var(--tc-tracking-normal);
}


/* ============================================================================
 * VARIANT · compact — fuer Inline-Empty in Cards/Listen
 * ============================================================================ */
.tc-empty-state--compact {
  padding: var(--tc-space-4) var(--tc-space-3);
}

.tc-empty-state--compact .tc-empty-state__icon {
  font-size: 1.4rem;
  margin-bottom: var(--tc-space-1);
}

.tc-empty-state--compact .tc-empty-state__title {
  font-size: var(--tc-text-sm);
}

.tc-empty-state--compact .tc-empty-state__hint {
  font-size: var(--tc-text-xs);
}


/* ============================================================================
 * VARIANT · einladung — der leere Platz laedt ein (#959, 11.10.2026)
 * ----------------------------------------------------------------------------
 * Wo nichts ist, stand oft nur eine Feststellung („Keine kommenden Termine
 * eingetragen"), ohne den Schritt, der das aendern wuerde. Diese Fassung hat
 * drei feste Teile, immer in dieser Reihenfolge:
 *
 *   __title   was hier sonst steht            („Hier stehen die naechsten Abende.")
 *   __hint    ein Satz in der Stimme des Wirts (kursiv; __wer nennt, wer spricht)
 *   __action  EIN Knopf fuer den ersten Schritt
 *
 * Statt eines Zeichens darf das Gesicht des Wirts stehen (__wirt) — ausserhalb
 * seines Hauses. IM Haus steht er schon im Kopf; dort bleibt das Bild weg.
 * Der gestrichelte Rahmen sagt: Hier ist ein Platz frei. Er loest `.ug-leer`
 * und `.no-events` dort ab, wo es einen ersten Schritt gibt; wo nur etwas
 * laedt oder klemmt, gelten --laedt und --fehler.
 *
 * Renderer: TC.leerEinladung(o) in js/tc-ui.js. Demo: library-feedback.html.
 * ============================================================================ */
.tc-empty-state--einladung {
  padding: var(--tc-space-5) var(--tc-space-4);
  border: 1px dashed var(--tc-border-color);
  border-radius: var(--tc-radius-md);
}

.tc-empty-state__wirt {
  width: var(--tc-space-7);
  height: var(--tc-space-7);
  margin-bottom: var(--tc-space-2);
  border: 1px solid var(--tc-deco-ornament-border);
  border-radius: var(--tc-radius-full);
  object-fit: cover;
}

.tc-empty-state--einladung .tc-empty-state__icon {
  font-size: 1.8rem;
  margin-bottom: var(--tc-space-2);
}

/* Der Titel ist hier ein ganzer Satz. In der Schmuckschrift stuende er in
   Kapitaelchen ueber zwei Zeilen und waere lauter als der Knopf darunter. */
.tc-empty-state--einladung .tc-empty-state__title {
  font-family: var(--tc-font-body);
  font-size: var(--tc-text-base);
  font-weight: var(--tc-weight-semibold);
  letter-spacing: var(--tc-tracking-normal);
  line-height: var(--tc-leading-snug);
  color: var(--tc-text-default);
}

.tc-empty-state--einladung .tc-empty-state__hint {
  font-style: italic;
}

.tc-empty-state__wer {
  display: block;
  margin-bottom: var(--tc-space-1);
  font-size: var(--tc-text-xs);
  font-style: normal;
  letter-spacing: var(--tc-tracking-wide);
  text-transform: uppercase;
  color: var(--tc-text-muted);
}

.tc-empty-state--einladung .tc-empty-state__action {
  margin-top: var(--tc-space-3);
}

/* Die Fehlerfassung im Raum (#959): derselbe Rahmen, damit „klemmt" und
   „leer" am selben Platz gleich gross stehen — der Titel sagt, was es ist. */
.tc-empty-state--compact.tc-empty-state--fehler {
  border: 1px dashed var(--tc-border-color);
  border-radius: var(--tc-radius-md);
}

.tc-empty-state--compact.tc-empty-state--fehler .tc-empty-state__icon {
  font-size: 1.8rem;
}

.tc-empty-state--compact.tc-empty-state--fehler .tc-empty-state__title {
  font-family: var(--tc-font-body);
  font-size: var(--tc-text-base);
  font-weight: var(--tc-weight-semibold);
  letter-spacing: var(--tc-tracking-normal);
}

.tc-empty-state--compact.tc-empty-state--fehler .tc-empty-state__hint {
  font-size: var(--tc-text-sm);
}

.tc-empty-state--compact.tc-empty-state--fehler .tc-empty-state__action {
  margin-top: var(--tc-space-3);
}


/* ============================================================================
 * VARIANT · Ergebnis einer Seite — laedt / geschafft / gescheitert (#778)
 * ----------------------------------------------------------------------------
 * Freischalten und Beitreten (activate.html, join.html) zeigten ihr Ergebnis
 * in einer eigenen `status-card`, zweimal leicht verschieden abgeschrieben
 * und ein drittes Mal tot in account.css. Es ist derselbe Aufbau wie hier —
 * Zeichen, Titel, Satz, Weg —, nur dass etwas passiert ist statt nichts.
 * Darum Modifier statt einer neuen Familie (Heuristik 3).
 *
 *   --laedt   das Zeichen atmet, bis die Antwort da ist
 *   --erfolg  volles Zeichen, Titel im Highlight
 *   --fehler  volles Zeichen, Titel kraeftig — nicht rot: Der Satz darunter
 *             erklaert, die Farbe wuerde nur schreien (Lesbarkeit, H8)
 * Mehrere Hinweise stehen untereinander; die Wege (`__action`) stapeln sich
 * bei Erfolg und Fehler auf Daumenbreite.
 * ============================================================================ */
.tc-empty-state__hint + .tc-empty-state__hint {
  margin-top: var(--tc-space-3);
}

.tc-empty-state--laedt .tc-empty-state__icon {
  animation: tc-empty-state-atmen 1.5s ease-in-out infinite;
}

@keyframes tc-empty-state-atmen {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 0.25; }
}

.tc-empty-state--erfolg .tc-empty-state__icon,
.tc-empty-state--fehler .tc-empty-state__icon {
  font-size: 3.5rem;
  opacity: 1;
}

.tc-empty-state--erfolg .tc-empty-state__title {
  color: var(--tc-highlight);
}

.tc-empty-state--fehler .tc-empty-state__title {
  color: var(--tc-text-strong);
}

.tc-empty-state--erfolg .tc-empty-state__hint,
.tc-empty-state--fehler .tc-empty-state__hint {
  font-size: var(--tc-text-base);
  color: var(--tc-text-default);
  max-width: 420px;
}

.tc-empty-state--erfolg .tc-empty-state__action,
.tc-empty-state--fehler .tc-empty-state__action {
  display: flex;
  flex-direction: column;
  gap: var(--tc-space-2);
  width: 100%;
  max-width: 320px;
  margin-top: var(--tc-space-5);
}

@media (prefers-reduced-motion: reduce) {
  .tc-empty-state--laedt .tc-empty-state__icon {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
  }
}
