/* ============================================
   PREMIUM TATTOO TEMPLATE - CSS VARIABLES
   Premium, atmospheric design system
   ============================================ */

:root {
  /* ===== FONTS ===== */
  --font-display: 'Oswald', 'Impact', sans-serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --heading-transform: uppercase;
  
  /* ===== COLORS - DARK THEME (DEFAULT) ===== */
  /* Dark backgrounds with depth - no flat blacks */
  --bg-primary: #0A0A0A;
  --bg-secondary: linear-gradient(180deg, #0F0F0F 0%, #0A0A0A 100%);
  --bg-tertiary: #141414;
  --bg-elevated: #1A1A1A;
  --bg-card: rgba(20, 20, 20, 0.8);
  
  /* Text colors */
  --text-primary: #F5F5F5;
  --text-secondary: #B8B8B8;
  --text-muted: #828282;
  --text-inverse: #0A0A0A;
  
  /* Accent color system - Crimson default */
  --accent: #C41E3A;
  --accent-hover: #A01628;
  --accent-light: #DC2E4A;
  --accent-glow: rgba(196, 30, 58, 0.4);
  --accent-subtle: rgba(196, 30, 58, 0.12);
  
  /* Secondary accent color system - Gold default */
  --accent-secondary: #D4AF37;
  --accent-secondary-hover: #E8C84A;
  --accent-secondary-subtle: rgba(212, 175, 55, 0.15);
  --accent-secondary-glow: rgba(212, 175, 55, 0.25);
  
  /* Borders with depth */
  --border-color: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --border-accent: rgba(196, 30, 58, 0.3);
  
  /* ===== TYPOGRAPHY ===== */
  /* Font weights */
  --weight-light: 300;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-black: 800;
  
  /* Font sizes - responsive scale */
  --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.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;
  --text-8xl: 6rem;
  
  /* Line heights */
  --leading-none: 1;
  --leading-tight: 1.15;
  --leading-snug: 1.35;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 1.85;
  
  /* Letter spacing */
  --tracking-tighter: -0.05em;
  --tracking-tight: -0.025em;
  --tracking-normal: 0em;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;
  --tracking-ultra: 0.15em;
  
  /* ===== SPACING - GENEROUS SCALE ===== */
  --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-14: 3.5rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --space-40: 10rem;
  --space-48: 12rem;
  
  /* ===== SIZING ===== */
  --max-width-xs: 320px;
  --max-width-sm: 640px;
  --max-width-md: 768px;
  --max-width-lg: 1024px;
  --max-width-xl: 1280px;
  --max-width-2xl: 1440px;
  --max-width-content: 1200px;
  --max-width-narrow: 800px;
  --max-width-wide: 1600px;
  
  /* ===== BORDERS ===== */
  /* Border widths */
  --border-1: 1px;
  --border-2: 2px;
  --border-3: 3px;
  --border-4: 4px;
  
  /* Border radius - premium rounded corners */
  --radius-sm: 0.375rem;
  --radius-base: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;
  
  /* ===== SHADOWS - RICH & ATMOSPHERIC ===== */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-base: 0 4px 8px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.5), 0 4px 8px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.6), 0 8px 16px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.7), 0 12px 24px rgba(0, 0, 0, 0.6);
  --shadow-2xl: 0 32px 64px rgba(0, 0, 0, 0.8), 0 16px 32px rgba(0, 0, 0, 0.7);
  
  /* Glow effects */
  --shadow-glow-sm: 0 0 12px var(--accent-glow);
  --shadow-glow: 0 0 24px var(--accent-glow), 0 0 48px rgba(196, 30, 58, 0.2);
  --shadow-glow-strong: 0 0 36px var(--accent-glow), 0 0 72px rgba(196, 30, 58, 0.25);
  
  /* Inner shadows for depth */
  --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-inner-lg: inset 0 4px 8px rgba(0, 0, 0, 0.5);
  
  /* ===== TRANSITIONS - SMOOTH & PURPOSEFUL ===== */
  --transition-instant: 100ms;
  --transition-fast: 200ms;
  --transition-base: 300ms;
  --transition-slow: 500ms;
  --transition-slowest: 700ms;
  
  /* Custom easing functions */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --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-spring: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* ===== Z-INDEX LAYERS ===== */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-overlay: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
  --z-toast: 800;
  --z-max: 9999;
  
  /* ===== COMPONENT SPECIFIC ===== */
  /* Header */
  --header-height: 80px;
  --header-bg: transparent;
  --header-bg-scrolled: rgba(10, 10, 10, 0.85);
  --header-blur: blur(12px);
  
  /* Forms */
  --input-bg: rgba(20, 20, 20, 0.6);
  --input-border: var(--border-color);
  --input-border-focus: var(--accent);
  --input-text: var(--text-primary);
  --input-placeholder: var(--text-muted);
  --input-padding: var(--space-4);
  --input-radius: var(--radius-md);
  
  /* Buttons */
  --btn-padding-x: var(--space-8);
  --btn-padding-y: var(--space-4);
  --btn-font-size: var(--text-base);
  --btn-radius: var(--radius-base);
  --btn-shadow: var(--shadow-sm);
  
  /* Cards */
  --card-bg: var(--bg-card);
  --card-border: var(--border-color);
  --card-padding: var(--space-8);
  --card-radius: var(--radius-lg);
  --card-shadow: var(--shadow-md);
  
  /* ===== EFFECTS ===== */
  /* Backdrop blur */
  --blur-xs: blur(2px);
  --blur-sm: blur(4px);
  --blur-base: blur(8px);
  --blur-md: blur(12px);
  --blur-lg: blur(16px);
  --blur-xl: blur(24px);
  --blur-2xl: blur(40px);
  
  /* Noise texture */
  --noise-opacity: 0.025;
  --noise-pattern: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ===== PRESET ACCENT COLORS ===== */
/* Crimson (Default) */
:root[data-accent="crimson"],
:root {
  --accent: #C41E3A;
  --accent-hover: #A01628;
  --accent-light: #DC2E4A;
  --accent-glow: rgba(196, 30, 58, 0.4);
  --accent-subtle: rgba(196, 30, 58, 0.12);
}

/* Hot Pink */
:root[data-accent="hot-pink"] {
  --accent: #FF006E;
  --accent-hover: #CC0058;
  --accent-light: #FF3388;
  --accent-glow: rgba(255, 0, 110, 0.4);
  --accent-subtle: rgba(255, 0, 110, 0.12);
}

/* Electric Blue */
:root[data-accent="electric-blue"] {
  --accent: #3A86FF;
  --accent-hover: #2E6BCC;
  --accent-light: #5A9FFF;
  --accent-glow: rgba(58, 134, 255, 0.4);
  --accent-subtle: rgba(58, 134, 255, 0.12);
}

/* Gold */
:root[data-accent="gold"] {
  --accent: #FFB800;
  --accent-hover: #CC9300;
  --accent-light: #FFCA33;
  --accent-glow: rgba(255, 184, 0, 0.4);
  --accent-subtle: rgba(255, 184, 0, 0.12);
}

/* Emerald */
:root[data-accent="emerald"] {
  --accent: #10B981;
  --accent-hover: #0D9467;
  --accent-light: #34D399;
  --accent-glow: rgba(16, 185, 129, 0.4);
  --accent-subtle: rgba(16, 185, 129, 0.12);
}

/* Blood Red */
:root[data-accent="blood-red"] {
  --accent: #DC2626;
  --accent-hover: #B91C1C;
  --accent-light: #EF4444;
  --accent-glow: rgba(220, 38, 38, 0.4);
  --accent-subtle: rgba(220, 38, 38, 0.12);
}

/* Purple */
:root[data-accent="purple"] {
  --accent: #8B5CF6;
  --accent-hover: #7C3AED;
  --accent-light: #A78BFA;
  --accent-glow: rgba(139, 92, 246, 0.4);
  --accent-subtle: rgba(139, 92, 246, 0.12);
}

/* White */
:root[data-accent="white"] {
  --accent: #F5F5F5;
  --accent-hover: #E0E0E0;
  --accent-light: #FFFFFF;
  --accent-glow: rgba(245, 245, 245, 0.3);
  --accent-subtle: rgba(245, 245, 245, 0.1);
}

/* ===== LIGHT THEME OVERRIDES ===== */
body.light-theme {
  --bg-primary: #F5F5F5;
  --bg-secondary: linear-gradient(180deg, #FAFAFA 0%, #F5F5F5 100%);
  --bg-tertiary: #FFFFFF;
  --bg-elevated: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.9);
  
  --text-primary: #0A0A0A;
  --text-secondary: #404040;
  --text-muted: #6A6A6A;
  --text-inverse: #F5F5F5;
  
  --border-color: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.15);
  
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-base: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.18);
  --shadow-2xl: 0 32px 64px rgba(0, 0, 0, 0.2);
  
  --input-bg: rgba(255, 255, 255, 0.8);
  --card-bg: rgba(255, 255, 255, 0.95);
  
  --header-bg-scrolled: rgba(255, 255, 255, 0.85);
  
  --noise-opacity: 0.015;
}

/* ===== DARK THEME (EXPLICIT CLASS) ===== */
body.dark-theme {
  /* Already default, but explicit for clarity */
  --bg-primary: #0A0A0A;
  --text-primary: #F5F5F5;
}
