/* Travel Spanish Buddy — design tokens
   Colors come straight from the iOS app (DesignSystem/Theme.swift) so web and app feel like one product. */

:root {
  /* Brand palette */
  --coral: #F0503F;
  --coral-light: #FF7A6B;
  --sunny: #FFB61E;
  --sunny-light: #FFD466;
  --lagoon: #13A4C2;
  --lagoon-light: #5CCDE2;
  --cactus: #3DB052;
  --cactus-light: #8EDB98;
  --bougainvillea: #E8458B;
  --papaya: #E0661C;
  --twilight: #6E52C9;
  --warning: #F59E0B;

  /* Unit colors (PathUnit.colorHex) */
  --u1: #E8473A;
  --u2: #0E8FAA;
  --u3: #E0661C;
  --u4: #D63A7E;
  --u5: #2E9E45;
  --u6: #6E52C9;

  /* Phrase category colors (PhraseCategoryInfo) */
  --cat-greetings: #F4A735;
  --cat-restaurant: #E85D4C;
  --cat-directions: #2D9CDB;
  --cat-hotel: #9B59B6;
  --cat-shopping: #27AE60;
  --cat-emergency: #E74C3C;
  --cat-transport: #F39C12;
  --cat-social: #E91E63;
  --cat-numbers: #00BCD4;

  /* Rewards & states */
  --reward: #FFC233;
  --reward-ink: #4A3300;
  --locked-fill: #E3E5EA;
  --locked-ink: #8E94A0;
  --bronze: #CD7F32;
  --silver: #9CA3AF;
  --gold: #F4A735;
  --platinum: #7DD3FC;

  /* Surfaces & text */
  --bg: #F7F8FA;
  --surface: #FFFFFF;
  --surface-2: #F1F3F6;
  --text: #23262D;
  --text-2: #5F6672;
  --text-muted: #666C78;
  --border: #E3E5EA;
  --border-light: #EEF0F3;
  --on-color: #FFFFFF;
  --on-lagoon: #0B2A31;
  --on-cactus: #0E2A14;
  /* Accessible variants (AA contrast): fills that carry white text, and brand colors used as text */
  --coral-fill: #DA3A2C;
  --pink-fill: #D6327C;
  --papaya-fill: #C95100;
  --coral-ink: #D02E21;
  --cactus-ink: #00791F;
  --pink-ink: #C42470;
  --link: #007794;
  --tint: 48%; /* how much brand color goes into tinted text (mixed with --text) */
  --shade: 82%; /* brand fills behind white text are mixed with this much black */

  --focus: #13A4C2;

  /* Type */
  --font-display: "Baloo 2", ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Modular scale, ratio 1.25 */
  --step--1: 0.8rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.563rem;
  --step-3: 1.953rem;
  --step-4: 2.441rem;
  --step-5: 3.052rem;
  --step-6: clamp(2.6rem, 6vw + 1rem, 4.77rem);

  /* Space */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --gutter: 16px;

  /* Shape: big things are rounder than small things */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-pill: 999px;

  /* Depth: the app's "chunky lip" instead of soft shadows */
  --lip: 4px;
  --lip-press: 1px;
  --shadow-float: 0 10px 30px -12px rgb(35 38 45 / 0.28);

  /* Layout */
  --content-max: 680px;
  --wide-max: 1180px;
  --tabbar-h: 72px;
  --rail-w: 232px;

  /* Motion */
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
  --dur-fast: 120ms;
  --dur: 220ms;

  color-scheme: light;
}

/* Dark theme: follows the system unless the visitor picked light; also forced with data-theme="dark". */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --coral: #FF6656;
    --coral-light: #FF8A7A;
    --sunny: #FFC233;
    --sunny-light: #FFD980;
    --lagoon: #3FC3DE;
    --lagoon-light: #7FD9EA;
    --cactus: #5CC96F;
    --cactus-light: #86D98F;
    --bougainvillea: #F06AA2;
    --warning: #FBBF24;
    --locked-fill: #3A3D44;
    --locked-ink: #8A909B;
    --bg: #121316;
    --surface: #24262B;
    --surface-2: #2F3238;
    --text: #F5F5F7;
    --text-2: #B4B8C0;
    --text-muted: #969BA5;
    --border: #3A3D44;
    --border-light: #30333A;
    --focus: #7FD9EA;
    --on-lagoon: #0B2A31;
    --on-cactus: #0E2A14;
    --coral-ink: #FF8A7A;
    --cactus-ink: #5CC96F;
    --pink-ink: #FF7AB0;
    --link: #7FD9EA;
    --tint: 55%;
    --shade: 72%;
    --shadow-float: 0 10px 30px -12px rgb(0 0 0 / 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --coral: #FF6656;
  --coral-light: #FF8A7A;
  --sunny: #FFC233;
  --sunny-light: #FFD980;
  --lagoon: #3FC3DE;
  --lagoon-light: #7FD9EA;
  --cactus: #5CC96F;
  --cactus-light: #86D98F;
  --bougainvillea: #F06AA2;
  --warning: #FBBF24;
  --locked-fill: #3A3D44;
  --locked-ink: #8A909B;
  --bg: #121316;
  --surface: #24262B;
  --surface-2: #2F3238;
  --text: #F5F5F7;
  --text-2: #B4B8C0;
  --text-muted: #969BA5;
  --border: #3A3D44;
  --border-light: #30333A;
  --focus: #7FD9EA;
  --on-lagoon: #0B2A31;
  --on-cactus: #0E2A14;
  --coral-ink: #FF8A7A;
  --cactus-ink: #5CC96F;
  --pink-ink: #FF7AB0;
  --link: #7FD9EA;
  --tint: 55%;
  --shade: 72%;
  --shadow-float: 0 10px 30px -12px rgb(0 0 0 / 0.7);
  color-scheme: dark;
}

/* Shop themes (equipped in the Souvenir Shop). Brand colours stay; backgrounds take the mood. */
:root[data-palette="sunset"] {
  --bg: #FFF3E8;
  --surface-2: #FFE9D8;
  --border: #F2D6C0;
  --border-light: #F8E6D6;
  --coral: #F0503F;
  --sunny: #FFA51E;
}
:root[data-palette="ocean"] {
  --coral-fill: #00809D;
  --coral-ink: #007794;
  --bg: #EEF8FB;
  --surface-2: #E0F2F7;
  --border: #C9E6EE;
  --border-light: #DCEFF4;
  --coral: #0E8FAA;
  --coral-light: #3FC3DE;
}
:root[data-theme="dark"][data-palette="sunset"] { --bg: #1C1411; --surface: #2A1F1A; --surface-2: #35271F; --border: #4A372B; --border-light: #3A2B22; }
:root[data-theme="dark"][data-palette="ocean"] { --bg: #0D171B; --surface: #172429; --surface-2: #1E2F35; --border: #2C434B; --border-light: #23363D; --coral: #3FC3DE; --coral-ink: #7FD9EA; }
