/* Design tokenek. A Figma-tervek piros/szürke arculatából származnak
   (gomb: #F52828, panel: #D9D9D9). Téma: rendszerbeállítás szerint,
   felülírható a <html data-theme="light|dark"> attribútummal. */
:root {
  /* Márkaszínek */
  --brand: #f52828;
  --brand-dark: #8f1818;
  --brand-gradient: linear-gradient(100deg, #f52828 0%, #b81c1c 60%, #8f1818 100%);
  --on-brand: #ffffff;

  /* Felületek (világos) */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #d9d9d9;       /* Figma szürke panel */
  --surface-3: #f1f1f1;
  --text: #141414;
  --text-muted: #5c5c5c;
  --border: #b9b9b9;
  --border-strong: #141414;
  --focus: #1a5fd0;

  /* Állapotszínek */
  --success: #1f8a4c;
  --success-bg: #e3f6ea;
  --warning: #9a6200;
  --warning-bg: #fff3d6;
  --danger: #c4161c;
  --danger-bg: #fde6e6;

  --shadow-1: 0 1px 3px rgb(0 0 0 / 0.18);
  --shadow-2: 0 8px 28px rgb(0 0 0 / 0.28);

  /* Méretek */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --touch: 48px;              /* minimális érintési célpont */

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-s: 0.875rem;
  --fs-m: 1rem;
  --fs-l: 1.25rem;
  --fs-xl: 1.75rem;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121212;
    --surface: #1e1e1e;
    --surface-2: #2a2a2a;
    --surface-3: #262626;
    --text: #f3f3f3;
    --text-muted: #a8a8a8;
    --border: #4a4a4a;
    --border-strong: #f3f3f3;
    --focus: #7fb0ff;
    --success: #5fd08c;
    --success-bg: #17301f;
    --warning: #f0b84a;
    --warning-bg: #35280c;
    --danger: #ff7a7f;
    --danger-bg: #3a1618;
    --shadow-1: 0 1px 3px rgb(0 0 0 / 0.6);
    --shadow-2: 0 8px 28px rgb(0 0 0 / 0.7);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #121212;
  --surface: #1e1e1e;
  --surface-2: #2a2a2a;
  --surface-3: #262626;
  --text: #f3f3f3;
  --text-muted: #a8a8a8;
  --border: #4a4a4a;
  --border-strong: #f3f3f3;
  --focus: #7fb0ff;
  --success: #5fd08c;
  --success-bg: #17301f;
  --warning: #f0b84a;
  --warning-bg: #35280c;
  --danger: #ff7a7f;
  --danger-bg: #3a1618;
  --shadow-1: 0 1px 3px rgb(0 0 0 / 0.6);
  --shadow-2: 0 8px 28px rgb(0 0 0 / 0.7);
  color-scheme: dark;
}
