/* ============================================
   TINYLOVE PHOTOGRAPHY — DESIGN TOKENS
   Dark premium theme · Electric blue accent
   ============================================ */

:root {
  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm:   0.375rem;
  --radius-md:   0.5rem;
  --radius-lg:   0.75rem;
  --radius-xl:   1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.4,  0, 1, 1);
  --ease-in-out: cubic-bezier(0.4,  0, 0.2, 1);

  /* Content widths */
  --content-narrow:  640px;
  --content-default: 960px;
  --content-wide:    1200px;
}

/* ---- DARK (default) ---- */
:root,
[data-theme="dark"] {
  --color-bg:              #0a0b0f;
  --color-surface:         #0f111a;
  --color-surface-2:       #131520;
  --color-surface-offset:  #161825;
  --color-surface-dynamic: #1e2130;
  --color-divider:         #1d2035;
  --color-border:          #252840;

  --color-text:         #e8eaf4;
  --color-text-muted:   #8892b0;
  --color-text-faint:   #4a5278;
  --color-text-inverse: #0a0b0f;

  /* Electric Blue primary */
  --color-primary:          #3d9ef5;
  --color-primary-hover:    #5cb0ff;
  --color-primary-active:   #2a85e0;
  --color-primary-highlight: #0d1e36;
  --color-primary-glow:     rgba(61, 158, 245, 0.35);

  /* Neon Purple secondary */
  --color-secondary:        #a855f7;
  --color-secondary-hover:  #c084fc;
  --color-secondary-glow:   rgba(168, 85, 247, 0.3);

  /* Accent gradient */
  --gradient-accent:  linear-gradient(135deg, #3d9ef5 0%, #a855f7 100%);
  --gradient-hero:    linear-gradient(160deg, #0a0b0f 0%, #0f1525 50%, #130d1e 100%);
  --gradient-card:    linear-gradient(135deg, #0f111a 0%, #131525 100%);

  --color-success: #34d399;
  --color-error:   #f87171;
  --color-warning: #fbbf24;

  --shadow-sm:  0 1px 2px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 24px var(--color-primary-glow);
  --shadow-glow-purple: 0 0 24px var(--color-secondary-glow);

  /* Fonts */
  --font-display: 'Clash Display', 'Inter', sans-serif;
  --font-body:    'Satoshi', 'Inter', sans-serif;
}

/* ---- LIGHT ---- */
[data-theme="light"] {
  --color-bg:              #f5f6fa;
  --color-surface:         #ffffff;
  --color-surface-2:       #f0f1f8;
  --color-surface-offset:  #eaebf5;
  --color-surface-dynamic: #e0e2f0;
  --color-divider:         #d5d8eb;
  --color-border:          #c8ccdf;

  --color-text:         #0e1020;
  --color-text-muted:   #4a5278;
  --color-text-faint:   #9099bf;
  --color-text-inverse: #f5f6fa;

  --color-primary:           #1a7fd4;
  --color-primary-hover:     #1568b8;
  --color-primary-active:    #1051a0;
  --color-primary-highlight: #ddeeff;
  --color-primary-glow:      rgba(26,127,212,0.2);

  --color-secondary:       #8b2fd4;
  --color-secondary-hover: #7a28be;
  --color-secondary-glow:  rgba(139,47,212,0.15);

  --gradient-accent: linear-gradient(135deg, #1a7fd4 0%, #8b2fd4 100%);
  --gradient-hero:   linear-gradient(160deg, #f5f6fa 0%, #eef0fa 50%, #f0edf8 100%);
  --gradient-card:   linear-gradient(135deg, #ffffff 0%, #f5f6fa 100%);

  --shadow-sm:  0 1px 2px rgba(0,0,50,0.06);
  --shadow-md:  0 4px 16px rgba(0,0,50,0.08);
  --shadow-lg:  0 12px 40px rgba(0,0,50,0.1);
  --shadow-glow: 0 0 24px var(--color-primary-glow);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --color-bg:              #f5f6fa;
    --color-surface:         #ffffff;
    --color-surface-2:       #f0f1f8;
    --color-surface-offset:  #eaebf5;
    --color-surface-dynamic: #e0e2f0;
    --color-divider:         #d5d8eb;
    --color-border:          #c8ccdf;
    --color-text:            #0e1020;
    --color-text-muted:      #4a5278;
    --color-text-faint:      #9099bf;
    --color-text-inverse:    #f5f6fa;
    --color-primary:         #1a7fd4;
    --color-primary-hover:   #1568b8;
    --color-primary-active:  #1051a0;
    --color-primary-highlight: #ddeeff;
    --color-primary-glow:    rgba(26,127,212,0.2);
    --color-secondary:       #8b2fd4;
    --color-secondary-hover: #7a28be;
    --color-secondary-glow:  rgba(139,47,212,0.15);
    --gradient-accent: linear-gradient(135deg, #1a7fd4 0%, #8b2fd4 100%);
    --gradient-hero:   linear-gradient(160deg, #f5f6fa 0%, #eef0fa 50%, #f0edf8 100%);
    --gradient-card:   linear-gradient(135deg, #ffffff 0%, #f5f6fa 100%);
    --shadow-sm:  0 1px 2px rgba(0,0,50,0.06);
    --shadow-md:  0 4px 16px rgba(0,0,50,0.08);
    --shadow-lg:  0 12px 40px rgba(0,0,50,0.1);
    --shadow-glow: 0 0 24px var(--color-primary-glow);
  }
}
