/* Tablet Menu — product tokens.
   Global tokens first (colour primitives, type, spacing, radius, shadow), then the tablet menu's
   THEME layer: every surface reads a --tm-* role, and <html data-theme> swaps role → primitive.

   --tm-accent / --tm-on-accent are the VENUE's colours — the same pair the QR menu uses
   (Back Office → QR menyu → Tənzimləmələr → brend rəngi · düymə mətni rəngi). Clopos blue is only
   the default. Everything accent-tinted (soft fill, accent-as-text) is mixed from --tm-accent, so a
   venue colour flows through without new tokens. */
@import "../../../design-system/tokens/tokens.css";

:root,
[data-theme="light"] {
  --tm-bg:          var(--grey-100);      /* #F8F8FC — page */
  --tm-surface:     var(--white-500);     /* cards, dialog, popover, option list */
  --tm-surface-2:   var(--grey-200);      /* chips, pressed tool, image placeholder */
  --tm-border:      var(--grey-300);
  --tm-text:        var(--text-500);      /* #1D1D1D */
  --tm-text-2:      var(--text-300);      /* #666666 — descriptions, meta */
  --tm-text-3:      var(--grey-600);      /* #A4A4A9 — placeholder, sold-out */
  --tm-accent:      var(--primary-500);   /* venue brand colour (default Clopos blue) */
  --tm-on-accent:   var(--white-500);     /* venue button-text colour */
  --tm-accent-soft: color-mix(in srgb, var(--tm-accent) 14%, var(--white-500));   /* ≈ primary-50 */
  --tm-accent-text: color-mix(in srgb, var(--tm-accent) 75%, var(--black-main));  /* ≈ primary-700, 5.6:1 on bg */
  --tm-warn-bg:     var(--attention-200);   /* the global ramp re-tunes 200/800 under data-theme="dark" */
  --tm-warn-text:   var(--attention-800);   /* #A1500A light (5.7:1) · #FFE4AD dark */
  --tm-card-shadow: var(--shadow-md);
  --tm-toast-bg:    var(--text-500);
  --tm-toast-text:  var(--white-500);
  --tm-scrim:       rgba(3, 3, 3, .48);
}

[data-theme="dark"] {
  --tm-bg:          var(--brand-ink);       /* #1A1A2E */
  --tm-surface:     var(--secondary-800);   /* #282546 */
  --tm-surface-2:   var(--secondary-600);   /* #312E56 */
  --tm-border:      var(--secondary-400);   /* #47456D */
  --tm-text:        var(--white-500);
  --tm-text-2:      var(--secondary-50);    /* #A0A0B4 — 5.7:1 on surface */
  --tm-text-3:      var(--secondary-100);   /* #82809B */
  --tm-accent-soft: color-mix(in srgb, var(--tm-accent) 22%, transparent);
  --tm-accent-text: color-mix(in srgb, var(--tm-accent) 65%, var(--white-500));   /* ≈ primary-300 */
  --tm-card-shadow: none;
  --tm-toast-bg:    var(--white-500);
  --tm-toast-text:  var(--text-500);
  --tm-scrim:       rgba(3, 3, 3, .6);
}

/* Theme-independent — controls laid over photographs (splash, detail hero, category tiles). */
:root {
  --tm-glass-bg:     rgba(16, 16, 28, .42);
  --tm-glass-border: rgba(255, 255, 255, .2);
  --tm-photo-fade:   rgba(10, 10, 20, .92);
}
