/**
 * Taevakera Design System - Light Editorial Theme
 * Minimal, refined, magazine-inspired aesthetics
 */

:root {
  /* ===========================================
     COLOR PALETTE - Light Editorial
     =========================================== */

  /* Primary - Soft charcoal for text and accents */
  --color-primary: #1c1c1e;
  --color-primary-light: #3a3a3c;
  --color-primary-dark: #000000;

  /* Secondary - Warm gray tones */
  --color-secondary: #636366;
  --color-secondary-light: #8e8e93;
  --color-secondary-dark: #48484a;

  /* Accent - Subtle warm terracotta */
  --color-accent: #c45d4a;
  --color-accent-light: #d4756a;
  --color-accent-dark: #a14836;

  /* Background - Warm off-whites */
  --color-background: #fafafa;
  --color-background-alt: #f5f5f5;
  --color-background-dark: #1c1c1e;
  --color-surface: #ffffff;
  --color-surface-elevated: #ffffff;

  /* Text Colors */
  --color-text: #1c1c1e;
  --color-text-secondary: #636366;
  --color-text-muted: #aeaeb2;
  --color-text-inverse: #ffffff;

  /* Border Colors - Very subtle */
  --color-border: #e5e5e7;
  --color-border-light: #f2f2f7;
  --color-border-dark: #d1d1d6;

  /* Semantic Colors - Muted tones */
  --color-success: #32a852;
  --color-success-light: #e8f5eb;
  --color-warning: #e8a33c;
  --color-warning-light: #fef4e4;
  --color-error: #d64545;
  --color-error-light: #fbe8e8;
  --color-info: #4a90d9;
  --color-info-light: #e8f1fb;

  /* Star Map Theme Colors (used in editor previews) */
  --starmap-bg: #0c0f14;
  --starmap-surface: #1a1d24;

  /* Admin Gray Scale Aliases (for backward compatibility) */
  --admin-gray-50: #fafafa;
  --admin-gray-100: #f5f5f5;
  --admin-gray-200: #e5e5e7;
  --admin-gray-300: #d1d1d6;
  --admin-gray-400: #aeaeb2;
  --admin-gray-500: #8e8e93;
  --admin-gray-600: #636366;
  --admin-gray-700: #48484a;

  /* ===========================================
     FONTS - Change here to update everywhere
     =========================================== */

  /* Font URL (for reference - actual import in HTML/PHP files) */
  /* --font-url: "https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&display=swap"; */

  /* Font Families */
  --font-display: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --font-primary: 'Inter', sans-serif;
  --font-mono: var(--font-primary);  /* Alias to primary - no separate mono */

  /* Font Sizes */
  --font-size-xs: 0.875rem;     /* ~14px (was 11px) */
  --font-size-sm: 1rem;          /* 16px (was 13px) */
  --font-size-base: 1.1875rem;  /* ~19px (was 15px) */
  --font-size-lg: 1.3125rem;    /* ~21px (was 17px) */
  --font-size-xl: 1.5625rem;    /* 25px (was 20px) */
  --font-size-2xl: 2rem;        /* 32px (was 26px) */
  --font-size-3xl: 2.625rem;    /* 42px (was 34px) */
  --font-size-4xl: 3.4375rem;   /* 55px (was 44px) */
  --font-size-5xl: 4.375rem;    /* 70px (was 56px) */

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

  /* Line Heights */
  --line-height-tight: 1.2;
  --line-height-snug: 1.35;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.65;
  --line-height-loose: 1.8;

  /* Letter Spacing */
  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.02em;
  --letter-spacing-wider: 0.06em;
  --letter-spacing-widest: 0.12em;

  /* ===========================================
     SPACING - Generous whitespace
     =========================================== */

  --spacing-px: 1px;
  --spacing-0: 0;
  --spacing-0-5: 0.125rem;  /* 2px */
  --spacing-1: 0.25rem;     /* 4px */
  --spacing-1-5: 0.375rem;  /* 6px */
  --spacing-2: 0.5rem;      /* 8px */
  --spacing-2-5: 0.625rem;  /* 10px */
  --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-14: 3.5rem;     /* 56px */
  --spacing-16: 4rem;       /* 64px */
  --spacing-20: 5rem;       /* 80px */
  --spacing-24: 6rem;       /* 96px */

  /* ===========================================
     BORDER RADIUS - Subtle curves
     =========================================== */

  --radius-none: 0;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --radius-3xl: 24px;
  --radius-full: 9999px;

  /* ===========================================
     SHADOWS - Soft and subtle
     =========================================== */

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 8px -2px rgba(0, 0, 0, 0.06), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.08), 0 4px 8px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 40px -8px rgba(0, 0, 0, 0.1), 0 8px 16px -4px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 32px 64px -12px rgba(0, 0, 0, 0.14);
  --shadow-inner: inset 0 1px 2px rgba(0, 0, 0, 0.05);

  /* Elevated shadows for modals */
  --shadow-modal: 0 24px 48px -12px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.05);

  /* ===========================================
     TRANSITIONS - Smooth and refined
     =========================================== */

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slower: 600ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Timing Functions */
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.45, 0, 0.15, 1);

  /* ===========================================
     Z-INDEX LAYERS
     =========================================== */

  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
  --z-toast: 10000;

  /* ===========================================
     BREAKPOINTS
     =========================================== */

  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;

  /* ===========================================
     CONTAINER WIDTHS
     =========================================== */

  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1200px;
  --container-2xl: 1400px;

  /* ===========================================
     ASPECT RATIOS
     =========================================== */

  --aspect-square: 1 / 1;
  --aspect-video: 16 / 9;
  --aspect-poster-small: 3 / 4;
  --aspect-poster-medium: 5 / 7;
  --aspect-poster-large: 7 / 10;

  /* ===========================================
     MODAL SIZES
     =========================================== */

  --modal-sm: 400px;
  --modal-md: 600px;
  --modal-lg: 800px;
  --modal-xl: 1000px;
  --modal-editor: 90vw;
  --modal-max-height: 85vh;

  /* ===========================================
     CART DRAWER
     =========================================== */

  --drawer-width: 320px;
  --drawer-width-mobile: 100vw;

  /* ===========================================
     HERO SECTION - Bold & Modern
     =========================================== */

  --hero-display-size: clamp(2.5rem, 8vw, 5.5rem);
  --hero-display-size-secondary: clamp(1.5rem, 4vw, 3rem);
  --hero-tagline-size: clamp(1rem, 2.5vw, 1.5rem);
  --hero-min-height: min(100vh, 900px);
  --hero-bg-image: url('/images/hero-bg.jpg');
}

/* Dark mode - for star map preview areas */
[data-theme="dark"],
.theme-dark {
  --color-background: #1c1c1e;
  --color-surface: #2c2c2e;
  --color-text: #f2f2f7;
  --color-text-secondary: #aeaeb2;
  --color-border: #3a3a3c;
}
