/* TheaterCalc.com - Midnight Cinema Design System */
/* High-contrast, WCAG AAA compliant dark theme */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

/* CSS Variables - Midnight Cinema Palette */
:root {
  /* Background Colors */
  --bg-base: #0f1419;
  --bg-surface: #1a2332;
  --bg-elevated: #243042;
  --bg-hover: #2d3a4d;
  --border: #3d4f66;
  --border-subtle: #2d3a4d;

  /* Primary Accent - Vibrant Blue */
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --accent-dim: rgba(59, 130, 246, 0.15);
  --accent-glow: rgba(59, 130, 246, 0.25);

  /* Secondary Accent - Warm Amber */
  --amber: #f59e0b;
  --amber-hover: #fbbf24;
  --amber-dim: rgba(245, 158, 11, 0.15);

  /* Text Colors - High Contrast */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Semantic Colors */
  --success: #22c55e;
  --success-dim: rgba(34, 197, 94, 0.15);
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;

  /* Amazon Orange */
  --amazon: #ff9900;
  --amazon-hover: #ffad33;

  /* Typography */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;

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

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-accent: 0 4px 20px var(--accent-glow);

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

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle grain texture */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.015;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  color: var(--text-secondary);
  max-width: 65ch;
  font-size: 1rem;
  line-height: 1.75;
}

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

a:hover {
  color: var(--accent-hover);
}

strong {
  font-weight: 600;
  color: var(--text-primary);
}

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

.section {
  padding: var(--space-3xl) 0;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 20, 25, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

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

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-logo span {
  color: var(--accent);
}

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  padding: var(--space-sm) 0;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: var(--space-sm);
  font-size: 1.5rem;
}

/* Hero Section */
.hero {
  padding: var(--space-3xl) 0;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-base) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 600px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 60%);
  pointer-events: none;
}

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

.hero h1 {
  margin-bottom: var(--space-lg);
}

.hero h1 .highlight {
  color: var(--accent);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  line-height: 1.6;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #2563eb 100%);
  color: white;
  box-shadow: var(--shadow-md), var(--shadow-accent);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 8px 30px var(--accent-glow);
  color: white;
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
  color: var(--text-primary);
}

.btn-amazon {
  background: linear-gradient(135deg, var(--amazon) 0%, var(--amazon-hover) 100%);
  color: #111;
  font-weight: 700;
}

.btn-amazon:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 8px 24px rgba(255, 153, 0, 0.35);
  color: #111;
}

/* Cards */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-md);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

/* Calculator Card (for homepage) */
.calc-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-base);
  text-decoration: none;
  display: block;
}

.calc-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg), var(--shadow-accent);
}

.calc-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.calc-card h3 {
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.calc-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0 auto;
}

/* Product Card */
.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: all var(--transition-base);
}

.product-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.product-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-md);
}

.product-brand {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: var(--space-xs);
}

.product-badge {
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.product-spec {
  background: var(--bg-elevated);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.product-card .btn-amazon {
  margin-top: auto;
  width: 100%;
}

/* Calculator Form */
.calculator {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  max-width: 800px;
  margin: 0 auto;
}

.calculator-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.calculator-header h1 {
  margin-bottom: var(--space-sm);
}

.calculator-header p {
  margin: 0 auto;
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

.form-input,
.form-select {
  width: 100%;
  padding: var(--space-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

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

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-md) center;
  background-size: 20px;
  padding-right: 3rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
}

/* Range Slider */
.range-container {
  position: relative;
}

.range-input {
  width: 100%;
  height: 8px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast);
}

.range-input::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.range-input::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-md);
}

.range-value {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--accent);
  margin-top: var(--space-sm);
}

/* Results Panel */
.results {
  background: var(--bg-base);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-top: var(--space-xl);
  display: none;
}

.results.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

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

.results-header {
  text-align: center;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
}

.results-primary {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.results-secondary {
  color: var(--text-secondary);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.result-item {
  text-align: center;
  padding: var(--space-lg);
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.result-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.result-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
}

.results-explanation {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
  border: 1px solid var(--border-subtle);
}

.results-explanation h4 {
  color: var(--accent);
  margin-bottom: var(--space-sm);
  font-size: 1rem;
}

.results-explanation p {
  font-size: 0.95rem;
  line-height: 1.75;
}

/* Product Recommendations Section */
.recommendations {
  margin-top: var(--space-2xl);
}

.recommendations h3 {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.recommendations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

/* FAQ Section */
.faq {
  margin-top: var(--space-3xl);
}

.faq h2 {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: var(--space-lg);
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--accent);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform var(--transition-base);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-content {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--text-secondary);
  line-height: 1.75;
}

/* Footer */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-3xl) 0 var(--space-xl);
  margin-top: var(--space-3xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-section h4 {
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: var(--space-lg);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-bottom a {
  color: var(--text-secondary);
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* Category Pills */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-bottom: var(--space-2xl);
}

.category-pill {
  padding: var(--space-sm) var(--space-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.category-pill:hover,
.category-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* Info Box */
.info-box {
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
}

.info-box p {
  color: var(--text-primary);
  margin: 0;
}

/* Legal Pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
}

.legal-content h1 {
  margin-bottom: var(--space-lg);
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.legal-content h3 {
  font-size: 1.25rem;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.legal-content p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

.legal-content ul, .legal-content ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
  color: var(--text-secondary);
}

.legal-content li {
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}

.legal-content a {
  color: var(--accent);
}

.legal-content a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.last-updated {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form .form-group {
  margin-bottom: var(--space-lg);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

/* About Page */
.about-hero {
  text-align: center;
  padding: var(--space-2xl) 0;
}

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

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.team-member {
  text-align: center;
  padding: var(--space-xl);
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.team-member-avatar {
  width: 80px;
  height: 80px;
  background: var(--accent-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto var(--space-md);
}

.team-member h3 {
  margin-bottom: var(--space-xs);
}

.team-member-role {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-gold { color: var(--amber); }
.text-muted { color: var(--text-muted); }
.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-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    flex-direction: column;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-subtle);
    gap: var(--space-md);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: var(--space-2xl) 0;
  }

  .calculator {
    padding: var(--space-lg);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .legal-content {
    padding: var(--space-lg);
  }
}

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

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

/* Programmatic SEO Pages */
.programmatic-content {
  max-width: 900px;
  margin: 0 auto;
}

.programmatic-content h1 {
  text-align: center;
  margin-bottom: var(--space-xl);
}

/* Summary Box */
.summary-box {
  background: var(--bg-surface);
  border: 2px solid var(--accent);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.summary-box h2 {
  text-align: center;
  margin-bottom: var(--space-lg);
  color: var(--accent);
  font-size: 1.5rem;
}

.summary-primary {
  font-size: 1.25rem;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
  max-width: none;
}

.summary-secondary {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  max-width: none;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.summary-item {
  background: var(--bg-elevated);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  text-align: center;
}

.summary-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.summary-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.summary-note {
  text-align: center;
  font-size: 0.95rem;
  color: var(--amber);
  margin-top: var(--space-lg);
  max-width: none;
}

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, var(--accent-dim) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.cta-box h3 {
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.cta-box p {
  margin: 0 auto var(--space-lg);
  max-width: none;
}

/* Comparison Section */
.comparison-section {
  margin-bottom: var(--space-2xl);
}

.comparison-section h2 {
  text-align: center;
  margin-bottom: var(--space-xl);
}

/* Results Table */
.results-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-lg);
}

.results-table thead {
  background: var(--bg-elevated);
}

.results-table th,
.results-table td {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.results-table th {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.results-table td {
  color: var(--text-secondary);
}

.results-table tbody tr:hover {
  background: var(--bg-hover);
}

.results-table .highlight-row {
  background: var(--accent-dim);
}

.results-table .highlight-row td {
  color: var(--text-primary);
  font-weight: 600;
}

.results-table tfoot {
  background: var(--bg-elevated);
}

.results-table tfoot td {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Related Links */
.related-links {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-top: var(--space-2xl);
}

.related-links h3 {
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

.related-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
}

.related-list li {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.related-list li:hover {
  background: var(--bg-hover);
}

.related-list a {
  display: block;
  padding: var(--space-md) var(--space-lg);
  color: var(--text-secondary);
  font-weight: 500;
}

.related-list a:hover {
  color: var(--accent);
}

/* Mobile Responsive for Programmatic Pages */
@media (max-width: 768px) {
  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .results-table {
    font-size: 0.9rem;
  }

  .results-table th,
  .results-table td {
    padding: var(--space-sm) var(--space-md);
  }

  .related-list {
    grid-template-columns: 1fr;
  }
}

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

  .results-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* Print Styles */
@media print {
  body::before {
    display: none;
  }

  .nav, .footer, .btn {
    display: none;
  }

  .results {
    display: block !important;
    border: 1px solid #000;
  }

  body {
    background: white;
    color: black;
  }

  .legal-content {
    max-width: 100%;
  }
}

/* ============================================
   ENHANCED PROGRAMMATIC PAGE STYLES
   2000+ word content sections
   ============================================ */

/* Editorial Introduction */
.editorial-intro {
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  border-left: 4px solid var(--accent);
}

.editorial-intro p {
  margin-bottom: var(--space-md);
  font-size: 1.05rem;
  line-height: 1.8;
}

.editorial-intro p:last-child {
  margin-bottom: 0;
}

.editorial-intro h2 {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-md);
}

.editorial-intro ul,
.editorial-intro ol {
  margin-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

.editorial-intro li {
  margin-bottom: var(--space-sm);
}

/* Product Recommendations Section */
.product-recommendations {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin: var(--space-xl) 0;
}

.product-recommendations h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.product-intro {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.product-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  border: 1px solid var(--border-subtle);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

/* Product card with image layout */
.product-card.has-image {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: var(--space-lg);
}

.product-image-wrapper {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.product-image {
  width: 140px;
  height: 140px;
  background: #fff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Product rating stars */
.product-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.8rem;
}

.product-rating .stars {
  color: #ffc107;
  font-size: 0.9rem;
  letter-spacing: -1px;
}

.product-rating .star.empty {
  color: var(--text-muted);
}

.product-rating .star.half {
  background: linear-gradient(90deg, #ffc107 50%, var(--text-muted) 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.product-rating .rating-value {
  color: var(--text-primary);
  font-weight: 600;
}

.product-rating .review-count {
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.product-card.has-image .product-content {
  flex: 1;
  min-width: 0;
}

@media (max-width: 480px) {
  .product-card.has-image {
    flex-direction: column;
  }

  .product-image-wrapper {
    width: 100%;
  }

  .product-image {
    width: 100%;
    height: 160px;
  }
}

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-md);
  gap: var(--space-sm);
}

.product-header h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.product-category {
  background: var(--accent-dim);
  color: var(--accent);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.product-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.product-specs {
  list-style: none;
  margin: 0 0 var(--space-md) 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.product-specs li {
  background: var(--bg-hover);
  color: var(--text-secondary);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--success);
}

.affiliate-note {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  margin-top: var(--space-md);
}

/* Pro Tips Section */
.pro-tips-section {
  background: linear-gradient(135deg, var(--amber-dim) 0%, var(--bg-surface) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin: var(--space-xl) 0;
  border: 1px solid var(--amber);
}

.pro-tips-section h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: var(--space-lg);
  color: var(--amber);
}

.pro-tip {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.pro-tip:last-child {
  margin-bottom: 0;
}

.tip-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
}

.tip-content h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.tip-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Buying Guide Section */
.buying-guide {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin: var(--space-xl) 0;
}

.buying-guide h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

.buying-guide h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  color: var(--accent);
}

.buying-guide h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.buying-guide p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.buying-guide ul,
.buying-guide ol {
  margin-left: var(--space-lg);
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

.buying-guide li {
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}

.buying-guide li strong {
  color: var(--text-primary);
}

/* Comparison Tables in Buying Guide */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-lg) 0;
  font-size: 0.9rem;
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-weight: 600;
}

.comparison-table td {
  color: var(--text-secondary);
}

.comparison-table tr:hover td {
  background: var(--bg-hover);
}

/* Mobile Responsive for New Sections */
@media (max-width: 768px) {
  .editorial-intro,
  .product-recommendations,
  .pro-tips-section,
  .buying-guide {
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
  }

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

  .product-header {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .product-footer {
    flex-direction: column;
    gap: var(--space-md);
    align-items: stretch;
  }

  .product-footer .btn {
    text-align: center;
  }

  .pro-tip {
    flex-direction: column;
    text-align: center;
  }

  .tip-icon {
    margin: 0 auto;
  }

  .comparison-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .editorial-intro,
  .product-recommendations,
  .pro-tips-section,
  .buying-guide {
    padding: var(--space-md);
    border-radius: var(--radius-md);
  }

  .editorial-intro h2,
  .product-recommendations h2,
  .pro-tips-section h2,
  .buying-guide h2 {
    font-size: 1.35rem;
  }

  .product-specs {
    justify-content: center;
  }
}
