/* ============================================
   BEYOND THE SALE - COMPLETE MODERN DESIGN
   All-in-one stylesheet with design system integrated
   ============================================ */

/* ========== DESIGN SYSTEM VARIABLES ========== */
:root {
  /* Primary Colors */
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-900: #1e3a8a;

  /* Secondary Colors */
  --secondary-500: #14b8a6;
  --secondary-600: #0d9488;

  /* Neutral */
  --neutral-100: #f5f5f5;
  --neutral-200: #e5e5e5;
  --neutral-600: #525252;
  --neutral-700: #404040;
  --neutral-900: #171717;

  /* Semantic */
  --success: #10b981;
  --error: #ef4444;

  /* Backgrounds & Text - Light Mode */
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --border-light: #e5e7eb;

  /* 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);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  /* Spacing */
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Border Radius */
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode */
[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --border-light: #334155;
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
}

/* ========== BASE STYLES ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color var(--transition), color var(--transition);
}

/* ========== THEME TOGGLE BUTTON ========== */
.theme-toggle {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 1000;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  background: var(--primary-50);
}

[data-theme="dark"] .theme-toggle:hover {
  background: var(--primary-900);
}

.theme-toggle svg {
  color: var(--text-primary);
  transition: all var(--transition);
}

/* ========== HEADER ========== */
header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] header {
  background: rgba(30, 41, 59, 0.8);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-4) var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Logo */
.logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  gap: var(--space-6);
  align-items: center;
  flex-wrap: wrap;
}

nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  position: relative;
}

nav a:hover {
  color: var(--primary-600);
  background: var(--primary-50);
}

[data-theme="dark"] nav a:hover {
  background: var(--primary-900);
}

nav a.active {
  color: var(--primary-600);
}

/* Date Display */
.date-display {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: var(--space-2) var(--space-4);
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
}

/* ========== HERO SECTION ========== */
.hero {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--secondary-500) 100%);
  color: white;
  padding: 5rem var(--space-6);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: var(--space-6);
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: var(--space-8);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
  line-height: 1.7;
}

/* CTA Button */
.cta-button {
  display: inline-block;
  padding: var(--space-4) var(--space-8);
  font-size: 1.125rem;
  font-weight: 600;
  background: white;
  color: var(--primary-700);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: var(--shadow-lg);
}

.cta-button:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-xl);
}

.cta-button:active {
  transform: translateY(0) scale(1);
}

/* ========== CONTAINER ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ========== SECTIONS ========== */
section {
  padding: var(--space-20) var(--space-6);
}

section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--space-4);
  color: var(--text-primary);
  text-align: center;
}

section > .container > p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto var(--space-12);
  text-align: center;
  line-height: 1.7;
}

/* ========== FEATURE CARDS ========== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.feature-card {
  background: var(--bg-primary);
  padding: var(--space-8);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-600), var(--secondary-500));
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  opacity: 0;
  transition: opacity var(--transition);
}

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

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-500);
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-4);
  color: var(--primary-700);
}

[data-theme="dark"] .feature-card h3 {
  color: var(--primary-500);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========== FOOTER ========== */
footer {
  background: var(--bg-tertiary);
  padding: var(--space-12) var(--space-6);
  margin-top: var(--space-20);
  border-top: 1px solid var(--border-light);
  text-align: center;
}

footer p {
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

footer a {
  color: var(--primary-600);
  text-decoration: none;
  transition: color var(--transition);
}

footer a:hover {
  color: var(--primary-700);
  text-decoration: underline;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  section h2 {
    font-size: 1.875rem;
  }

  .features {
    grid-template-columns: 1fr;
  }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-card {
  animation: fadeInUp 0.5s ease-out;
  animation-fill-mode: both;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

/* ========== UTILITIES ========== */
.transition-colors {
  transition: background-color var(--transition), color var(--transition);
}
