/*
 * Design Tokens
 * These match theme.json for seamless conversion to Gutenberg
 */

:root,
.theme-dark {
  color: var(--color-text);
  /* Colors */
  --color-primary: #E63C97;
  --color-primary-light: #818CF8;
  --color-primary-dark: #fff;
  --color-secondary: #5A5AFF;
  --color-accent: #8C47D2;
  --color-success: #10B981;
  --color-danger: #E5484D;        /* borders / focus rings */
  --color-danger-text: #FF8A8D;   /* danger text on dark surfaces */

  --color-bg: #030306;
  --color-bg-glass: rgba(3, 3, 6, 0.9);
  --color-surface: #272727;
  --color-surface-elevated: #17181C;

  --color-surface-light: #2D2D4A;

  --color-border: #3D3D5C;
  --color-border-light: #4D4D6D;

  --color-text: #FFFFFF;
  --color-text-secondary: #d0d0e1;
  --color-text-muted: #6B6B80;

  --logo-filter: none;

  --carousel-card-background-mask: linear-gradient(to right, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 40%, rgba(0, 0, 0, 1) 80%);
  --carousel-card-background-mask-half-width: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 1) 100%);
  --carousel-card-background-mask-bottom-to-top: linear-gradient(to top, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 30%, rgba(0, 0, 0, 1) 60%);

  --carousel-card-background-mask-top-to-bottom: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 1) 100%);


  --small-mask-bottom-to-top: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 10%, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 1) 100%);

  --small-mask-top-to-bottom: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 10%, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 1) 100%);

  /* accent-hue polarity (dark): surfaces sit a touch ABOVE the accent
     lightness, text/glow lift further. Consumed by the derivation in
     layout.css. See .accent-hue there for the full explanation. */
  --sc-l-bg: 4%;          /* card body lightness delta            */
  --sc-l-highlight: 14%;  /* card top-highlight lightness delta   */
  --sc-s-highlight: -10%; /* highlight saturation delta           */
  --sc-l-text: 32%;       /* accent text lightness delta          */
  --sc-l-mid: 0%;         /* mid accent lightness delta           */
  --sc-l-glow: 20%;       /* glow lightness delta                 */
  --sc-a-glow: 0.5;       /* glow alpha                           */
}

.theme-light {
  color: var(--color-text);
  /* Colors */
  --color-primary: #E63C97;
  --color-primary-light: #818CF8;
  --color-primary-dark: #111;
  --color-secondary: #5A5AFF;
  --color-accent: #8C47D2;
  --color-success: #10B981;
  --color-danger: #E5484D;        /* borders / focus rings */
  --color-danger-text: #B42318;   /* danger text on light surfaces (AA) */

  --color-bg: #f8f8f8;
  --color-bg-glass: rgba(255, 255, 255, 1);
  --color-surface: #F4F4F5;
  --color-surface-elevated: #FFFFFF;

  --color-surface-light: #E4E4E7;

  --color-border: #E4E4E7;
  --color-border-light: #D4D4D8;

  --color-text: #030306;
  --color-text-secondary: #3F3F46;
  --color-text-muted: #71717A;

  --logo-filter: invert(1) brightness(0);

  --carousel-card-background-mask: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .5) 80%);

  /* accent-hue polarity (light): the same deltas run the other way —
     surfaces are pushed toward white and the accent text darkens so it
     stays readable. A low --accent-l therefore yields a near-white card
     instead of a near-black one. */
  --sc-l-bg: 88%;         /* accent-l 5% → ~93% (near-white tint)  */
  --sc-l-highlight: 93%;  /* top highlight a touch brighter        */
  --sc-s-highlight: -10%;
  --sc-l-text: 18%;       /* accent-l 5% → ~23% (dark, readable)   */
  --sc-l-mid: 40%;
  --sc-l-glow: 60%;
  --sc-a-glow: 0.4;
}

:root {
  /* Typography */
  --font-family: Satoshi-Variable, sans-serif;
  --font-mono: monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.15rem;
  --text-5xl: 2.25rem;
  --text-6xl: 4rem;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-6xl: 8rem;

  /* Border Radius */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-xl: 8px;
  --radius-1xl: 10px;
  --radius-2xl: 12px;
  --radius-3xl: 14px;
  --radius-4xl: 16px;
  --radius-6xl: 32px;
  --radius-8xl: 48px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -10px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 0 64px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  /* Layout */
  --content-width: 900px;
  --wide-width: 1600px;
}


@media (max-width: 500px) {

  :root {
  /* Typography */
  --font-family: Satoshi-Variable, sans-serif;
  --font-mono: monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.15rem;
  --text-5xl: 2.25rem;
  --text-6xl: 4rem;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 10px;
  --space-md: 12px;
  --space-lg: 14px;
  --space-xl: 16px;
  --space-2xl: 18px;
  --space-3xl: 24px;
  --space-4xl: 36px;
  --space-6xl: 40px;

  /* Border Radius */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-xl: 8px;
  --radius-1xl: 10px;
  --radius-2xl: 12px;
  --radius-3xl: 14px;
  --radius-4xl: 16px;
  --radius-6xl: 18px;
  --radius-8xl: 48px;
  --radius-full: 9999px;

}

}