/*
 * Elastic Horizon - Design Tokens
 * CSS Custom Properties for consistent styling
 */

:root {
  /* ========================================
     PRIMARY COLORS (Keep Existing Brand)
     ======================================== */
  --red-primary: #dd3333;
  --blue-accent: #2EA3F2;

  /* ========================================
     PLAYFUL ACCENT COLORS (New)
     ======================================== */
  --orange-playful: #FFB84D;
  --yellow-bright: #FFE066;
  --pink-soft: #FFD6E8;
  --purple-magic: #B794F6;
  --green-nature: #7FD8BE;

  /* ========================================
     NEUTRAL COLORS
     ======================================== */
  --cream-warm: #FFFEF9;
  --cream-dark: #F5F4EF;
  --gray-text: #333333;
  --gray-light: #666666;
  --gray-lighter: #999999;
  --white-pure: #FFFFFF;
  --background-light: #f5f5f5;
  --footer-dark: #222222;

  /* ========================================
     GRADIENTS
     ======================================== */
  --gradient-hero: linear-gradient(135deg, var(--cream-warm) 0%, var(--pink-soft) 100%);
  --gradient-cta: linear-gradient(135deg, var(--red-primary) 0%, var(--orange-playful) 100%);
  --gradient-magic: linear-gradient(135deg, var(--purple-magic) 0%, var(--pink-soft) 100%);

  /* ========================================
     TYPOGRAPHY - Sophisticated Serif Fonts Only
     ======================================== */
  /* Font Families */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-accent: 'Crimson Pro', Georgia, serif;
  --font-primary: 'Lora', Georgia, serif;

  /* Font Sizes */
  --font-size-xs: 0.75rem;      /* 12px */
  --font-size-sm: 0.875rem;     /* 14px */
  --font-size-base: 1rem;       /* 16px */
  --font-size-md: 1.125rem;     /* 18px */
  --font-size-lg: 1.25rem;      /* 20px */
  --font-size-xl: 1.5rem;       /* 24px */
  --font-size-2xl: 2rem;        /* 32px */
  --font-size-3xl: 2.5rem;      /* 40px */
  --font-size-4xl: 3rem;        /* 48px */
  --font-size-5xl: 3.5rem;      /* 56px */

  /* Font Weights */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  /* Line Heights */
  --line-height-tight: 1.1;
  --line-height-snug: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;
  --line-height-loose: 1.9;

  /* ========================================
     SPACING SCALE
     ======================================== */
  --spacing-1: 0.25rem;   /* 4px */
  --spacing-2: 0.5rem;    /* 8px */
  --spacing-3: 0.75rem;   /* 12px */
  --spacing-4: 1rem;      /* 16px */
  --spacing-5: 1.25rem;   /* 20px */
  --spacing-6: 1.5rem;    /* 24px */
  --spacing-8: 2rem;      /* 32px */
  --spacing-10: 2.5rem;   /* 40px */
  --spacing-12: 3rem;     /* 48px */
  --spacing-16: 4rem;     /* 64px */
  --spacing-20: 5rem;     /* 80px */
  --spacing-24: 6rem;     /* 96px */
  --spacing-32: 8rem;     /* 128px */

  /* Section Padding */
  --section-padding: 4rem;        /* 64px - default */
  --section-padding-lg: 6rem;     /* 96px - large screens */
  --section-padding-sm: 3rem;     /* 48px - small screens */

  /* ========================================
     BORDERS & RADIUS
     ======================================== */
  --border-radius-sm: 0.25rem;    /* 4px */
  --border-radius-md: 0.5rem;     /* 8px */
  --border-radius-lg: 1rem;       /* 16px */
  --border-radius-xl: 1.5rem;     /* 24px */
  --border-radius-full: 9999px;   /* Fully rounded */

  --border-width-thin: 1px;
  --border-width-medium: 2px;
  --border-width-thick: 3px;

  /* ========================================
     SHADOWS
     ======================================== */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Colored Shadows (for hover effects) */
  --shadow-red: 0 10px 20px rgba(221, 51, 51, 0.3);
  --shadow-blue: 0 10px 20px rgba(46, 163, 242, 0.3);
  --shadow-orange: 0 10px 20px rgba(255, 184, 77, 0.3);

  /* ========================================
     Z-INDEX LAYERS
     ======================================== */
  --z-index-below: -1;
  --z-index-normal: 1;
  --z-index-dropdown: 100;
  --z-index-sticky: 200;
  --z-index-fixed: 300;
  --z-index-modal-backdrop: 400;
  --z-index-modal: 500;
  --z-index-popover: 600;
  --z-index-tooltip: 700;

  /* ========================================
     TRANSITIONS & ANIMATIONS
     ======================================== */
  --transition-fast: 0.15s;
  --transition-base: 0.3s;
  --transition-slow: 0.5s;
  --transition-slower: 0.8s;

  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* ========================================
     BREAKPOINTS (for JS access)
     ======================================== */
  --breakpoint-mobile: 600px;
  --breakpoint-tablet: 768px;
  --breakpoint-desktop: 1024px;
  --breakpoint-large: 1440px;
  --breakpoint-xlarge: 1920px;

  /* ========================================
     CONTAINER WIDTHS
     ======================================== */
  --container-max-width: 1080px;
  --container-width: 80%;
  --container-padding: var(--spacing-4);

  /* ========================================
     INTERACTIVE ELEMENT SIZES
     ======================================== */
  --button-padding-x: 2.5rem;   /* 40px */
  --button-padding-y: 0.9375rem; /* 15px */
  --button-height: 48px;
  --button-height-sm: 36px;
  --button-height-lg: 56px;

  --input-height: 48px;
  --input-padding-x: 1rem;
  --input-padding-y: 0.75rem;

  /* ========================================
     GRID & LAYOUT
     ======================================== */
  --grid-gap: 1.875rem;         /* 30px */
  --grid-gap-sm: 1rem;          /* 16px */
  --grid-gap-lg: 3rem;          /* 48px */

  --column-min-width: 300px;    /* For auto-fit grids */

  /* ========================================
     OPACITY VALUES
     ======================================== */
  --opacity-disabled: 0.5;
  --opacity-hover: 0.9;
  --opacity-overlay: 0.3;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

/* Mobile - Reduce spacing and font sizes */
@media (max-width: 600px) {
  :root {
    --section-padding: 3rem;      /* 48px */
    --font-size-3xl: 2rem;        /* 32px */
    --font-size-4xl: 2.5rem;      /* 40px */
    --font-size-5xl: 3rem;        /* 48px */
  }
}

/* Tablet - Standard spacing */
@media (min-width: 601px) and (max-width: 1023px) {
  :root {
    --section-padding: 4rem;      /* 64px */
  }
}

/* Desktop & Large - Increase spacing */
@media (min-width: 1024px) {
  :root {
    --section-padding: 6rem;      /* 96px */
  }
}

/* ========================================
   DARK MODE SUPPORT (Future)
   ======================================== */
/*
@media (prefers-color-scheme: dark) {
  :root {
    --cream-warm: #1a1a1a;
    --cream-dark: #2a2a2a;
    --gray-text: #f0f0f0;
    --gray-light: #d0d0d0;
  }
}
*/

/* ========================================
   REDUCED MOTION SUPPORT
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0.01ms;
    --transition-base: 0.01ms;
    --transition-slow: 0.01ms;
    --transition-slower: 0.01ms;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
