/* Theme preview colors remain available while another theme is active. */
:root {
  --color-theme-halloween-2026-preview-primary: #f97316;
  --color-theme-halloween-2026-preview-secondary: #a855f7;
  --color-theme-halloween-2026-preview-tertiary: #120b16;
}

/* Halloween 2026 — seasonal event theme.
   Pumpkin orange primary, witch-purple accents, charcoal/black surfaces.
   A dark theme evoking jack-o'-lanterns, dusk and midnight mischief. */
:root[data-app-theme='halloween-2026'] {
  color-scheme: dark;

  /* Pokédex shell: editable without changing the application palette. */
  --color-pokedex-shell: #f97316;
  --color-pokedex-shell-light: #fb923c;
  --color-pokedex-shell-dark: #c2410e;
  --color-pokedex-shell-accent: #6b21a8;
  --color-pokedex-shell-accent-light: #9333ea;
  --color-pokedex-shell-accent-ink: #ffffff;
  --color-pokedex-shell-trim: #431407;
  --color-pokedex-shell-ink: #ffffff;
  --color-pokedex-highlight: #ffffff;
  --color-pokedex-control: #2a1f33;
  --color-pokedex-control-dark: #150d1a;

  /* Surfaces — charcoal-black base with a faint purple dusk undertone */
  --color-bg-base: #100a14;
  --color-bg-deep: #150d1a;
  --color-bg-surface: #1b1320;
  --color-bg-panel: #221826;
  --color-bg-card: #291d30;
  --color-bg-popover: #2f2237;
  --color-bg-elevated: #37283f;
  --color-bg-canvas: #0a060d;
  --color-bg-canvas-alt: #120b16;
  --color-bg-panel-subtle: #1c1322;
  --color-bg-hero: #1e1428;
  --color-bg-card-warm: #2a1c24;
  --color-bg-card-warm-alt: #2d1f2c;
  --color-bg-media: #322542;
  --color-bg-thumbnail: #3a2b4d;
  --color-bg-thumbnail-alt: #423156;
  --color-bg-placeholder: #3a2d45;
  --color-bg-success-edge: #14210f;
  --color-bg-danger-panel: #2e1519;
  --color-bg-step-inactive: #34263f;
  --color-bg-tech: #17111f;

  /* Content — warm-neutral light scale for strong contrast on charcoal */
  --color-text-primary: #f8f4f1;
  --color-text-strong: #f2ece7;
  --color-text-soft: #ddd3cd;
  --color-text-body: #c9beb8;
  --color-text-body-strong: #e6dcd5;
  --color-text-secondary: #a99e98;
  --color-text-caption: #8f847f;
  --color-text-caption-alt: #8f847f;
  --color-text-tertiary: #7d726d;
  --color-text-low: #6e645f;
  --color-text-muted: #625954;
  --color-text-subtle: #564e4a;
  --color-text-placeholder: #4b4440;
  --color-text-disabled: #3f3935;
  --color-text-ghost: #332e2c;
  --color-text-emphasis: #ffffff;
  --color-text-control: #c9beb8;
  --color-text-feature: #c4b8c8;
  --color-text-detail: #b0a5b2;
  --color-text-description: #a89ea4;
  --color-text-summary: #8f8489;
  --color-text-plan-label: #7d726d;
  --color-text-bulk: #a99e98;
  --color-text-code: #fdba74;
  --color-text-bulk-subtle: #8f847f;
  --color-text-scanner-label: #8a7e88;
  --color-text-confidence: #8f847f;
  --color-text-limit: #7d726d;
  --color-text-detected: #c4a2f5;
  --color-text-hint: #7d726d;
  --color-text-referral-note: #7d726d;
  --color-text-alert-note: #8f847f;
  --color-text-about-muted: #8f847f;
  --color-text-card: #d8cdc6;
  --color-text-card-alt: #d8cdc6;
  --color-text-search: #d4c9c2;
  --color-text-upload: #d0c5be;
  --color-text-scanner: #a099a4;
  --color-text-scanner-summary: #8a7e88;
  --color-text-alert-description: #b8aab0;
  --color-text-manual: #c0b0cc;
  --color-text-referral: #e2b878;
  --color-text-neutral: #c4b8c8;
  --color-on-accent: #1f0f05;
  --color-on-action-wishlist: #ffffff;
  --color-accent-text: var(--color-accent-primary-light);
  --color-account-highlight: #fb923c;
  --color-status-success-text: var(--color-success-soft);
  --color-status-warning-text: var(--color-warning-light);
  --color-status-danger-text: var(--color-danger-soft);

  /* Controls */
  --color-control-check-bg: var(--color-bg-elevated);
  --color-control-check-border: rgb(var(--rgb-overlay) / 18%);
  --color-control-check-border-hover: var(--color-accent-primary-light);
  --color-control-check-bg-checked: var(--color-accent-primary);
  --color-control-check-border-checked: var(--color-accent-primary-light);
  --color-control-check-mark: var(--color-on-accent);
  --color-scrollbar-track: rgb(var(--rgb-overlay) / 3%);
  --color-scrollbar-thumb: rgb(var(--rgb-accent-primary) / 42%);
  --color-scrollbar-thumb-hover: rgb(var(--rgb-accent-primary) / 68%);
  --color-control-field-bg: var(--color-bg-elevated);
  --color-control-field-border: rgb(var(--rgb-overlay) / 14%);
  --color-control-field-border-hover: var(--color-accent-primary-light);
  --color-control-menu-bg: var(--color-bg-popover);
  --color-control-option-hover: rgb(var(--rgb-accent-primary) / 12%);
  --color-control-option-selected: rgb(var(--rgb-accent-primary) / 20%);
  --color-control-stepper-bg: rgb(var(--rgb-overlay) / 5%);
  --color-control-stepper-hover: rgb(var(--rgb-accent-primary) / 16%);
  --color-control-slider-track: rgb(var(--rgb-overlay) / 13%);
  --color-control-slider-fill: var(--color-accent-primary);
  --color-control-slider-thumb: var(--color-accent-primary-light);
  --color-control-slider-thumb-ring: var(--color-bg-surface);

  /* Price badges */
  --color-price-tcgplayer-text: #dbeafe;
  --color-price-tcgplayer-bg: #1b2854;
  --color-price-tcgplayer-border: #60a5fa;
  --color-price-cardmarket-text: #fef3c7;
  --color-price-cardmarket-bg: #3b2608;
  --color-price-cardmarket-border: #f59e0b;

  /* Reacciones sociales (💗 me encanta, 👍 me gusta, ⭐ favorito). */
  --color-reaction-heart: #f472b6;
  --color-reaction-like: #c084fc;
  --color-reaction-star: #fbbf24;

  /* Product brand and application accents */
  --color-brand-primary: #f97316;
  --color-brand-primary-light: #fb923c;
  --color-brand-primary-dark: #c2410e;
  --color-brand-primary-deep: #7c2d12;
  --color-brand-soft: #ffedd5;
  --color-brand-muted: #fdba74;
  --color-brand-gold: #e8a13a;

  --color-brand-name-primary: var(--color-brand-primary-light);
  --color-brand-name-secondary: #ffffff;
  --color-brand-name-dark: var(--color-brand-primary-dark);

  --color-accent-primary: var(--color-brand-primary);
  --color-accent-primary-light: var(--color-brand-primary-light);
  --color-accent-primary-dark: var(--color-brand-primary-dark);
  --color-accent-primary-deep: var(--color-brand-primary-deep);
  --color-accent-primary-soft: var(--color-brand-soft);
  --color-accent-primary-muted: #fdba74;
  --color-accent-violet-soft: #d8b4fe;
  --color-accent-violet: #a855f7;
  --color-accent-secondary: #f5f3ff;
  --color-accent-secondary-light: #ffffff;
  --color-accent-tertiary: #a855f7;
  --color-accent-fuchsia: #e879f9;

  /* Functional actions */
  --color-action-wishlist: #f472b6;
  --color-action-wishlist-strong: #db2777;
  --color-action-wishlist-deep: #831843;
  --rgb-action-wishlist: 244 114 182;
  --rgb-action-wishlist-strong: 219 39 119;

  --color-action-destructive: #ef4444;
  --color-action-destructive-strong: #b91c1c;
  --color-action-destructive-deep: #7f1d1d;
  --rgb-action-destructive: 239 68 68;
  --rgb-action-destructive-strong: 185 28 28;

  --color-action-cancel: #a99e98;
  --rgb-action-cancel: 169 158 152;

  /* RGB channels */
  --rgb-overlay: 255 255 255;
  --rgb-shadow: 0 0 0;
  --rgb-white: 255 255 255;
  --rgb-black: 0 0 0;
  --rgb-bg-base: 16 10 20;
  --rgb-bg-deep: 21 13 26;
  --rgb-bg-surface: 27 19 32;
  --rgb-bg-void: 10 6 13;
  --rgb-bg-tech: 23 17 31;
  --rgb-champagne: 250 224 178;

  --rgb-accent-primary: 249 115 22;
  --rgb-accent-primary-200: 255 237 213;
  --rgb-accent-primary-300: 253 186 116;
  --rgb-accent-primary-light: 251 146 60;
  --rgb-accent-primary-dark: 194 65 14;
  --rgb-accent-secondary: 245 243 255;
  --rgb-accent-secondary-300: 233 213 255;
  --rgb-accent-secondary-500: 245 243 255;
  --rgb-accent-tertiary: 168 85 247;
  --rgb-accent-tertiary-300: 216 180 254;
  --rgb-accent-tertiary-400: 192 132 252;
  --rgb-accent-fuchsia: 232 121 249;

  /* Backwards-compatible aliases */
  --bg-base: var(--color-bg-base);
  --bg-surface: var(--color-bg-surface);
  --bg-elevated: var(--color-bg-elevated);
  --border: rgb(var(--rgb-overlay) / 9%);
  --text-primary: var(--color-text-primary);
  --text-secondary: var(--color-text-secondary);
  --text-muted: var(--color-text-disabled);
  --accent-cyan: var(--color-accent-secondary);
  --accent-purple: var(--color-accent-tertiary);
  --accent-pink: var(--color-action-wishlist);
}
