/* LYRICAMUNDO-Theme — einzige Farbwahrheit des Frontends.
   Reine :root-Tokens ohne Build-Step. Wird vor style.css geladen;
   bestehende Regeln behalten Vorrang, neue Code muss Tokens nutzen.
   Regeln + Begründung: docs/DESIGN.md */

/* Dieselbe Schrift wie im gerenderten Output (SpaceMono aus fonts/). */
@font-face {
    font-family: 'SpaceMono';
    src: url('/static/fonts/SpaceMono-Regular.ttf') format('truetype');
    font-display: swap;
}

:root {
    color-scheme: dark;

    /* flächen (hinter → vorne) — grün getönt, eine Akzentfarbe */
    --bg: #0b100d;
    --surface: #121a15;
    --surface-raised: #19231c;
    --surface-inset: #0e1510;
    --surface-panel: #101812;  /* social-feed, ruhiger als karten */

    /* borders */
    --border-subtle: #1f2c23;
    --border: #2c3d32;
    --border-strong: #526e5b;   /* 3.16:1 auf surface — Control-Umrandung */

    /* text (stark → dezent), alle mit Grünstich */
    --text: #e6f2e9;
    --text-secondary: #c2d4c7;
    --text-muted: #97ab9d;
    --text-faint: #8aa08f;
    --text-soft: #b9ccbd;      /* sekundaere lesbarkeit (stats, zustaende) */
    --text-hint: #758a7a;      /* 4.8:1 auf surface */

    /* akzente */
    --accent-special: #fcb805;    /* spezial, stale, hooks */
    --accent-collab: #7ee787;     /* collab, ok, positiv */
    --accent-pink: #ff2e93;       /* swatch-alt, wave-end */
    --accent-blue: #4c9aff;       /* interaktion: picker, primary */
    --accent-blue-hover: #3d84e8;
    --accent-uploaded: #3dff7a;   /* markengrün, einzige Aktionsfarbe */
    --accent: var(--accent-uploaded);
    --on-accent: #07130b;         /* text auf akzent-flächen */
    --accent-ok-soft: #7bd88f;    /* ruhigere OK-Stufe */
    --accent-warning: #d9a441;    /* warnung, "vorbereitet" */
    --tint-accent-bg: #13291c;    /* akzent-getönte button-fläche */
    --danger: #ff6b6b;            /* fehler, löschen, bad state */

    /* status-tints (rgba der akzente) */
    --tint-special-bg: rgba(252, 184, 5, 0.08);
    --tint-special-border: rgba(252, 184, 5, 0.4);
    --tint-danger-bg: rgba(255, 107, 107, 0.06);
    --tint-danger-border: rgba(255, 107, 107, 0.4);
    --tint-ok-bg: rgba(61, 255, 122, 0.08);
    --tint-ok-border: rgba(61, 255, 122, 0.4);

    /* overlays + fokus */
    --overlay: rgba(3, 8, 5, 0.86);
    --overlay-soft: rgba(3, 8, 5, 0.55);
    --focus-ring: 0 0 0 1px var(--bg), 0 0 0 3px var(--accent);

    /* geometrie (radius, spacing, shadow) */
    --radius-sm: 0px;
    --radius: 0px;
    --radius-lg: 0px;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    --shadow-pop: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-panel: 0 4px 14px rgba(0, 0, 0, 0.4);

    /* panel-dichte: innenflaechen statt aussenabstaende */
    --panel-pad: var(--space-4);            /* 16px, Standard-Innenabstand */
    --panel-pad-compact: var(--space-2);    /* 8px, dichte Listen */
    --panel-gap: var(--space-3);            /* 12px, Abstand zwischen Panel-Karten */
    --section-gap: var(--space-6);          /* 24px, Abstand zwischen Hauptsektionen */
    --panel-radius: var(--radius-lg);       /* 12px, groessere Panels, groessere Radien */
    --panel-max: calc(var(--space-8) * 40); /* 1280px, Panel-Breite statt Aussenweissraum */

    /* typografie: eine skala, eine stimme */
    --font-ui: 'SpaceMono', ui-monospace, SFMono-Regular, Consolas, monospace;
    --type-display: 30px;
    --type-title: 17px;
    --type-body: 13px;
    --type-caption: 11px;
    --type-micro: 10px;

    /* bewegung: alles hinter prefers-reduced-motion (siehe DESIGN.md) */
    --motion-fast: 120ms;
    --motion-base: 180ms;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
