/* ═══════════════════════════════════════════════════════
   AestheticMaxxing — Design System CSS
   Dark-mode-first, pink-purple gradient brand
   ═══════════════════════════════════════════════════════ */

/* ── Reset & Base ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand Colors */
  --void: #0A0A0A;
  --card: #111111;
  --card-hover: #1A1A1A;
  --border: #222222;
  --border-glow: #333333;

  --pink: #F472B6;
  --pink-dim: #F472B640;
  --purple: #A855F7;
  --purple-dim: #A855F740;
  --green: #34D399;
  --green-dim: #34D39940;
  --blue: #60A5FA;
  --blue-dim: #60A5FA40;
  --gold: #FBBF24;
  --gold-dim: #FBBF2440;
  --red: #F87171;

  --text-primary: #F5F5F5;
  --text-secondary: #A0A0A0;
  --text-muted: #666666;

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #F472B6, #A855F7);
  --gradient-hero: linear-gradient(135deg, #0A0A0A 0%, #1a0a1a 50%, #0a0a1a 100%);
  --gradient-card: linear-gradient(145deg, #111111, #0d0d0d);

  /* Typography */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-glow-pink: 0 0 20px rgba(244,114,182,0.15);
  --shadow-glow-purple: 0 0 20px rgba(168,85,247,0.15);
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-display);
  background: var(--void);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--pink);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--purple); }

img { max-width: 100%; height: auto; }

/* ── Typography ────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.serif { font-family: var(--font-serif); font-style: italic; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--text-secondary); }

/* ── Layout ────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* ── Navigation ────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: var(--space-md) 0;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }

/* ── Cards ─────────────────────────────────────────── */
.card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.card-provider {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.card-provider .provider-name {
  font-size: 1.1rem;
  font-weight: 700;
}

.card-provider .provider-type {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Price Display ─────────────────────────────────── */
.price-hero {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

.price-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-xs);
}

.price-range {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
}

.price-range .min { color: var(--green); }
.price-range .max { color: var(--red); }
.price-range .dash { color: var(--text-muted); }

/* ── Price Bar (visual comparison) ─────────────────── */
.price-bar-container {
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.price-bar {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--gradient-brand);
  transition: width 0.5s ease;
}

.price-bar.cheap { background: var(--green); }
.price-bar.moderate { background: var(--gradient-brand); }
.price-bar.expensive { background: var(--red); }

/* ── Rating Stars ──────────────────────────────────── */
.stars {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 2px;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--gold-dim);
  color: var(--gold);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
}

.reviews-count {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ── Badges & Tags ─────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-pink { background: var(--pink-dim); color: var(--pink); }
.badge-purple { background: var(--purple-dim); color: var(--purple); }
.badge-green { background: var(--green-dim); color: var(--green); }
.badge-blue { background: var(--blue-dim); color: var(--blue); }
.badge-gold { background: var(--gold-dim); color: var(--gold); }

.tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ── Hero Section ──────────────────────────────────── */
.hero {
  background: var(--gradient-hero);
  padding: var(--space-3xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(244,114,182,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 { margin-bottom: var(--space-md); }
.hero p { color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* ── Search Bar ────────────────────────────────────── */
.search-bar {
  display: flex;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 600px;
  margin: var(--space-xl) auto 0;
  transition: border-color 0.3s;
}

.search-bar:focus-within {
  border-color: var(--pink);
  box-shadow: var(--shadow-glow-pink);
}

.search-bar input {
  flex: 1;
  padding: var(--space-md) var(--space-lg);
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
}

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

.search-bar button {
  padding: var(--space-md) var(--space-xl);
  background: var(--gradient-brand);
  border: none;
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}
.search-bar button:hover { opacity: 0.9; }

/* ── Data Table ────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  text-align: left;
  padding: var(--space-sm) var(--space-md);
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: var(--space-md);
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.data-table tr:hover { background: var(--card-hover); }

.data-table .price-cell {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--green);
}

/* ── Comparison Grid ───────────────────────────────── */
.vs-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.vs-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-muted);
  padding-top: var(--space-xl);
}

@media (max-width: 768px) {
  .vs-grid {
    grid-template-columns: 1fr;
  }
  .vs-divider { padding: var(--space-md) 0; }
}

/* ── Lead Gen CTA ──────────────────────────────────── */
.cta-box {
  background: var(--gradient-card);
  border: 1px solid var(--pink-dim);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  margin: var(--space-2xl) 0;
}

.cta-box h3 { margin-bottom: var(--space-sm); }
.cta-box p { color: var(--text-secondary); margin-bottom: var(--space-lg); }

.cta-form {
  display: flex;
  max-width: 400px;
  margin: 0 auto;
  gap: var(--space-sm);
}

.cta-form input {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  background: var(--void);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
}

.cta-form input:focus { border-color: var(--pink); }

.btn {
  padding: var(--space-sm) var(--space-lg);
  background: var(--gradient-brand);
  border: none;
  border-radius: var(--radius-sm);
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.btn:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--pink);
  color: var(--pink);
}
.btn-outline:hover { background: var(--pink-dim); }

/* ── Footer ────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--space-2xl) 0;
  margin-top: var(--space-3xl);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

.footer h4 {
  color: var(--text-secondary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

.footer ul { list-style: none; }
.footer li { margin-bottom: var(--space-sm); }
.footer a { color: var(--text-muted); }
.footer a:hover { color: var(--text-primary); }

/* ── Schema/SEO (hidden) ──────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ── Breadcrumbs ───────────────────────────────────── */
.breadcrumbs {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--pink); }
.breadcrumbs .separator { color: var(--text-muted); }

/* ── Section Headers ───────────────────────────────── */
.section {
  padding: var(--space-2xl) 0;
}

.section-header {
  margin-bottom: var(--space-xl);
}

.section-header h2 { margin-bottom: var(--space-xs); }
.section-header p { color: var(--text-secondary); }

/* ── Stat Cards ────────────────────────────────────── */
.stat-card {
  text-align: center;
  padding: var(--space-lg);
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Animations ────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 5px var(--pink-dim); }
  50% { box-shadow: 0 0 20px var(--pink-dim); }
}

/* ── Utility Classes ───────────────────────────────── */
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.text-center { text-align: center; }
.text-right { text-align: right; }
