/**
 * Razorweave Website - Theme Styles
 * Synthwave color system and typography foundation
 */

/* ===================================
   SYNTHWAVE COLOR SYSTEM
   =================================== */

:root {
  /* Core Synthwave Colors */
  --color-electric-blue: #00D9FF;
  --color-hot-pink: #FF006E;
  --color-deep-purple: #7B2CBF;

  /* Neutrals */
  --color-ink-black: #1A1A1A;
  --color-medium-gray: #6B6B6B;
  --color-border-gray: #E0E0E0;
  --color-light-gray: #F5F5F5;
  --color-white: #FFFFFF;

  /* Tinted Backgrounds */
  --color-light-blue: #E5FAFF;
  --color-light-pink: #FFE5F3;
  --color-light-purple: #F3E5FF;

  /* Semantic Colors */
  --color-success: #2D7A4F;
  --color-caution: #B88A2E;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 400ms ease;
}

/* ===================================
   DARK MODE COLORS
   =================================== */

body.dark-mode {
  /* Core Synthwave Colors (stay bright in dark mode) */
  --color-electric-blue: #00D9FF;
  --color-hot-pink: #FF006E;
  --color-deep-purple: #9D4EDD;

  /* Dark Neutrals */
  --color-ink-black: #E5E5E5;
  --color-medium-gray: #A0A0A0;
  --color-border-gray: #333333;
  --color-light-gray: #0F0F0F;
  --color-white: #000000;

  /* Tinted Backgrounds (darker) */
  --color-light-blue: #1A1A2E;
  --color-light-pink: #2A1A2A;
  --color-light-purple: #221A2E;

  /* Semantic Colors */
  --color-success: #39FF14;
  --color-caution: #FFB347;
}

/* Always dark header on home page */
body.home-page .site-header {
  background: #1A1A2E;
}

body.home-page .site-logo {
  color: #FFFFFF;
}

body.home-page .site-nav a {
  color: #FFFFFF;
}

body.home-page .site-nav a:hover {
  background: var(--color-hot-pink);
  color: #FFFFFF;
}

body.home-page .site-nav a.active {
  border-bottom-color: var(--color-hot-pink);
}

body.home-page .nav-toggle span {
  background: #FFFFFF;
}

/* Keep hero text white on home page */
body.home-page .hero p {
  color: #FFFFFF;
}

/* Darker cards in dark mode */
body.dark-mode .card {
  background: #0A0A0A;
}

/* Hide card corner decorations in dark mode */
body.dark-mode .card-corner {
  display: none;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.125rem; /* 18px base */
  line-height: 1.7;
  color: var(--color-ink-black);
  background: var(--color-white);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  line-height: 1.2;
  margin: 0;
  font-weight: 700;
}

h1 {
  font-size: 3.5rem; /* 56px */
  color: var(--color-electric-blue);
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.5rem; /* 40px */
  color: var(--color-electric-blue);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.75rem; /* 28px */
  color: var(--color-hot-pink);
}

h4 {
  font-size: 1.25rem; /* 20px */
  color: var(--color-hot-pink);
  font-weight: 600;
}

p {
  margin: 0 0 var(--spacing-md) 0;
}

a {
  color: var(--color-electric-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-hot-pink);
}

/* ===================================
   UTILITIES
   =================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.text-center {
  text-align: center;
}

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

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

@media (max-width: 768px) {
  body {
    font-size: 1rem; /* 16px on mobile */
  }

  h1 {
    font-size: 2.5rem; /* 40px */
  }

  h2 {
    font-size: 2rem; /* 32px */
  }

  h3 {
    font-size: 1.5rem; /* 24px */
  }

  .container {
    padding: 0 var(--spacing-md);
  }
}
