/* ==========================================================================
   NSFWREVIEW.COM - PREMIUM DESIGN SYSTEM
   Industry-leading design inspired by Linear, Stripe, Vercel
   Version: 2.0
   ========================================================================== */

/* ==========================================================================
   DESIGN TOKENS
   ========================================================================== */

:root {
  /* Color System - Premium Dark Theme */
  --bg-primary: #0A0A0F;
  --bg-secondary: #111118;
  --bg-tertiary: #1A1A24;
  --bg-elevated: rgba(255, 255, 255, 0.03);
  --bg-glass: rgba(255, 255, 255, 0.03);
  
  /* Accent Colors */
  --accent-primary: #A855F7;
  --accent-secondary: #7E22CE;
  --accent-tertiary: #6B21A8;
  --accent-glow: rgba(168, 85, 247, 0.4);
  --accent-glow-strong: rgba(168, 85, 247, 0.6);
  
  /* Gradient Definitions */
  --gradient-primary: linear-gradient(135deg, #A855F7 0%, #7E22CE 100%);
  --gradient-mesh: radial-gradient(at 40% 20%, hsla(280, 100%, 70%, 0.15) 0px, transparent 50%),
                   radial-gradient(at 80% 0%, hsla(260, 100%, 70%, 0.15) 0px, transparent 50%),
                   radial-gradient(at 0% 50%, hsla(300, 100%, 70%, 0.1) 0px, transparent 50%);
  --gradient-shimmer: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  
  /* Text Colors */
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-tertiary: rgba(255, 255, 255, 0.5);
  --text-muted: rgba(255, 255, 255, 0.4);
  --text-disabled: rgba(255, 255, 255, 0.3);
  
  /* Border & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(168, 85, 247, 0.3);
  
  /* Semantic Colors */
  --success: #10B981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --success-border: rgba(16, 185, 129, 0.3);
  
  --warning: #F59E0B;
  --warning-bg: rgba(245, 158, 11, 0.1);
  --warning-border: rgba(245, 158, 11, 0.3);
  
  --error: #EF4444;
  --error-bg: rgba(239, 68, 68, 0.1);
  --error-border: rgba(239, 68, 68, 0.3);
  
  --info: #3B82F6;
  --info-bg: rgba(59, 130, 246, 0.1);
  --info-border: rgba(59, 130, 246, 0.3);
  
  /* Typography System */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'SF Pro Display', 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Font Sizes - Premium Scale */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 2rem;        /* 32px */
  --text-4xl: 3rem;        /* 48px */
  --text-5xl: 4.5rem;      /* 72px */
  
  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.1;
  --leading-snug: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;
  --leading-loose: 2;
  
  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  
  /* Spacing System - 8px base */
  --space-0: 0;
  --space-1: 0.25rem;    /* 4px */
  --space-2: 0.5rem;     /* 8px */
  --space-3: 0.75rem;    /* 12px */
  --space-4: 1rem;       /* 16px */
  --space-5: 1.25rem;    /* 20px */
  --space-6: 1.5rem;     /* 24px */
  --space-8: 2rem;       /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */
  --space-32: 8rem;      /* 128px */
  
  /* Border Radius System */
  --radius-sm: 0.375rem;   /* 6px */
  --radius-md: 0.5rem;     /* 8px */
  --radius-lg: 0.75rem;    /* 12px */
  --radius-xl: 1rem;       /* 16px */
  --radius-2xl: 1.5rem;    /* 24px */
  --radius-3xl: 2rem;      /* 32px */
  --radius-full: 9999px;
  
  /* Shadows - Premium Depth */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 8px 0 rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 16px 0 rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 16px 32px 0 rgba(0, 0, 0, 0.7);
  --shadow-2xl: 0 24px 48px 0 rgba(0, 0, 0, 0.8);
  
  /* Glow Effects */
  --glow-sm: 0 0 10px var(--accent-glow);
  --glow-md: 0 0 20px var(--accent-glow);
  --glow-lg: 0 0 40px var(--accent-glow);
  --glow-xl: 0 0 80px var(--accent-glow-strong);
  
  /* Blur Values */
  --blur-sm: 4px;
  --blur-md: 8px;
  --blur-lg: 16px;
  --blur-xl: 24px;
  --blur-2xl: 40px;
  
  /* Timing Functions - Premium Easing */
  --ease-linear: linear;
  --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-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-elastic: cubic-bezier(0.68, -0.6, 0.32, 1.6);
  
  /* Transition Durations */
  --duration-instant: 100ms;
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 350ms;
  --duration-slower: 500ms;
  --duration-slowest: 750ms;
  
  /* Z-Index Scale */
  --z-base: 0;
  --z-dropdown: 1000;
  --z-sticky: 1100;
  --z-fixed: 1200;
  --z-modal-backdrop: 1300;
  --z-modal: 1400;
  --z-popover: 1500;
  --z-tooltip: 1600;
  
  /* Layout */
  --container-xs: 640px;
  --container-sm: 768px;
  --container-md: 1024px;
  --container-lg: 1280px;
  --container-xl: 1536px;
  --container-2xl: 1920px;
  
  /* Breakpoints (for JS) */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;
}

/* ==========================================================================
   PREMIUM TYPOGRAPHY
   ========================================================================== */

body {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Display Headings - Premium Style */
.display-1,
h1.display {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--font-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.display-2 {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-snug);
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

/* Heading System */
h1, .h1 {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-snug);
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

h2, .h2 {
  font-size: var(--text-3xl);
  font-weight: var(--font-semibold);
  line-height: var(--leading-snug);
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

h3, .h3 {
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  line-height: var(--leading-normal);
  color: var(--text-primary);
}

h4, .h4 {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  line-height: var(--leading-normal);
  color: var(--text-primary);
}

h5, .h5 {
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  line-height: var(--leading-normal);
  color: var(--text-primary);
}

h6, .h6 {
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  line-height: var(--leading-normal);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Gradient Text Effect */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Premium Number Styling */
.premium-number {
  font-feature-settings: 'tnum', 'ss01';
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   GLASSMORPHISM COMPONENTS
   ========================================================================== */

.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(var(--blur-2xl));
  -webkit-backdrop-filter: blur(var(--blur-2xl));
  border: 1px solid var(--border-default);
}

.glass-strong {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(var(--blur-2xl));
  -webkit-backdrop-filter: blur(var(--blur-2xl));
  border: 1px solid var(--border-strong);
}

.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(var(--blur-2xl));
  -webkit-backdrop-filter: blur(var(--blur-2xl));
  border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl);
  transition: all var(--duration-normal) var(--ease-premium);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl), var(--glow-md);
}

/* ==========================================================================
   PREMIUM BUTTONS
   ========================================================================== */

.btn-premium {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  min-height: 48px;
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  line-height: 1;
  color: var(--text-primary);
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-premium);
  box-shadow: var(--shadow-md), var(--glow-sm);
}

.btn-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-shimmer);
  transition: left var(--duration-slower) ease;
}

.btn-premium:hover::before {
  left: 100%;
}

.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl), var(--glow-lg);
}

.btn-premium:active {
  transform: translateY(0);
}

.btn-glass {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  min-height: 48px;
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  color: var(--text-primary);
  background: var(--bg-glass);
  backdrop-filter: blur(var(--blur-xl));
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-premium);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--glow-sm);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

/* Button Sizes */
.btn-sm {
  padding: var(--space-2) var(--space-4);
  min-height: 36px;
  font-size: var(--text-sm);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  min-height: 56px;
  font-size: var(--text-lg);
}

/* ==========================================================================
   PREMIUM CARDS
   ========================================================================== */

.card-premium {
  position: relative;
  background: var(--bg-glass);
  backdrop-filter: blur(var(--blur-2xl));
  border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  transition: all var(--duration-slow) var(--ease-premium);
  overflow: hidden;
}

.card-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.card-premium:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-accent);
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl), var(--glow-lg);
}

.card-premium:hover::before {
  opacity: 1;
}

/* Card with 3D Tilt Effect */
.card-tilt {
  transform-style: preserve-3d;
  transition: transform var(--duration-normal) var(--ease-premium);
}

.card-tilt:hover {
  transform: perspective(1000px) rotateX(2deg) rotateY(2deg) translateY(-8px);
}

/* ==========================================================================
   PREMIUM NAVIGATION
   ========================================================================== */

.nav-premium {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(var(--blur-2xl));
  -webkit-backdrop-filter: blur(var(--blur-2xl));
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--duration-normal) var(--ease-premium);
}

.nav-premium.scrolled {
  background: rgba(10, 10, 15, 0.95);
  border-bottom-color: var(--border-default);
  box-shadow: var(--shadow-lg);
}

.nav-link {
  position: relative;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transform: translateX(-50%);
  transition: width var(--duration-normal) var(--ease-premium);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ==========================================================================
   PREMIUM INPUT FIELDS
   ========================================================================== */

.input-premium {
  width: 100%;
  padding: var(--space-4);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--bg-glass);
  backdrop-filter: blur(var(--blur-xl));
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  outline: none;
  transition: all var(--duration-normal) var(--ease-premium);
}

.input-premium::placeholder {
  color: var(--text-muted);
}

.input-premium:focus {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-accent);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.1), var(--glow-sm);
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

/* Container System */
.container-premium {
  width: 100%;
  max-width: var(--container-lg);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.container-narrow {
  max-width: var(--container-md);
}

.container-wide {
  max-width: var(--container-xl);
}

/* Spacing Utilities */
.section-premium {
  padding-top: var(--space-32);
  padding-bottom: var(--space-32);
}

/* Text Alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Hover Effects */
.hover-lift {
  transition: transform var(--duration-normal) var(--ease-premium);
}

.hover-lift:hover {
  transform: translateY(-4px);
}

.hover-glow {
  transition: box-shadow var(--duration-normal) var(--ease-out);
}

.hover-glow:hover {
  box-shadow: var(--glow-lg);
}

/* Gradient Backgrounds */
.bg-gradient-mesh {
  background: var(--gradient-mesh);
}

.bg-gradient-primary {
  background: var(--gradient-primary);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1024px) {
  :root {
    --text-5xl: 3rem;
    --text-4xl: 2.5rem;
    --text-3xl: 1.75rem;
  }
  
  .section-premium {
    padding-top: var(--space-20);
    padding-bottom: var(--space-20);
  }
}

@media (max-width: 768px) {
  :root {
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
    --text-3xl: 1.5rem;
    --text-lg: 1rem;
  }
  
  body {
    font-size: var(--text-base);
  }
  
  .container-premium {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
  
  .section-premium {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }
  
  .card-premium {
    padding: var(--space-6);
  }
  
  .btn-premium,
  .btn-glass {
    width: 100%;
  }
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

/* Focus Visible - Beautiful but Accessible */
*:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --border-default: rgba(255, 255, 255, 0.3);
    --border-strong: rgba(255, 255, 255, 0.5);
  }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
  body {
    background: white;
    color: black;
  }
  
  .nav-premium,
  .btn-premium,
  .btn-glass {
    display: none;
  }
  
  .glass,
  .glass-card {
    background: white;
    border: 1px solid black;
  }
}

