@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700;800;900&display=swap');

/* פעולה+ · the final style (approved 20.11.2026, see סגנון-עיצובי.md).
   A social network around a campfire: light blue and white, one blue, yellow only for the flame and celebration.
   Roles:
   --primary     blue: the one thick button, links, the active icon. Text on it: --primary-text.
   --accent      yellow: only the flame, celebration and «התחלנו». One or two places on a screen at most.
   --surface-2   icon backgrounds and the active state.
   Sizes on a phone: screen title 22–24 (900), card title 18–21 (800), text 14–15 (400–500), small 12–13.
   Side margins 16 (--space-4). Gaps between cards 8–14. Areas are separated by a 1px --border line, not shadows. */
:root {
  --bg: #F0F6FF;
  --surface: #FFFFFF;
  --surface-2: #DBEAFE;
  --text: #13285E;
  --text-2: #6A7FA8;
  --primary: #2F6BFF;
  --primary-text: #FFFFFF;
  --accent: #FFC83D;
  --border: #E3ECFA;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(19, 40, 94, .05), 0 8px 24px rgba(19, 40, 94, .07);
  --font: 'Rubik', system-ui, sans-serif;
  --font-display: 'Rubik', system-ui, sans-serif;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;

  /* the bottom shades of the thick buttons (from the style file) */
  --primary-shade: #1D4FD6;
  --accent-text: #5A3B00;
  --accent-shade: #E8A300;
  --disabled: #E5ECF7;
  --disabled-text: #A3B3CF;
  --disabled-shade: #D3DDEC;

  /* Type (TYPOGRAPHY.md). Rubik only. Hebrew: letter-spacing is always 0, and line-height is roomier than Latin. */
  --fs-display: 28px;   --fw-display: 900;   --lh-display: 1.2;
  --fs-title: 24px;     --fw-title: 900;     --lh-title: 1.25;
  --fs-card: 18px;      --fw-card: 800;      --lh-card: 1.35;
  --fs-read: 17px;      --fw-read: 400;      --lh-read: 1.6;
  --fs-body: 15px;      --fw-body: 400;      --lh-body: 1.5;
  --fs-secondary: 13px; --fw-secondary: 500; --lh-secondary: 1.45;
  --fs-caption: 12px;   --fw-caption: 500;   --lh-caption: 1.4;
  --fs-button: 16px;    --fw-button: 800;    --lh-button: 1.2;
  --fs-button-sm: 13px;
  --fs-chip: 14px;      --fw-chip: 700;      --lh-chip: 1;
  --fs-choice: 16px;    --fw-choice: 700;    --lh-choice: 1.3;
  --fs-stat: 22px;      --fw-stat: 800;      --lh-stat: 1.1;
  --fs-tab: 11px;       --fw-tab: 600;       --fw-tab-on: 800;   --lh-tab: 1.2;
  --measure: 18em;      /* about 39 Hebrew characters: Rubik averages 0.46em per character */
}

/* Typography helpers (TYPOGRAPHY.md) */
h1, h2, h3 { letter-spacing: 0; text-wrap: balance; }
p { text-wrap: pretty; }
.read { font-size: var(--fs-read); font-weight: var(--fw-read); line-height: var(--lh-read); max-inline-size: var(--measure); }
.num { font-variant-numeric: tabular-nums; }

/* Thick buttons: only the main action on a screen. Everything else is a thin 2px icon. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px; border-radius: var(--radius); border: none; border-bottom: 5px solid var(--shade);
  font: 800 16px/1.2 var(--font); cursor: pointer; transition: transform .06s, border-bottom-width .06s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active, .btn.is-pressed { transform: translateY(3px); border-bottom-width: 2px; }
.btn-primary   { --shade: var(--primary-shade); background: var(--primary); color: var(--primary-text); }
.btn-celebrate { --shade: var(--accent-shade);  background: var(--accent);  color: var(--accent-text); }
.btn-secondary { --shade: var(--border); background: var(--surface); color: var(--text); border: 2px solid var(--border); border-bottom-width: 5px; }
.btn-secondary:active, .btn-secondary.is-pressed { border-bottom-width: 2px; }
.btn-disabled, .btn:disabled { --shade: var(--disabled-shade); background: var(--disabled); color: var(--disabled-text); cursor: default; }
.btn-disabled:active, .btn:disabled:active { transform: none; border-bottom-width: 5px; }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 7px 12px; border-radius: 12px; border-bottom-width: 4px; font-size: 13px; }
.btn-sm:active { transform: translateY(2px); border-bottom-width: 2px; }

/* A card that stands out: same language as the buttons */
.card-strong { background: var(--surface); border: 2px solid var(--border); border-bottom-width: 6px; border-radius: var(--radius-lg); }

/* Thin icons, iOS style */
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
