/* ==========================================================================
   CANON RF LENSES DIRECTORY - STYLESHEET
   Design System: Precision Optics & Modern Photography Aesthetic
   ========================================================================== */

:root {
  /* Color Palette - Dark Theme (Default) */
  --bg-main: #0c0e12;
  --bg-surface: #141820;
  --bg-surface-elevated: #1b202c;
  --bg-surface-hover: #222938;
  --bg-input: #10141d;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);
  --border-focus: #e50914;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #0f172a;
  
  /* Canon Signature Accents */
  --canon-red: #e50914;
  --canon-red-dark: #b80710;
  --canon-red-glow: rgba(229, 9, 20, 0.35);
  --canon-red-subtle: rgba(229, 9, 20, 0.12);
  
  --gold-accent: #f59e0b;
  --blue-accent: #38bdf8;
  --green-accent: #10b981;
  --purple-accent: #a855f7;

  /* Typography & Sizing */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, Monaco, monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.5);
  --shadow-red: 0 4px 20px rgba(229, 9, 20, 0.25);
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

[data-theme="light"] {
  --bg-main: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f8fafc;
  --bg-surface-hover: #e2e8f0;
  --bg-input: #ffffff;
  
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-medium: rgba(0, 0, 0, 0.15);
  --border-focus: #e50914;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 30px rgba(0,0,0,0.12);
  --shadow-red: 0 4px 15px rgba(229, 9, 20, 0.18);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

button, input, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 24, 32, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.88);
}

.header-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.red-ring-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2a2e39 0%, #11141a 70%);
  border: 2px solid var(--border-medium);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.red-ring-badge::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 2px solid var(--canon-red);
  box-shadow: 0 0 8px var(--canon-red-glow);
}

.brand-text h1 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.brand-text .rf-accent {
  color: var(--canon-red);
  font-weight: 900;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.header-btn:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-medium);
}

.header-btn .badge-count {
  background: var(--canon-red);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  color: var(--text-primary);
  background: var(--bg-surface-hover);
}

/* ==========================================================================
   HERO BANNER & QUICK STATS
   ========================================================================== */
.hero-section {
  max-width: 1440px;
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
}

.hero-card {
  background: linear-gradient(135deg, rgba(20, 24, 32, 0.95) 0%, rgba(27, 32, 44, 0.8) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

[data-theme="light"] .hero-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--canon-red) 0%, transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-content h2 {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

.hero-content h2 span.gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .hero-content h2 span.gradient-text {
  background: linear-gradient(135deg, #0f172a 30%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  max-width: 580px;
  line-height: 1.6;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stat-box {
  background: rgba(16, 20, 29, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  text-align: center;
  transition: transform var(--transition-fast);
}

[data-theme="light"] .stat-box {
  background: #f1f5f9;
}

.stat-box:hover {
  transform: translateY(-2px);
  border-color: var(--border-medium);
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--text-primary);
  display: block;
}

.stat-number.accent {
  color: var(--canon-red);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
  display: block;
}

/* ==========================================================================
   FOCAL SPECTRUM EXPLORER
   ========================================================================== */
.spectrum-section {
  max-width: 1440px;
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
}

.spectrum-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.4rem;
}

.spectrum-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.spectrum-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.spectrum-reset {
  font-size: 0.78rem;
  color: var(--canon-red);
  font-weight: 600;
  cursor: pointer;
  display: none;
}

.spectrum-reset.visible {
  display: inline-block;
}

.spectrum-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

.spectrum-seg {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  text-align: left;
  transition: all var(--transition-fast);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.spectrum-seg:hover {
  border-color: var(--border-medium);
  background: var(--bg-surface-hover);
}

.spectrum-seg.active {
  border-color: var(--canon-red);
  background: var(--canon-red-subtle);
  box-shadow: 0 0 12px var(--canon-red-glow);
}

.spectrum-seg-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.spectrum-range {
  font-weight: 700;
  font-size: 0.88rem;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.spectrum-count {
  font-size: 0.72rem;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-weight: 600;
}

.spectrum-seg.active .spectrum-count {
  background: var(--canon-red);
  color: #fff;
  border-color: transparent;
}

.spectrum-name {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.2rem;
}

/* ==========================================================================
   CONTROLS & FILTERING BAR
   ========================================================================== */
.controls-section {
  max-width: 1440px;
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
}

.controls-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.search-and-mount-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.search-box {
  position: relative;
  flex: 1 1 360px;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 2.8rem 0.75rem 2.8rem;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--canon-red);
  box-shadow: 0 0 0 3px var(--canon-red-subtle);
}

.search-clear {
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  padding: 0.3rem;
  border-radius: 50%;
  display: none;
}

.search-clear.visible {
  display: block;
}

.search-clear:hover {
  color: var(--text-primary);
}

.category-tabs {
  display: flex;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.25rem;
  gap: 0.25rem;
  overflow-x: auto;
}

.cat-tab {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.cat-tab:hover {
  color: var(--text-primary);
}

.cat-tab.active {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.cat-tab.active.red-accent {
  color: var(--canon-red);
  font-weight: 700;
}

/* Secondary filters row */
.filter-tags-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
}

.quick-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.filter-pill {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.filter-pill:hover {
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.filter-pill.active {
  background: var(--canon-red-subtle);
  border-color: var(--canon-red);
  color: var(--canon-red);
  font-weight: 700;
}

.filter-pill .pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.view-and-sort {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sort-select {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
}

.sort-select:focus {
  border-color: var(--canon-red);
}

.view-toggle {
  display: flex;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.view-btn {
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.view-btn:hover {
  color: var(--text-primary);
}

.view-btn.active {
  background: var(--bg-surface-elevated);
  color: var(--canon-red);
}

.export-csv-btn {
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.export-csv-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
}

/* Results Status Bar */
.results-status-bar {
  max-width: 1440px;
  margin: 1rem auto 0;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.results-count {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.results-count strong {
  color: var(--text-primary);
  font-weight: 700;
}

.active-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.filter-chip-tag {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.filter-chip-tag button {
  color: var(--text-muted);
  font-weight: 700;
}

.filter-chip-tag button:hover {
  color: var(--canon-red);
}

.clear-all-btn {
  font-size: 0.78rem;
  color: var(--canon-red);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  margin-left: 0.3rem;
}

/* ==========================================================================
   LENS CARDS GRID VIEW
   ========================================================================== */
.lenses-container {
  max-width: 1440px;
  margin: 1.25rem auto 3rem;
  padding: 0 1.5rem;
}

.lenses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.lens-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.lens-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

/* Canon L-Series Signature Red Ring Stripe */
.lens-card.is-l-series {
  border-top: 3px solid var(--canon-red);
}

.lens-card.is-l-series::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--canon-red);
  box-shadow: 0 0 12px var(--canon-red-glow);
}

.card-header {
  padding: 1.25rem 1.25rem 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.badge-l {
  background: var(--canon-red);
  color: #ffffff;
  font-weight: 800;
}

.badge-rfs {
  background: #3b82f6;
  color: #ffffff;
}

.badge-cinema {
  background: #a855f7;
  color: #ffffff;
}

.badge-zoom {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
}

.badge-prime {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
}

.badge-is {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.card-actions-quick {
  display: flex;
  gap: 0.35rem;
}

.action-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.action-icon-btn:hover {
  color: var(--text-primary);
  background: var(--bg-surface-hover);
  border-color: var(--border-medium);
}

.action-icon-btn.in-bag {
  background: var(--canon-red);
  color: #ffffff;
  border-color: var(--canon-red);
}

.action-icon-btn.in-compare {
  background: var(--blue-accent);
  color: #ffffff;
  border-color: var(--blue-accent);
}

/* Card Body */
.card-body {
  padding: 0 1.25rem 1rem;
  flex: 1;
}

.card-focal-hero {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.focal-hero-text {
  font-size: 1.65rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.aperture-hero-text {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--canon-red);
}

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.spec-tag {
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

/* Spec Grid inside Card */
.card-specs-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 1rem;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  font-size: 0.78rem;
  border: 1px solid var(--border-subtle);
  margin-bottom: 0.75rem;
}

.spec-item {
  display: flex;
  flex-direction: column;
}

.spec-label {
  color: var(--text-muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  font-weight: 600;
}

.spec-val {
  color: var(--text-primary);
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Card Footer */
.card-footer {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.card-price {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.card-view-btn {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.card-view-btn:hover {
  background: var(--canon-red);
  color: #ffffff;
  border-color: var(--canon-red);
}

/* ==========================================================================
   SPEC MATRIX TABLE VIEW
   ========================================================================== */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}

.lenses-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.lenses-table th {
  background: var(--bg-surface-elevated);
  padding: 0.85rem 1rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-medium);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 10;
}

.lenses-table th.sortable {
  cursor: pointer;
  user-select: none;
}

.lenses-table th.sortable:hover {
  color: var(--text-primary);
}

.lenses-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  white-space: nowrap;
}

.lenses-table tbody tr {
  transition: background var(--transition-fast);
}

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

.lenses-table tbody tr.is-l-row td:first-child {
  border-left: 3px solid var(--canon-red);
}

.table-lens-name {
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.table-lens-name:hover {
  color: var(--canon-red);
}

.table-price {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-primary);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-surface);
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-lg);
  margin-top: 1.5rem;
}

.empty-icon {
  font-size: 2.5rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 420px;
  margin: 0 auto 1.5rem;
}

/* ==========================================================================
   MODAL: LENS SPEC SHEET DETAIL
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-sheet {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: translateY(20px) scale(0.98);
  transition: transform var(--transition-normal);
}

.modal-backdrop.open .modal-sheet {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  position: sticky;
  top: 0;
  background: var(--bg-surface);
  z-index: 5;
}

.modal-header.is-l-lens::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--canon-red);
  box-shadow: 0 0 12px var(--canon-red-glow);
}

.modal-title-group h2 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 0.4rem;
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

.modal-body {
  padding: 1.75rem;
}

.modal-overview-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.overview-stat-tile {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  text-align: center;
}

.overview-stat-tile .tile-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.overview-stat-tile .tile-val {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-top: 0.15rem;
}

.modal-section-heading {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin: 1.5rem 0 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-section-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.modal-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.modal-specs-table tr {
  border-bottom: 1px solid var(--border-subtle);
}

.modal-specs-table td {
  padding: 0.7rem 0.5rem;
}

.modal-specs-table td:first-child {
  color: var(--text-muted);
  width: 38%;
  font-weight: 500;
}

.modal-specs-table td:last-child {
  color: var(--text-primary);
  font-weight: 600;
  font-family: var(--font-mono);
}

.modal-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.modal-genre-pill {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-footer {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-footer-actions {
  display: flex;
  gap: 0.75rem;
}

/* ==========================================================================
   STICKY COMPARISON DOCK & COMPARISON MODAL
   ========================================================================== */
.compare-dock {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 0.6rem 1rem 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-lg);
  z-index: 900;
  transition: transform var(--transition-normal);
}

.compare-dock.visible {
  transform: translateX(-50%) translateY(0);
}

.compare-dock-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.compare-dock-pills {
  display: flex;
  gap: 0.4rem;
}

.compare-mini-chip {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.compare-btn-primary {
  background: var(--canon-red);
  color: #fff;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: var(--shadow-red);
  transition: all var(--transition-fast);
}

.compare-btn-primary:hover {
  background: var(--canon-red-dark);
}

/* Comparison Matrix Modal */
.compare-modal-sheet {
  max-width: 1100px;
}

.compare-matrix-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.85rem;
}

.compare-matrix-table th,
.compare-matrix-table td {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-subtle);
  text-align: center;
}

.compare-matrix-table th:first-child,
.compare-matrix-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
  width: 22%;
  background: var(--bg-surface-elevated);
}

.compare-matrix-table th {
  background: var(--bg-input);
  font-weight: 700;
  color: var(--text-primary);
}

.diff-highlight {
  background: rgba(229, 9, 20, 0.08);
  color: var(--canon-red);
  font-weight: 700;
}

/* ==========================================================================
   CAMERA BAG SLIDE-OVER DRAWER
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.drawer-backdrop.open .drawer-panel {
  transform: translateX(0);
}

.drawer-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.drawer-body {
  padding: 1.25rem 1.5rem;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.bag-item-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.bag-item-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.bag-item-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.bag-item-remove {
  color: var(--text-muted);
  padding: 0.4rem;
  border-radius: 4px;
}

.bag-item-remove:hover {
  color: var(--canon-red);
  background: var(--canon-red-subtle);
}

.drawer-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
}

.bag-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
}

.bag-summary-row strong {
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.bag-btn-action {
  width: 100%;
  background: var(--canon-red);
  color: #fff;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 0.85rem;
  box-shadow: var(--shadow-red);
  transition: all var(--transition-fast);
}

.bag-btn-action:hover {
  background: var(--canon-red-dark);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 1.5rem;
  margin-top: 4rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: slideUpToast 0.25s ease forwards;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .spectrum-bar {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-card {
    padding: 1.5rem;
  }
  .hero-content h2 {
    font-size: 1.6rem;
  }
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .spectrum-bar {
    grid-template-columns: 1fr 1fr;
  }
  .search-and-mount-row {
    flex-direction: column;
    align-items: stretch;
  }
  .category-tabs {
    width: 100%;
  }
  .filter-tags-row {
    flex-direction: column;
    align-items: stretch;
  }
  .view-and-sort {
    justify-content: space-between;
  }
  .modal-overview-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .compare-dock {
    width: 90%;
    border-radius: var(--radius-md);
    flex-direction: column;
    padding: 0.75rem 1rem;
    gap: 0.6rem;
  }
}

/* ==========================================================================
   CANON RF GUIDE & FAQ SECTION (SEO ENHANCEMENT)
   ========================================================================== */
.guide-and-faq-section {
  max-width: 1440px;
  margin: 4.5rem auto 1rem;
  padding: 0 1.5rem;
}

.guide-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.guide-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--canon-red) 0%, transparent 70%);
}

.section-title-gradient {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.section-lead-text {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 900px;
  margin-bottom: 2rem;
}

.nomenclature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.nom-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: transform var(--transition-fast);
}

.nom-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-medium);
}

.nom-badge {
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  flex-shrink: 0;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.nom-content strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.nom-content p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* FAQ Grid */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.25rem;
}

.faq-item {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-medium);
}

.faq-question {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.faq-answer {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.card-title a {
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.card-title a:hover {
  color: var(--canon-red);
  text-decoration: underline;
}

/* ==========================================================================
   INTERACTIVE LENS FINDER WIZARD
   ========================================================================== */
.lens-finder-section {
  max-width: 1440px;
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
}

.wizard-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.wizard-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8 0%, var(--canon-red) 50%, #f59e0b 100%);
}

.wizard-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--canon-red-subtle);
  color: var(--canon-red);
  border: 1px solid rgba(229, 9, 20, 0.3);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.4rem;
}

.wizard-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.wizard-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 650px;
  line-height: 1.5;
  margin-top: 0.2rem;
}

.wizard-reset-btn {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--canon-red);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.wizard-reset-btn:hover {
  background: var(--canon-red-subtle);
  border-color: var(--canon-red);
}

.wizard-steps-indicator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.wizard-step-bubble {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.wizard-step-bubble span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-input);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 700;
}

.wizard-step-bubble.active {
  color: var(--text-primary);
  font-weight: 700;
}

.wizard-step-bubble.active span {
  background: var(--canon-red);
  color: #fff;
  border-color: var(--canon-red);
  box-shadow: 0 0 8px var(--canon-red-glow);
}

.wizard-step-bubble.completed span {
  background: #10b981;
  color: #fff;
  border-color: #10b981;
}

.wizard-step-connector {
  flex: 1;
  height: 2px;
  background: var(--border-subtle);
  min-width: 24px;
}

.wizard-body {
  margin-top: 1.5rem;
}

.wizard-step-question {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.wizard-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.wizard-option-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.wizard-option-card:hover {
  border-color: var(--canon-red);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.option-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.option-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.option-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Results Grid */
.wizard-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.wizard-result-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.wizard-result-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-medium);
}

.wizard-result-card.is-top-pick {
  border-top: 3px solid var(--canon-red);
  background: linear-gradient(180deg, rgba(229, 9, 20, 0.05) 0%, var(--bg-surface-elevated) 40%);
}

.result-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  width: fit-content;
  margin-bottom: 0.75rem;
}

.badge-top { background: var(--canon-red); color: #fff; }
.badge-value { background: #10b981; color: #fff; }
.badge-pro { background: #a855f7; color: #fff; }

.result-rationale {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
  margin: 0.85rem 0 1.25rem;
}

/* ==========================================================================
   CURATED GUIDES SHOWCASE SECTION
   ========================================================================== */
.guides-showcase-section {
  max-width: 1440px;
  margin: 2.5rem auto 0;
  padding: 0 1.5rem;
}

.guides-showcase-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.guides-cards-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.guide-mini-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-fast);
}

.guide-mini-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.guide-mini-cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--canon-red);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.guide-mini-card h4 {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.guide-mini-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.guide-mini-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--canon-red);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.guide-mini-link:hover {
  text-decoration: underline;
}



/* ============================================ */
/* SEO CONTENT COMPONENTS                       */
/* ============================================ */

/* Pros & Cons Grid */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}
@media (max-width: 640px) {
  .pros-cons-grid { grid-template-columns: 1fr; }
}
.pros-box, .cons-box {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}
.pros-box {
  background: rgba(34, 197, 94, 0.05);
  border-color: rgba(34, 197, 94, 0.2);
}
.cons-box {
  background: rgba(245, 158, 11, 0.05);
  border-color: rgba(245, 158, 11, 0.2);
}
.pros-box h3, .pros-box h4 {
  color: #22c55e;
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.cons-box h3, .cons-box h4 {
  color: #f59e0b;
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.pros-box ul, .cons-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pros-box li, .cons-box li {
  padding: 0.4rem 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}
.pros-box li:last-child, .cons-box li:last-child {
  border-bottom: none;
}
.pros-box li::before {
  content: '✓ ';
  color: #22c55e;
  font-weight: 700;
}
.cons-box li::before {
  content: '− ';
  color: #f59e0b;
  font-weight: 700;
}

/* Guide Table of Contents */
.guide-toc-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.5rem 0 2rem;
}
.guide-toc-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}
.guide-toc-list {
  margin: 0;
  padding-left: 1.25rem;
}
.guide-toc-list li {
  padding: 0.35rem 0;
  font-size: 0.88rem;
}
.guide-toc-list a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}
.guide-toc-list a:hover {
  color: var(--canon-red);
}

/* Related Guides Section (footer of each guide) */
.related-guides-section {
  margin-top: 3rem;
  margin-bottom: 2rem;
}
.related-guides-section h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}
.related-guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.related-guide-card {
  display: block;
  padding: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.related-guide-card:hover {
  border-color: var(--canon-red);
  box-shadow: 0 0 0 1px var(--canon-red);
}
.related-guide-cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--canon-red);
  margin-bottom: 0.5rem;
}
.related-guide-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 0;
}

/* Guide Meta Bar (author + date) */
.guide-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.guide-badge {
  display: inline-flex;
  background: var(--canon-red-subtle);
  color: var(--canon-red);
  border: 1px solid rgba(229, 9, 20, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Lens Page Editorial Section */
.lens-editorial-section {
  padding: 2rem;
  border-top: 1px solid var(--border-subtle);
}
.lens-editorial-section h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-primary);
}
.lens-editorial-section p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Lens Page FAQ Section */
.lens-faq-section {
  padding: 2rem;
  border-top: 1px solid var(--border-subtle);
}
.lens-faq-section h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}
.lens-faq-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.lens-faq-item:last-child {
  border-bottom: none;
}
.lens-faq-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.lens-faq-item p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Featured-in-Guides Callout */
.guide-link-callout {
  background: var(--bg-surface-elevated);
  border: 1px solid rgba(229, 9, 20, 0.2);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1.5rem;
}
.guide-link-callout h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--canon-red);
  margin-bottom: 0.75rem;
}
.guide-link-callout a {
  display: block;
  padding: 0.4rem 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}
.guide-link-callout a:hover {
  color: var(--canon-red);
}

/* Noscript Fallback */
.noscript-lens-directory {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem 1.5rem;
}
.noscript-lens-directory h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.noscript-lens-directory ul {
  columns: 2;
  column-gap: 2rem;
  list-style: none;
  padding: 0;
}
@media (max-width: 640px) {
  .noscript-lens-directory ul { columns: 1; }
}
.noscript-lens-directory li {
  padding: 0.3rem 0;
  font-size: 0.88rem;
}
.noscript-lens-directory a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}
.noscript-lens-directory a:hover {
  color: var(--canon-red);
}

/* Footer Links Grid */
.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 640px) {
  .footer-links-grid { grid-template-columns: 1fr; }
}
.footer-links-grid strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}
.footer-links-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links-grid li {
  padding: 0.25rem 0;
}
.footer-links-grid a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}
.footer-links-grid a:hover {
  color: var(--canon-red);
}
