/* FPSBench - Professional Design */
/* Inspired by technical.city and modern benchmark sites */

/* ============================================
   CSS CUSTOM PROPERTIES - THEME SYSTEM
   ============================================ */

/* Light Theme (Default) */
:root {
  /* Primary Colors */
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-primary-light: rgba(37, 99, 235, 0.1);
  
  /* Secondary Colors */
  --color-secondary: #4f46e5;
  --color-secondary-hover: #4338ca;
  --color-secondary-light: rgba(79, 70, 229, 0.1);
  
  /* Background Colors */
  --color-background: #ffffff;
  --color-background-secondary: #f8fafc;
  --color-background-tertiary: #f1f5f9;
  
  /* Surface Colors */
  --color-surface: #ffffff;
  --color-surface-hover: #f8fafc;
  --color-surface-elevated: #ffffff;
  
  /* Text Colors */
  --color-text-primary: #1e293b;
  --color-text-secondary: #64748b;
  --color-text-muted: #94a3b8;
  --color-text-inverse: #ffffff;
  
  /* Border Colors */
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;
  --color-border-dark: #cbd5e1;
  
  /* Semantic Colors */
  --color-success: #10b981;
  --color-success-light: rgba(16, 185, 129, 0.1);
  --color-warning: #f59e0b;
  --color-warning-light: rgba(245, 158, 11, 0.1);
  --color-danger: #ef4444;
  --color-danger-light: rgba(239, 68, 68, 0.1);
  --color-info: #3b82f6;
  --color-info-light: rgba(59, 130, 246, 0.1);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  --gradient-secondary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --gradient-hero: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --gradient-card: linear-gradient(180deg, rgba(37, 99, 235, 0.03) 0%, transparent 100%);
  
  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.3);
  --shadow-glow-lg: 0 0 40px rgba(37, 99, 235, 0.4);
  
  /* Spacing Scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  
  /* Typography Scale */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  
  --text-display: 3.5rem;      /* 56px */
  --text-h1: 2.5rem;           /* 40px */
  --text-h2: 2rem;             /* 32px */
  --text-h3: 1.5rem;           /* 24px */
  --text-h4: 1.25rem;          /* 20px */
  --text-h5: 1.125rem;         /* 18px */
  --text-h6: 1rem;             /* 16px */
  --text-body: 1rem;           /* 16px */
  --text-small: 0.875rem;      /* 14px */
  --text-xs: 0.75rem;          /* 12px */
  
  /* Line Heights */
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.6;
  --line-height-loose: 1.8;
  
  /* Font Weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  
  /* Layout */
  --container-max: 1400px;
  --header-height: 70px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  
  /* Z-Index Scale */
  --z-dropdown: 50;
  --z-sticky: 100;
  --z-fixed: 200;
  --z-modal: 500;
  --z-tooltip: 1000;
}

/* Dark Theme */
[data-theme="dark"] {
  /* Primary Colors */
  --color-primary: #3b82f6;
  --color-primary-hover: #2563eb;
  --color-primary-light: rgba(59, 130, 246, 0.15);
  
  /* Secondary Colors */
  --color-secondary: #8b5cf6;
  --color-secondary-hover: #7c3aed;
  --color-secondary-light: rgba(139, 92, 246, 0.15);
  
  /* Background Colors */
  --color-background: #0f172a;
  --color-background-secondary: #1e293b;
  --color-background-tertiary: #334155;
  
  /* Surface Colors */
  --color-surface: #1e293b;
  --color-surface-hover: #334155;
  --color-surface-elevated: #334155;
  
  /* Text Colors */
  --color-text-primary: #f1f5f9;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;
  --color-text-inverse: #0f172a;
  
  /* Border Colors */
  --color-border: #334155;
  --color-border-light: #1e293b;
  --color-border-dark: #475569;
  
  /* Semantic Colors */
  --color-success: #22c55e;
  --color-success-light: rgba(34, 197, 94, 0.15);
  --color-warning: #fbbf24;
  --color-warning-light: rgba(251, 191, 36, 0.15);
  --color-danger: #f87171;
  --color-danger-light: rgba(248, 113, 113, 0.15);
  --color-info: #3b82f6;
  --color-info-light: rgba(59, 130, 246, 0.15);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --gradient-secondary: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
  --gradient-hero: linear-gradient(135deg, #3b82f6 0%, #a855f7 100%);
  --gradient-card: linear-gradient(180deg, rgba(59, 130, 246, 0.05) 0%, transparent 100%);
  
  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.7), 0 2px 4px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.8), 0 4px 6px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.9), 0 10px 10px rgba(0, 0, 0, 0.7);
  --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.95);
  --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.4);
  --shadow-glow-lg: 0 0 40px rgba(59, 130, 246, 0.5);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

/* CSS Reset for consistent cross-browser rendering */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px; /* Base font size: 16px */
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans); /* Apply font family from CSS variables */
  background: var(--color-background);
  color: var(--color-text-primary);
  line-height: 1.6; /* Line height: 1.6 for body text */
  font-size: var(--text-body); /* 16px base font size */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Max-width constraints for readability */
p, li, dd {
  max-width: 75ch; /* Maximum line length of 75 characters for optimal readability */
}

/* Remove default list styles */
ul, ol {
  list-style: none;
}

/* Reset links */
a {
  color: inherit;
  text-decoration: none;
}

/* Reset form elements */
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* Remove default button styles */
button {
  background: none;
  border: none;
  cursor: pointer;
}

/* Reset images */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* ============================================
   TYPOGRAPHY - HEADING HIERARCHY
   ============================================ */

/* Heading hierarchy with clear size differences */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight); /* 1.2 line height for headings */
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: var(--text-h1); /* 2.5rem / 40px */
  font-weight: var(--font-weight-extrabold);
}

h2 {
  font-size: var(--text-h2); /* 2rem / 32px */
  font-weight: var(--font-weight-bold);
}

h3 {
  font-size: var(--text-h3); /* 1.5rem / 24px */
  font-weight: var(--font-weight-bold);
}

h4 {
  font-size: var(--text-h4); /* 1.25rem / 20px */
  font-weight: var(--font-weight-semibold);
}

h5 {
  font-size: var(--text-h5); /* 1.125rem / 18px */
  font-weight: var(--font-weight-semibold);
}

h6 {
  font-size: var(--text-h6); /* 1rem / 16px */
  font-weight: var(--font-weight-semibold);
}

/* Gradient text effect for hero headings */
.hero-heading,
.gradient-heading {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent; /* Fallback for browsers that don't support background-clip */
}

/* Display heading (for hero sections) */
.display-heading {
  font-size: var(--text-display); /* 3.5rem / 56px */
  font-weight: var(--font-weight-extrabold);
  line-height: var(--line-height-tight);
}

/* Paragraph spacing */
p {
  margin-bottom: var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  z-index: var(--z-tooltip);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
}

.skip-link:focus {
  top: 10px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

/* Header - Sticky with backdrop blur */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--transition-base);
}

[data-theme="dark"] header {
  background: rgba(15, 23, 42, 0.95);
}

/* Add shadow on scroll */
header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: var(--space-lg);
}

/* Logo with gradient text effect */
.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform var(--transition-base);
}

.logo:hover {
  transform: scale(1.02);
}

.logo-img {
  height: 36px;
  width: auto;
}

/* Dark mode logo switching */
.logo-dark,
.footer-logo .logo-dark {
  display: none;
}

[data-theme="dark"] .logo-light,
[data-theme="dark"] .footer-logo .logo-light {
  display: none;
}

[data-theme="dark"] .logo-dark,
[data-theme="dark"] .footer-logo .logo-dark {
  display: block;
}

.logo-text {
  font-size: var(--text-h3);
  font-weight: var(--font-weight-extrabold);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

/* Navigation Links */
.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-sm);
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 20px;
  text-decoration: none;
  color: var(--color-text-secondary);
  border-radius: var(--radius-md);
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-base);
  position: relative;
}

/* Navigation hover states with background color change */
.nav-links a:hover {
  color: var(--color-text-primary);
  background: var(--color-surface-hover);
  transform: translateY(-1px);
}

/* Active navigation item with accent color */
.nav-links a[aria-current="page"] {
  color: var(--color-primary);
  background: var(--color-primary-light);
  font-weight: var(--font-weight-semibold);
}

/* Search Form */
.search-form {
  display: flex;
  position: relative;
  flex: 0 1 auto;
}

.search-form input {
  width: 280px;
  padding: var(--space-md) 20px;
  padding-right: 50px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text-primary);
  font-size: var(--text-small);
  transition: all var(--transition-base);
}

/* Search bar focus effects with glow */
.search-form input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
  background: var(--color-background);
}

.search-form input::placeholder {
  color: var(--color-text-muted);
}

.search-form button {
  position: absolute;
  right: var(--space-sm);
  top: 50%;
  transform: translateY(-50%);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-primary);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--color-text-inverse);
  cursor: pointer;
  transition: all var(--transition-base);
}

.search-form button:hover {
  background: var(--color-primary-hover);
  transform: translateY(-50%) scale(1.05);
}

.search-form button:active {
  transform: translateY(-50%) scale(0.98);
}

/* Theme Toggle Button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  padding: 0;
}

.theme-toggle:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-primary);
  transform: rotate(15deg) scale(1.05);
}

.theme-toggle:active {
  transform: rotate(15deg) scale(0.95);
}

.theme-icon {
  font-size: 1.25rem;
  line-height: 1;
  transition: transform var(--transition-base);
}

/* Mobile Menu Toggle (Hamburger) */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  padding: 0;
  gap: 5px;
  transition: all var(--transition-base);
}

.mobile-menu-toggle:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-primary);
}

.mobile-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

/* Hamburger animation when menu is open */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
  z-index: calc(var(--z-sticky) - 1);
}

.mobile-nav.active {
  max-height: 400px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: var(--space-md);
  gap: var(--space-sm);
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  text-decoration: none;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-base);
  min-height: 44px;
}

.mobile-nav-links a:hover {
  color: var(--color-text-primary);
  background: var(--color-surface-hover);
  border-color: var(--color-primary);
}

.mobile-nav-links a[aria-current="page"] {
  color: var(--color-primary);
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
}

/* Main Content */
main {
  flex: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 40px var(--space-lg);
  width: 100%;
}

/* Breadcrumb - with icons and hover effects */
.breadcrumb {
  margin-bottom: var(--space-lg);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: var(--space-sm);
  font-size: var(--text-small);
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Breadcrumb separator with icon */
.breadcrumb li:not(:last-child)::after {
  content: '›';
  color: var(--color-text-muted);
  font-size: 1.2em;
  font-weight: var(--font-weight-bold);
}

/* Breadcrumb links with hover effects */
.breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.breadcrumb a:hover {
  background: var(--color-primary-light);
  color: var(--color-primary-hover);
  transform: translateX(2px);
}

/* Current page in breadcrumb */
.breadcrumb [aria-current="page"] {
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
}

/* Breadcrumb icon support */
.breadcrumb-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
}

/* Page Header - with hardware name and key info */
.page-header {
  margin-bottom: 40px;
  padding: var(--space-xl);
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

/* Decorative element */
.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--color-primary-light) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.page-header h1 {
  font-size: var(--text-h1);
  font-weight: var(--font-weight-extrabold);
  margin-bottom: var(--space-sm);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}

.page-header p {
  color: var(--color-text-secondary);
  font-size: var(--text-h5);
  position: relative;
  z-index: 1;
  max-width: none;
}

/* Page header with key info badges */
.page-header-info {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-md);
  position: relative;
  z-index: 1;
}

.page-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary);
}

/* Specs Section */
.specs-section {
  margin-bottom: var(--space-2xl);
}

.specs-section h2 {
  font-size: var(--text-h3);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.specs-section h2::before {
  content: '';
  width: 4px;
  height: var(--space-lg);
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* Specifications Grid - 2-4 columns responsive */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-md);
}

/* Spec cards with icons, labels, and values */
.spec-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

/* Decorative gradient overlay */
.spec-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.spec-item:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.spec-item:hover::before {
  opacity: 1;
}

/* Spec item with icon */
.spec-item-with-icon {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.spec-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
  color: var(--color-primary);
  font-size: 20px;
  transition: all var(--transition-base);
}

.spec-item:hover .spec-icon {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  transform: scale(1.1);
}

.spec-content {
  flex: 1;
  min-width: 0;
}

.spec-label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 4px;
}

.spec-value {
  font-size: var(--text-h4);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  word-break: break-word;
}

/* Responsive specs grid - 2-4 columns */
@media (min-width: 1200px) {
  .specs-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 900px) and (max-width: 1199px) {
  .specs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 600px) and (max-width: 899px) {
  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 599px) {
  .specs-grid {
    grid-template-columns: 1fr;
  }
}

/* Benchmark Section - with horizontal bar charts */
.benchmark-section {
  margin-bottom: var(--space-2xl);
}

.benchmark-section h2 {
  font-size: var(--text-h3);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.benchmark-section h2::before {
  content: '';
  width: 4px;
  height: var(--space-lg);
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* Benchmark source cards with headers */
.benchmark-source {
  margin-bottom: var(--space-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.benchmark-source:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

/* Benchmark source header with gradient */
.benchmark-source h3 {
  padding: var(--space-md) var(--space-lg);
  background: var(--gradient-card);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-h5);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Source attribution badge */
.benchmark-source-badge {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
  background: var(--color-background-secondary);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Horizontal bar chart container */
.benchmark-chart {
  padding: var(--space-lg);
}

.benchmark-chart-item {
  margin-bottom: var(--space-lg);
}

.benchmark-chart-item:last-child {
  margin-bottom: 0;
}

/* Chart header with benchmark name and score */
.benchmark-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
  gap: var(--space-md);
}

.benchmark-chart-name {
  font-size: var(--text-small);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  flex: 1;
}

.benchmark-chart-score {
  font-family: var(--font-mono);
  font-size: var(--text-small);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  white-space: nowrap;
}

.benchmark-chart-unit {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-left: 4px;
}

/* Horizontal bar track */
.benchmark-bar-track {
  position: relative;
  width: 100%;
  height: 32px;
  background: var(--color-background-tertiary);
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* Color-coded bars based on performance */
.benchmark-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: var(--radius-md);
  transition: width var(--transition-slow), background var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: var(--space-sm);
}

/* Performance-based color coding */
.benchmark-bar-excellent {
  background: linear-gradient(90deg, var(--color-success) 0%, #059669 100%);
}

.benchmark-bar-good {
  background: linear-gradient(90deg, #84cc16 0%, #65a30d 100%);
}

.benchmark-bar-average {
  background: linear-gradient(90deg, var(--color-warning) 0%, #d97706 100%);
}

.benchmark-bar-poor {
  background: linear-gradient(90deg, var(--color-danger) 0%, #dc2626 100%);
}

/* Score label inside bar */
.benchmark-bar-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Benchmark metadata */
.benchmark-meta {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xs);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.benchmark-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Responsive benchmark charts - stack on mobile */
@media (max-width: 768px) {
  .benchmark-chart {
    padding: var(--space-md);
  }
  
  .benchmark-chart-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }
  
  .benchmark-chart-score {
    font-size: var(--text-body);
  }
  
  .benchmark-bar-track {
    height: 40px;
  }
  
  .benchmark-source h3 {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
}

/* ============================================
   TABLE STYLES - RESPONSIVE & MODERN
   ============================================ */

/* Table Container - Horizontally scrollable on mobile */
.table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

/* Base Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-small);
  background: var(--color-surface);
}

/* Table Header - Background and uppercase labels */
thead {
  background: var(--color-primary-light);
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Table Header Cells - Uppercase labels with adequate padding */
th {
  padding: 14px 20px; /* Adequate cell padding as specified */
  text-align: left;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  text-transform: uppercase; /* Uppercase labels */
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--color-border);
  white-space: nowrap;
  user-select: none;
  background: var(--color-primary-light);
  transition: all var(--transition-base);
}

/* Sortable Column Indicators */
th.sortable {
  cursor: pointer;
  position: relative;
  padding-right: 32px;
}

th.sortable:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

/* Sort indicator icon */
th.sortable::after {
  content: '⇅';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.4;
  font-size: 14px;
  transition: all var(--transition-base);
}

th.sortable:hover::after {
  opacity: 1;
}

/* Active sort indicators */
th.sortable.sort-asc::after {
  content: '↑';
  opacity: 1;
  color: var(--color-primary);
}

th.sortable.sort-desc::after {
  content: '↓';
  opacity: 1;
  color: var(--color-primary);
}

/* Table Data Cells - Adequate padding */
td {
  padding: 14px 20px; /* Adequate cell padding as specified */
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-small);
  color: var(--color-text-primary);
  vertical-align: middle;
}

/* Table Body Rows - Hover states for readability */
tbody tr {
  transition: background var(--transition-fast);
  background: var(--color-surface);
}

/* Alternating row backgrounds for readability */
tbody tr:nth-child(even) {
  background: var(--color-background-secondary);
}

/* Row hover state */
tbody tr:hover {
  background: var(--color-surface-hover);
  box-shadow: inset 0 0 0 1px var(--color-border-dark);
}

/* Remove border from last row */
tbody tr:last-child td {
  border-bottom: none;
}

/* Table Cell Alignment Variants */
td.text-center,
th.text-center {
  text-align: center;
}

td.text-right,
th.text-right {
  text-align: right;
}

/* Numeric Data Cells */
td.numeric,
th.numeric {
  font-family: var(--font-mono);
  text-align: right;
}

/* Table Variants */

/* Compact Table */
table.table-compact th,
table.table-compact td {
  padding: 10px 16px;
}

/* Bordered Table */
table.table-bordered {
  border: 1px solid var(--color-border);
}

table.table-bordered th,
table.table-bordered td {
  border: 1px solid var(--color-border);
}

/* Striped Table (explicit class) */
table.table-striped tbody tr:nth-child(odd) {
  background: var(--color-surface);
}

table.table-striped tbody tr:nth-child(even) {
  background: var(--color-background-secondary);
}

/* Hoverable Table (explicit class) */
table.table-hover tbody tr:hover {
  background: var(--color-surface-hover);
  cursor: pointer;
}

/* Table with no borders */
table.table-borderless th,
table.table-borderless td {
  border: none;
}

/* Table Caption */
caption {
  padding: var(--space-md);
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  text-align: left;
  caption-side: top;
  font-weight: var(--font-weight-semibold);
}

/* Table Footer */
tfoot {
  background: var(--color-background-secondary);
  font-weight: var(--font-weight-semibold);
}

tfoot td,
tfoot th {
  border-top: 2px solid var(--color-border);
  border-bottom: none;
}

/* Responsive Table Behavior - Mobile */
@media (max-width: 768px) {
  /* Make tables horizontally scrollable on mobile */
  .table-container {
    border-radius: 0;
    border-left: none;
    border-right: none;
    margin-left: calc(-1 * var(--space-md));
    margin-right: calc(-1 * var(--space-md));
    width: calc(100% + 2 * var(--space-md));
  }
  
  /* Ensure minimum width for readability */
  table {
    min-width: 600px;
  }
  
  /* Reduce padding on mobile */
  th,
  td {
    padding: 12px 16px;
    font-size: var(--text-xs);
  }
  
  /* Adjust sortable padding */
  th.sortable {
    padding-right: 28px;
  }
  
  th.sortable::after {
    right: 8px;
    font-size: 12px;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  th,
  td {
    padding: 10px 12px;
  }
  
  /* Even more compact on very small screens */
  table.table-compact th,
  table.table-compact td {
    padding: 8px 10px;
  }
}

/* Score highlighting */
.better {
  color: var(--color-success);
  font-weight: var(--font-weight-semibold);
}

.worse {
  color: var(--color-danger);
}

.diff-positive {
  color: var(--color-success);
  font-size: var(--text-small);
}

.diff-negative {
  color: var(--color-danger);
  font-size: var(--text-small);
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  padding: var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.filter-group label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-group select {
  padding: 10px var(--space-md);
  background: var(--color-background-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  font-size: var(--text-small);
  cursor: pointer;
  min-width: 160px;
}

.filter-group select:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* Pagination */
.pagination {
  margin-top: var(--space-2xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.pagination-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  gap: 6px;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-md);
  text-decoration: none;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--text-small);
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-base);
}

.pagination-link:hover:not(.disabled):not(.current) {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}

.pagination-link.current {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}

.pagination-link.disabled {
  color: var(--color-text-muted);
  cursor: not-allowed;
  opacity: 0.5;
}

.pagination-info {
  color: var(--color-text-muted);
  font-size: var(--text-small);
}

/* ============================================
   HARDWARE LIST & GRID LAYOUTS
   ============================================ */

/* Hardware List - List View */
.hardware-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Hardware Grid - Grid View (1-3 columns based on viewport) */
.hardware-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
}

/* Hardware Card - Base styles for both list and grid */
.hardware-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text-primary);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

/* Card hover effects - elevation, border, translation */
.hardware-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.hardware-card:active {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Hardware Card Header */
.hardware-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

/* Hardware Name */
.hardware-card-name {
  font-size: var(--text-h5);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-xs);
}

/* Hardware Manufacturer Badge */
.hardware-card-manufacturer {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Hardware Specs Grid with Icons */
.hardware-card-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

/* Individual Spec Item with Icon */
.hardware-spec-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Spec Icon */
.hardware-spec-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: var(--color-primary-light);
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  font-size: 16px;
}

/* Spec Content */
.hardware-spec-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Spec Label */
.hardware-spec-label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

/* Spec Value */
.hardware-spec-value {
  font-size: var(--text-small);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hardware Card Footer - for scores */
.hardware-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: auto;
}

/* Legacy Hardware Item (for backward compatibility) */
.hardware-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-lg);
  align-items: center;
  padding: 20px var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text-primary);
  transition: all var(--transition-base);
}

.hardware-item:hover {
  border-color: var(--color-primary);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.hardware-item-name {
  font-size: var(--text-h5);
  font-weight: var(--font-weight-semibold);
}

.hardware-item-specs {
  display: flex;
  gap: var(--space-lg);
  color: var(--color-text-secondary);
  font-size: var(--text-small);
}

/* ============================================
   BENCHMARK SCORE VISUALIZATION
   ============================================ */

/* Score Container */
.score-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* Score Display with Monospace Font */
.score-value {
  font-family: var(--font-mono);
  font-size: var(--text-h4);
  font-weight: var(--font-weight-bold);
  line-height: 1;
}

/* Score Label */
.score-label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Performance Level Badges */
.performance-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
}

/* Color-coded Performance Indicators */
.performance-excellent,
.performance-badge-excellent {
  background: var(--color-success-light);
  color: var(--color-success);
  border: 1px solid var(--color-success);
}

.performance-good,
.performance-badge-good {
  background: rgba(132, 204, 22, 0.1);
  color: #84cc16;
  border: 1px solid #84cc16;
}

.performance-average,
.performance-badge-average {
  background: var(--color-warning-light);
  color: var(--color-warning);
  border: 1px solid var(--color-warning);
}

.performance-poor,
.performance-badge-poor {
  background: var(--color-danger-light);
  color: var(--color-danger);
  border: 1px solid var(--color-danger);
}

/* Score with color coding */
.score-excellent {
  color: var(--color-success);
}

.score-good {
  color: #84cc16;
}

.score-average {
  color: var(--color-warning);
}

.score-poor {
  color: var(--color-danger);
}

/* Progress Bar / Visual Meter */
.score-meter {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.score-meter-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
}

.score-meter-value {
  font-family: var(--font-mono);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
}

/* Progress Bar Track */
.score-meter-track {
  position: relative;
  width: 100%;
  height: 8px;
  background: var(--color-background-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

/* Progress Bar Fill */
.score-meter-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: var(--radius-full);
  transition: width var(--transition-slow), background var(--transition-base);
}

/* Color-coded progress bars based on performance */
.score-meter-fill-excellent {
  background: linear-gradient(90deg, var(--color-success) 0%, #059669 100%);
}

.score-meter-fill-good {
  background: linear-gradient(90deg, #84cc16 0%, #65a30d 100%);
}

.score-meter-fill-average {
  background: linear-gradient(90deg, var(--color-warning) 0%, #d97706 100%);
}

.score-meter-fill-poor {
  background: linear-gradient(90deg, var(--color-danger) 0%, #dc2626 100%);
}

/* Large Progress Bar Variant */
.score-meter-lg .score-meter-track {
  height: 12px;
}

/* Score Comparison Display */
.score-comparison {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.score-comparison-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.score-comparison-label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
}

.score-comparison-value {
  font-family: var(--font-mono);
  font-size: var(--text-small);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
}

/* Benchmark Score Card */
.benchmark-score-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.benchmark-score-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.benchmark-score-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.benchmark-score-name {
  font-size: var(--text-body);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

.benchmark-score-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* Score Grid - Multiple scores in a grid */
.score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-md);
}

.score-grid-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-md);
  background: var(--color-background-secondary);
  border-radius: var(--radius-sm);
}

.score-grid-label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.score-grid-value {
  font-family: var(--font-mono);
  font-size: var(--text-h5);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
}

/* Performance Indicator Icon */
.performance-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: var(--font-weight-bold);
}

.performance-icon-excellent {
  background: var(--color-success);
  color: white;
}

.performance-icon-good {
  background: #84cc16;
  color: white;
}

.performance-icon-average {
  background: var(--color-warning);
  color: white;
}

.performance-icon-poor {
  background: var(--color-danger);
  color: white;
}

/* Responsive Grid Layouts */
@media (max-width: 1024px) {
  .hardware-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .score-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hardware-grid {
    grid-template-columns: 1fr;
  }
  
  .hardware-card-specs {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .score-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hardware-card-specs {
    grid-template-columns: 1fr;
  }
  
  .score-comparison {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ============================================
   CARD COMPONENTS
   ============================================ */

/* Base Card Styles */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md); /* 10px - within 6-16px range */
  padding: var(--space-lg); /* 24px padding */
  transition: all var(--transition-base); /* Smooth transitions for hover effects */
  box-shadow: var(--shadow-xs);
}

/* Card hover states with elevation and border changes */
.card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md); /* Elevation change */
  transform: translateY(-2px); /* Slight lift effect */
}

/* Card variants with different border radius sizes */
.card-sm {
  border-radius: var(--radius-sm); /* 6px */
  padding: var(--space-md); /* 16px */
}

.card-lg {
  border-radius: var(--radius-lg); /* 16px */
  padding: var(--space-xl); /* 32px */
}

/* Interactive card - for clickable cards */
.card-interactive {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-interactive:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-interactive:active {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Card with gradient background */
.card-gradient {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
}

/* Specs grid inside cards - 2x2 layout that fits within card width */
.card .specs-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.card .spec-item {
  padding: var(--space-sm) var(--space-md);
  min-width: 0;
}

.card .spec-label {
  font-size: 0.65rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card .spec-value {
  font-size: var(--text-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Card with elevated appearance */
.card-elevated {
  box-shadow: var(--shadow-md);
}

.card-elevated:hover {
  box-shadow: var(--shadow-lg);
}

/* Card with no border */
.card-borderless {
  border: none;
}

/* Card with accent border */
.card-accent {
  border-left: 4px solid var(--color-primary);
}

.card-accent-success {
  border-left: 4px solid var(--color-success);
}

.card-accent-warning {
  border-left: 4px solid var(--color-warning);
}

.card-accent-danger {
  border-left: 4px solid var(--color-danger);
}

/* Card header */
.card-header {
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.card-header h2,
.card-header h3,
.card-header h4 {
  margin-bottom: 0;
}

/* Card body */
.card-body {
  padding: var(--space-md) 0;
}

/* Card footer */
.card-footer {
  padding-top: var(--space-md);
  margin-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

/* Card title */
.card-title {
  font-size: var(--text-h4);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

/* Card subtitle */
.card-subtitle {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}

/* Card text */
.card-text {
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

/* Card grid layout */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.card-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Card list layout */
.card-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Responsive card grid */
@media (max-width: 768px) {
  .card-grid,
  .card-grid-2,
  .card-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   BUTTON COMPONENTS
   ============================================ */

/* Base Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-small);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Primary Button - Gradient with hover effects */
.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  filter: brightness(1.1);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: var(--shadow-sm);
}

/* Secondary Button - Border with hover effects */
.btn-secondary {
  background: transparent;
  border: 2px solid var(--color-border);
  color: var(--color-text-primary);
}

.btn-secondary:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:active {
  transform: translateY(0) scale(0.98);
  background: var(--color-primary-light);
}

/* Outline Button Variant */
.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline:active {
  transform: translateY(0) scale(0.98);
}

/* Ghost Button Variant */
.btn-ghost {
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
}

.btn-ghost:hover {
  background: var(--color-surface-hover);
  color: var(--color-text-primary);
}

.btn-ghost:active {
  transform: scale(0.98);
  background: var(--color-primary-light);
}

/* Icon Buttons - Proper sizing */
.btn-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
}

.btn-icon:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: scale(1.05);
}

.btn-icon:active {
  transform: scale(0.95);
}

/* Large Icon Button */
.btn-icon-lg {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
}

/* Small Icon Button */
.btn-icon-sm {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
}

/* Button Sizes */
.btn-sm {
  padding: 8px 16px;
  font-size: var(--text-xs);
}

.btn-lg {
  padding: 16px 32px;
  font-size: var(--text-body);
}

/* Button with Icon */
.btn-with-icon {
  gap: var(--space-sm);
}

.btn-with-icon svg,
.btn-with-icon i {
  width: 1.25em;
  height: 1.25em;
}

/* Danger Button */
.btn-danger {
  background: var(--color-danger);
  color: var(--color-text-inverse);
}

.btn-danger:hover {
  background: #dc2626;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-danger:active {
  transform: translateY(0) scale(0.98);
}

/* Success Button */
.btn-success {
  background: var(--color-success);
  color: var(--color-text-inverse);
}

.btn-success:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-success:active {
  transform: translateY(0) scale(0.98);
}

/* Button Group */
.btn-group {
  display: inline-flex;
  gap: var(--space-sm);
}

.btn-group .btn {
  margin: 0;
}

/* Full Width Button */
.btn-block {
  width: 100%;
  display: flex;
}

/* ============================================
   HERO SECTION
   ============================================ */

/* Hero Section - Full-width with gradient background */
.hero-section {
  width: 100%;
  background: var(--gradient-hero);
  padding: 80px var(--space-lg);
  margin: 0 -24px; /* Offset main padding */
  margin-top: -40px; /* Offset main padding top */
  position: relative;
  overflow: hidden;
}

/* Add subtle pattern overlay */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* Hero Content Container */
.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Hero Heading - Large with gradient text effect */
.hero-heading {
  font-size: var(--text-display); /* 3.5rem / 56px */
  font-weight: var(--font-weight-extrabold);
  line-height: var(--line-height-tight);
  color: var(--color-text-inverse);
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Hero Subheading - Descriptive text */
.hero-subheading {
  font-size: 1.25rem; /* 20px */
  line-height: var(--line-height-relaxed);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--space-2xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Search Container */
.hero-search {
  margin-bottom: var(--space-xl);
  display: flex;
  justify-content: center;
}

/* Hero Search Form */
.hero-search-form {
  position: relative;
  width: 100%;
  max-width: 600px;
}

/* Hero Search Input - Prominent, 400px wide on desktop */
.hero-search-input {
  width: 100%;
  padding: 18px 24px;
  padding-right: 60px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  color: var(--color-text-primary);
  font-size: var(--text-body);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-lg);
}

.hero-search-input::placeholder {
  color: var(--color-text-muted);
}

/* Search bar glow effect on focus */
.hero-search-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2), var(--shadow-xl);
  background: rgba(255, 255, 255, 1);
}

/* Hero Search Button */
.hero-search-button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  padding: 12px;
  background: var(--color-primary);
  border: none;
  border-radius: var(--radius-md);
  color: var(--color-text-inverse);
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.hero-search-button:hover {
  background: var(--color-primary-hover);
  transform: translateY(-50%) scale(1.05);
  box-shadow: var(--shadow-md);
}

.hero-search-button:active {
  transform: translateY(-50%) scale(0.98);
}

.hero-search-button svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   HERO COMPARISON WIDGET
   ============================================ */
.hero-compare-widget {
  width: 100%;
  max-width: 750px;
  margin: 0 auto var(--space-xl);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-compare-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-compare-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.hero-compare-tab:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.05);
}

.hero-compare-tab.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.hero-compare-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
}

.hero-compare-tab svg {
  opacity: 0.7;
  flex-shrink: 0;
}

.hero-compare-tab.active svg {
  opacity: 1;
}

.hero-compare-panel {
  display: none;
  padding: 20px 24px;
  background: rgba(30, 58, 95, 0.85);
  backdrop-filter: blur(12px);
}

.hero-compare-panel.active {
  display: block;
}

.hero-compare-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-compare-row-single {
  justify-content: center;
}

.hero-compare-select-wrap {
  flex: 1;
  min-width: 0;
}

.hero-compare-select-full {
  flex: 1;
  max-width: 100%;
}

.hero-compare-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.hero-compare-select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: auto;
}

.hero-compare-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.hero-compare-vs {
  flex-shrink: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.7);
  padding: 0 4px;
  letter-spacing: 1px;
}

.hero-compare-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 14px;
  padding: 12px 24px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-compare-btn:hover:not(:disabled) {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.hero-compare-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.hero-compare-btn svg {
  flex-shrink: 0;
}

/* Advanced Options */
.hero-compare-advanced-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 6px 0;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
}

.hero-compare-advanced-toggle:hover {
  color: rgba(255, 255, 255, 0.9);
}

.hero-compare-advanced-toggle svg {
  transition: transform 0.2s ease;
}

.hero-compare-advanced-toggle.expanded svg {
  transform: rotate(180deg);
}

.hero-compare-advanced {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 640px) {
  .hero-compare-widget {
    max-width: 100%;
  }

  .hero-compare-tab {
    font-size: 0.75rem;
    padding: 10px 8px;
  }

  .hero-compare-tab svg {
    display: none;
  }

  .hero-compare-panel {
    padding: 16px;
  }

  .hero-compare-row {
    flex-direction: column;
    gap: 8px;
  }

  .hero-compare-vs {
    font-size: 0.9rem;
  }

  .hero-compare-select-wrap {
    width: 100%;
  }
}

/* Hero CTA Buttons */
.hero-cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive Hero Section */
@media (max-width: 768px) {
  .hero-section {
    padding: 48px var(--space-md);
    margin: 0 -16px;
    margin-top: -32px;
  }
  
  .hero-heading {
    font-size: 2.5rem; /* 40px on mobile */
  }
  
  .hero-subheading {
    font-size: 1.125rem; /* 18px on mobile */
    margin-bottom: var(--space-xl);
  }
  
  .hero-search-form {
    max-width: 100%;
  }
  
  .hero-search-input {
    padding: 16px 20px;
    padding-right: 56px;
    font-size: var(--text-small);
  }
  
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-cta .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-heading {
    font-size: 2rem; /* 32px on small mobile */
  }
  
  .hero-subheading {
    font-size: 1rem; /* 16px on small mobile */
  }
}

/* ============================================
   HOMEPAGE SECTIONS
   ============================================ */

/* Statistics Section */
.stats-section {
  margin-bottom: var(--space-3xl);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-base);
}

.stat-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  color: var(--color-text-inverse);
}

.stat-icon svg {
  width: 32px;
  height: 32px;
}

.stat-value {
  font-size: var(--text-h1);
  font-weight: var(--font-weight-extrabold);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-sm);
  line-height: var(--line-height-tight);
}

.stat-label {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
}

/* Featured Sections */
.featured-section {
  margin-bottom: var(--space-3xl);
}

.section-header {
  margin-bottom: var(--space-xl);
  text-align: center;
}

.section-header h2 {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--text-h2);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
}

.section-icon {
  color: var(--color-primary);
}

.section-description {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.section-footer {
  margin-top: var(--space-xl);
  text-align: center;
}

/* Card Link Wrapper */
.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Feature Cards for Browse Section */
.card-feature {
  text-align: center;
  padding: var(--space-xl);
  position: relative;
}

.card-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: var(--gradient-card);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
  color: var(--color-primary);
  transition: all var(--transition-base);
}

.card-feature:hover .card-feature-icon {
  background: var(--gradient-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
  transform: scale(1.1) rotate(5deg);
}

.card-feature .card-title {
  font-size: var(--text-h4);
  margin-bottom: var(--space-md);
}

.card-feature .card-text {
  font-size: var(--text-small);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-lg);
}

.card-arrow {
  font-size: var(--text-h3);
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
  transition: transform var(--transition-base);
}

.card-feature:hover .card-arrow {
  transform: translateX(8px);
}

/* Browse Section */
.browse-section {
  margin-bottom: var(--space-3xl);
}

/* ============================================
   INTERACTIVE TOOLS SECTION V2 - STATE OF THE ART
   ============================================ */

.tools-section-v2 {
  margin-bottom: var(--space-3xl);
}

.tools-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.tool-card-v2 {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: var(--space-xl);
  text-decoration: none;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-card-v2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--card-accent), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tool-card-v2:hover::before {
  opacity: 1;
}

.tool-card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--card-accent) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.tool-card-v2:hover .tool-card-glow {
  opacity: 0.08;
}

.tool-card-v2:hover {
  transform: translateY(-8px);
  border-color: var(--card-accent);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 0 0 1px var(--card-accent-light);
}

/* Card Color Variants */
.tool-card-gold {
  --card-accent: #f59e0b;
  --card-accent-light: rgba(245, 158, 11, 0.2);
}

.tool-card-purple {
  --card-accent: #8b5cf6;
  --card-accent-light: rgba(139, 92, 246, 0.2);
}

.tool-card-red {
  --card-accent: #ef4444;
  --card-accent-light: rgba(239, 68, 68, 0.2);
}

.tool-card-green {
  --card-accent: #10b981;
  --card-accent-light: rgba(16, 185, 129, 0.2);
}

.tool-card-blue {
  --card-accent: #3b82f6;
  --card-accent-light: rgba(59, 130, 246, 0.2);
}

.tool-card-teal {
  --card-accent: #14b8a6;
  --card-accent-light: rgba(20, 184, 166, 0.2);
}

/* Card Header */
.tool-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.tool-icon-wrapper {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--card-accent-light), rgba(255, 255, 255, 0.05));
  border-radius: 16px;
  transition: all 0.4s ease;
  position: relative;
}

.tool-icon-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--card-accent), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tool-card-v2:hover .tool-icon-wrapper {
  transform: scale(1.1) rotate(-5deg);
}

.tool-card-v2:hover .tool-icon-wrapper::after {
  opacity: 0.3;
}

.tool-icon-wrapper svg {
  width: 32px;
  height: 32px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: filter 0.3s ease;
}

.tool-card-v2:hover .tool-icon-wrapper svg {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.tool-badge {
  padding: 6px 12px;
  background: var(--card-accent-light);
  color: var(--card-accent);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.tool-card-v2:hover .tool-badge {
  background: var(--card-accent);
  color: white;
  transform: scale(1.05);
}

/* Card Content */
.tool-card-content {
  flex: 1;
  margin-bottom: var(--space-lg);
}

.tool-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
  transition: color 0.3s ease;
}

.tool-card-v2:hover .tool-card-title {
  color: var(--card-accent);
}

.tool-card-desc {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.tool-card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--space-md);
}

.tool-feature {
  padding: 4px 10px;
  background: var(--color-background-secondary);
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  font-weight: 500;
  transition: all 0.3s ease;
}

.tool-card-v2:hover .tool-feature {
  background: var(--card-accent-light);
  color: var(--card-accent);
}

/* Card Footer */
.tool-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  transition: border-color 0.3s ease;
  gap: var(--space-md);
}

.tool-card-v2:hover .tool-card-footer {
  border-color: var(--card-accent-light);
}

.tool-cta {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-primary);
  transition: color 0.3s ease;
  flex: 0 1 auto;
  white-space: nowrap;
}

.tool-card-v2:hover .tool-cta {
  color: var(--card-accent);
}

.tool-arrow-wrapper {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-arrow {
  width: 100%;
  height: 100%;
  color: var(--color-text-muted);
  transition: all 0.3s ease;
}

.tool-card-v2:hover .tool-arrow {
  color: var(--card-accent);
}

.tool-card-v2:hover .tool-arrow-wrapper {
  transform: translateX(4px);
}

/* Dark Theme Support */
[data-theme="dark"] .tool-card-v2 {
  background: rgba(30, 41, 59, 0.5);
  border-color: rgba(71, 85, 105, 0.5);
}

[data-theme="dark"] .tool-card-v2:hover {
  background: rgba(30, 41, 59, 0.8);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px var(--card-accent-light);
}

[data-theme="dark"] .tool-icon-wrapper {
  background: linear-gradient(135deg, var(--card-accent-light), rgba(0, 0, 0, 0.2));
}

[data-theme="dark"] .tool-feature {
  background: rgba(71, 85, 105, 0.3);
}

[data-theme="dark"] .tool-card-v2:hover .tool-feature {
  background: var(--card-accent-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .tools-grid-v2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .tools-grid-v2 {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .tool-card-v2 {
    padding: var(--space-lg);
  }
  
  .tool-icon-wrapper {
    width: 56px;
    height: 56px;
  }
  
  .tool-icon-wrapper svg {
    width: 28px;
    height: 28px;
  }
  
  .tool-card-title {
    font-size: 1.125rem;
  }
  
  .tool-card-desc {
    font-size: 0.875rem;
  }
}

/* Spec Items with Icons */
.spec-item .spec-label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.spec-item .spec-label svg {
  width: 14px;
  height: 14px;
  color: var(--color-primary);
}

/* Responsive Homepage Sections */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .section-header h2 {
    font-size: var(--text-h3);
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .featured-section {
    margin-bottom: var(--space-2xl);
  }
}

/* Compare Section */
.compare-section {
  margin-top: var(--space-2xl);
  padding: var(--space-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.compare-section h2 {
  font-size: var(--text-h4);
  margin-bottom: var(--space-md);
}

.compare-section p {
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}

/* Notes Section */
.notes-section {
  margin-top: var(--space-2xl);
  padding: var(--space-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-lg);
}

.notes-section h2 {
  font-size: var(--text-h4);
  margin-bottom: var(--space-md);
}

.notes-content {
  color: var(--color-text-secondary);
  line-height: var(--line-height-loose);
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.notes-content p {
  margin-bottom: var(--space-md);
  max-width: 100%;
}

.notes-content p:last-child {
  margin-bottom: 0;
}

/* Game About Section - Full width above FPS data */
.game-about-section {
  margin-bottom: var(--space-xl);
  padding: var(--space-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  width: 100%;
}

.game-about-section h2 {
  font-size: var(--text-h3);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: var(--color-text-primary);
}

.game-about-content {
  color: var(--color-text-secondary);
  line-height: 1.8;
  font-size: var(--text-body);
  width: 100%;
  max-width: 100%;
}

.game-about-content p {
  margin-bottom: var(--space-md);
  max-width: 100% !important;
  width: 100%;
}

.game-about-content p:last-child {
  margin-bottom: 0;
}

/* ============================================
   SEARCH RESULTS LAYOUT
   ============================================ */

/* Search Results Container */
.search-results {
  margin-top: var(--space-xl);
}

/* Results Summary */
.results-summary {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  font-weight: var(--font-weight-medium);
}

/* Search Group - Grouped results by category */
.search-group {
  margin-bottom: var(--space-2xl);
}

/* Category Headers with Counts */
.search-group h2 {
  font-size: var(--text-h4);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

/* Category Count Badge */
.search-group h2::after {
  content: attr(data-count);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 var(--space-sm);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-radius: var(--radius-full);
  font-size: var(--text-small);
  font-weight: var(--font-weight-bold);
  line-height: 1;
}

/* Search Results Grid */
.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-md);
}

/* Result Card - with name, badge, specs, and icons */
.search-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-lg);
  text-decoration: none;
  color: var(--color-text-primary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

/* Decorative gradient overlay */
.search-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
}

/* Hover effects - border highlight, elevation */
.search-item:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.search-item:hover::before {
  opacity: 1;
}

.search-item:active {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Search Item Header */
.search-item-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Search Item Icon Box - EXACT match to hw-card-v2-image */
.search-item-icon-box {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all var(--transition-base);
}

.search-item-icon-box .vendor-icon {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
}

/* Vendor-specific overrides for search icons */
.search-item-icon-box .vendor-intel,
.search-item-icon-box .vendor-intel-2020,
.search-item-icon-box .vendor-intel-2006,
.search-item-icon-box .vendor-intel-1991 {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
}

.search-item-icon-box .vendor-amd {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
}

.search-item-icon-box .vendor-nvidia,
.search-item-icon-box .vendor-nvidia-2006,
.search-item-icon-box .vendor-nvidia-1993 {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
}

.search-item:hover .search-item-icon-box {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
  transform: scale(1.05);
}

[data-theme="light"] .search-item-icon-box {
  background: rgba(248, 250, 252, 1);
  border-color: rgba(226, 232, 240, 1);
}

[data-theme="light"] .search-item:hover .search-item-icon-box {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.3);
}

/* Search Item Icon (legacy - for emoji fallback) */
.search-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
  color: var(--color-primary);
  font-size: 24px;
  transition: all var(--transition-base);
}

/* Vendor icons in search results */
.search-item-header .vendor-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  flex-shrink: 0;
}

.search-item:hover .search-item-icon {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  transform: scale(1.1) rotate(5deg);
}

/* Search Item Content */
.search-item-content {
  flex: 1;
  min-width: 0;
}

/* Search Item Name */
.search-item-name {
  font-size: var(--text-h5);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
  line-height: var(--line-height-tight);
  word-break: break-word;
}

/* Type Badge */
.search-item-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.search-item-badge.badge-cpu {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.search-item-badge.badge-gpu {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.search-item-badge.badge-game {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

/* Search Item Meta - Key specs or info */
.search-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  margin-top: var(--space-sm);
}

.search-item-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-item-meta-item::before {
  content: '•';
  color: var(--color-text-muted);
  font-weight: var(--font-weight-bold);
}

.search-item-meta-item:first-child::before {
  content: none;
}

/* Search Item Specs Grid */
.search-item-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.search-item-spec {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.search-item-spec-label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.search-item-spec-value {
  font-size: var(--text-small);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  font-family: var(--font-mono);
}

/* No Results State */
.no-results {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.no-results-icon {
  font-size: 4rem;
  margin-bottom: var(--space-lg);
  opacity: 0.3;
}

.no-results h3 {
  font-size: var(--text-h3);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

.no-results p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.no-results-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-xl);
}

/* Search Form Large (for search page) */
.search-form-large {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.search-form-large input {
  flex: 1;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-size: var(--text-body);
  transition: all var(--transition-base);
}

.search-form-large input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
  background: var(--color-background);
}

.search-form-large button {
  padding: var(--space-md) var(--space-xl);
  background: var(--gradient-primary);
  color: var(--color-text-inverse);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-body);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.search-form-large button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  filter: brightness(1.1);
}

.search-form-large button:active {
  transform: translateY(0) scale(0.98);
}

/* Responsive Search Results */
@media (max-width: 1024px) {
  .search-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .search-results-grid {
    grid-template-columns: 1fr;
  }
  
  .search-group h2 {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
  
  .search-group h2::after {
    position: static;
  }
  
  .search-form-large {
    flex-direction: column;
  }
  
  .search-form-large button {
    width: 100%;
  }
  
  .search-item-specs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .search-item {
    padding: var(--space-md);
  }
  
  .search-item-header {
    flex-direction: column;
  }
  
  .search-item-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 20px;
  }
  
  .search-item-name {
    font-size: var(--text-h6);
  }
  
  .no-results {
    padding: var(--space-2xl) var(--space-md);
  }
}

/* Footer */
footer {
  background: var(--color-background-secondary);
  border-top: 1px solid var(--color-border);
  margin-top: auto;
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.footer-section h2 {
  font-size: var(--text-body);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-md);
  color: var(--color-text-primary);
}

.footer-section p {
  color: var(--color-text-secondary);
  font-size: var(--text-small);
  line-height: var(--line-height-relaxed);
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 10px;
}

.footer-section a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: var(--text-small);
  transition: color var(--transition-base);
}

.footer-section a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  max-width: var(--container-max);
  margin: 40px auto 0;
  padding: var(--space-lg) var(--space-lg) 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--text-small);
}

/* Error Page */
.error-page {
  text-align: center;
  padding: 80px var(--space-lg);
}

.error-code {
  font-size: 8rem;
  font-weight: var(--font-weight-extrabold);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: var(--line-height-tight);
}

.error-message {
  font-size: var(--text-h4);
  color: var(--color-text-secondary);
  margin: var(--space-lg) 0 40px;
}

/* Quick Filters */
.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.quick-filters a {
  padding: var(--space-sm) var(--space-md);
  text-decoration: none;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--text-small);
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-base);
}

.quick-filters a:hover,
.quick-filters a.active {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}

/* FPS Values */
.fps-value {
  font-weight: var(--font-weight-bold);
  font-family: var(--font-mono);
}

.fps-great { color: var(--color-success); }
.fps-good { color: #84cc16; }
.fps-okay { color: var(--color-warning); }
.fps-poor { color: var(--color-danger); }

/* FPS Link - clickable FPS value to combination page */
.fps-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
  transition: all 0.2s;
}

.fps-link:hover {
  color: var(--color-primary);
  border-bottom-style: solid;
}

/* Ad Containers */
.ad-container {
  min-height: 90px;
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--space-lg) 0;
  color: var(--color-text-muted);
  font-size: var(--text-small);
}

.ad-container-large {
  min-height: 250px;
}

/* ============================================
   ACCESSIBILITY - FOCUS INDICATORS
   ============================================ */

/* Focus States - 2px outline for all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Enhanced focus for specific interactive elements */
.btn:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px var(--color-primary-light);
}

/* Card focus indicators */
.card:focus-visible,
.hardware-card:focus-visible,
.search-item:focus-visible,
.card-interactive:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md), 0 0 0 4px var(--color-primary-light);
}

/* Navigation link focus */
.nav-links a:focus-visible,
.mobile-nav-links a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  background: var(--color-primary-light);
}

/* Theme toggle focus */
.theme-toggle:focus-visible,
.mobile-menu-toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--color-primary-light);
}

/* Search input focus */
.search-form input:focus-visible,
.hero-search-input:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Table row focus (for keyboard navigation) */
tbody tr:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
  background: var(--color-primary-light);
}

/* Pagination link focus */
.pagination-link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--color-primary-light);
}

/* Breadcrumb link focus */
.breadcrumb a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  background: var(--color-primary-light);
}

/* Filter select focus */
.filter-group select:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--color-primary-light);
}

/* Footer link focus */
footer a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  text-decoration: underline;
}

/* Skip link - Enhanced visibility on focus */
.skip-link:focus {
  top: 10px;
  outline: 2px solid var(--color-text-inverse);
  outline-offset: 2px;
}

/* Remove default focus outline for mouse users (keep for keyboard) */
*:focus:not(:focus-visible) {
  outline: none;
}

/* Ensure focus is visible in high contrast mode */
@media (prefers-contrast: high) {
  *:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
  }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  .nav-container {
    padding: 0 var(--space-md);
  }
  
  main {
    padding: var(--space-xl) var(--space-md);
  }
  
  .search-form input {
    width: 200px;
  }
}

/* Tablet and Mobile - Show mobile navigation */
@media (max-width: 768px) {
  /* Header adjustments */
  .nav-container {
    height: var(--header-height);
    padding: 0 var(--space-md);
    gap: var(--space-md);
  }
  
  /* Hide desktop navigation */
  .nav-links {
    display: none;
  }
  
  /* Show mobile menu toggle */
  .mobile-menu-toggle {
    display: flex;
  }
  
  /* Show mobile navigation */
  .mobile-nav {
    display: block;
  }
  
  /* Adjust search form */
  .search-form {
    flex: 1;
    min-width: 0;
  }
  
  .search-form input {
    width: 100%;
    min-width: 0;
  }
  
  /* Page content adjustments */
  .page-header h1 {
    font-size: 1.75rem;
  }
  
  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hardware-item {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .hardware-item-specs {
    flex-wrap: wrap;
    gap: var(--space-md);
  }
  
  .filters {
    flex-direction: column;
  }
  
  .filter-group select {
    width: 100%;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .specs-grid {
    grid-template-columns: 1fr;
  }
  
  .logo-text {
    font-size: var(--text-h4);
  }
  
  .logo-img {
    height: 30px;
  }
  
  .search-form input {
    font-size: var(--text-xs);
    padding: var(--space-sm) var(--space-md);
    padding-right: 45px;
  }
  
  .search-form button {
    padding: var(--space-xs) var(--space-sm);
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --color-border: #000000;
    --color-text-secondary: #000000;
  }
  
  [data-theme="dark"] {
    --color-border: #ffffff;
    --color-text-secondary: #ffffff;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* ============================================
   COMPARISON PAGE LAYOUT
   ============================================ */

/* Comparison Container - Side-by-side layout */
.comparison-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

/* Comparison Card - Individual hardware card */
.comparison-card {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.comparison-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* Winner indicator badge */
.comparison-card.winner {
  border-color: var(--color-success);
  background: linear-gradient(180deg, var(--color-success-light) 0%, var(--color-surface) 100%);
}

.comparison-card.winner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-success) 0%, #059669 100%);
}

/* Winner badge icon */
.winner-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--color-success);
  color: white;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-md);
  z-index: 10;
}

.winner-badge::before {
  content: '👑';
  font-size: 14px;
}

/* Comparison Card Header - Sticky */
.comparison-card-header {
  position: sticky;
  top: calc(var(--header-height) + 10px);
  background: var(--color-surface);
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-lg);
  border-bottom: 2px solid var(--color-border);
  z-index: 5;
}

.comparison-card-title {
  font-size: var(--text-h3);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
  padding-right: 80px; /* Space for winner badge */
}

.comparison-card-subtitle {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
}

/* Comparison Specs Section */
.comparison-specs {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Individual Spec Row */
.comparison-spec-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-md);
  background: var(--color-background-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.comparison-spec-row:hover {
  background: var(--color-surface-hover);
}

/* Spec Label */
.comparison-spec-label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Spec Value Container */
.comparison-spec-value-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

/* Spec Value */
.comparison-spec-value {
  font-size: var(--text-h5);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  font-family: var(--font-mono);
}

/* Better/Worse Value Indicators */
.comparison-spec-value.better {
  color: var(--color-success);
}

.comparison-spec-value.worse {
  color: var(--color-text-muted);
}

/* Visual indicator for better values */
.comparison-spec-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: var(--font-weight-bold);
  transition: all var(--transition-base);
}

.comparison-spec-indicator.better {
  background: var(--color-success-light);
  color: var(--color-success);
}

.comparison-spec-indicator.better::before {
  content: '↑';
}

.comparison-spec-indicator.worse {
  background: var(--color-background-tertiary);
  color: var(--color-text-muted);
}

.comparison-spec-indicator.worse::before {
  content: '↓';
}

.comparison-spec-indicator.equal {
  background: var(--color-background-tertiary);
  color: var(--color-text-secondary);
}

.comparison-spec-indicator.equal::before {
  content: '=';
}

/* Percentage Difference Badge */
.comparison-diff-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  font-family: var(--font-mono);
  white-space: nowrap;
}

.comparison-diff-badge.positive {
  background: var(--color-success-light);
  color: var(--color-success);
}

.comparison-diff-badge.positive::before {
  content: '+';
}

.comparison-diff-badge.negative {
  background: var(--color-danger-light);
  color: var(--color-danger);
}

.comparison-diff-badge.neutral {
  background: var(--color-background-tertiary);
  color: var(--color-text-muted);
}

/* Comparison Section Divider */
.comparison-section-divider {
  margin: var(--space-xl) 0;
  padding: var(--space-md) 0;
  border-top: 2px solid var(--color-border);
  border-bottom: 2px solid var(--color-border);
}

.comparison-section-title {
  font-size: var(--text-h4);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.comparison-section-title::before,
.comparison-section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--gradient-primary);
  max-width: 100px;
}

/* Benchmark Comparison Rows */
.comparison-benchmark-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--color-background-secondary);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  transition: all var(--transition-base);
}

.comparison-benchmark-row:hover {
  background: var(--color-surface-hover);
  box-shadow: var(--shadow-sm);
}

.comparison-benchmark-name {
  font-size: var(--text-small);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.comparison-benchmark-value {
  font-size: var(--text-h4);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Comparison Table (Legacy Support) */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-xl);
}

.comparison-table thead {
  background: var(--color-primary-light);
  position: sticky;
  top: var(--header-height);
  z-index: 10;
}

.comparison-table th {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  font-size: var(--text-small);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  border-bottom: 2px solid var(--color-border);
}

.comparison-table td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-small);
  vertical-align: middle;
}

.comparison-table tbody tr {
  transition: background var(--transition-fast);
}

.comparison-table tbody tr:hover {
  background: var(--color-surface-hover);
}

.comparison-table .better {
  color: var(--color-success);
  font-weight: var(--font-weight-semibold);
}

.comparison-table .worse {
  color: var(--color-text-muted);
}

/* Comparison Section (for table-based layout) */
.comparison-section {
  margin-bottom: var(--space-2xl);
}

.comparison-section h2 {
  font-size: var(--text-h3);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.comparison-section h2::before {
  content: '';
  width: 4px;
  height: var(--space-lg);
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* Comparison Summary Card */
.comparison-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
  padding: var(--space-xl);
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.comparison-summary-item {
  text-align: center;
}

.comparison-summary-label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-sm);
}

.comparison-summary-value {
  font-size: var(--text-h2);
  font-weight: var(--font-weight-extrabold);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Comparison Actions */
.comparison-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

/* Responsive Comparison Layout - Stack on mobile */
@media (max-width: 1024px) {
  .comparison-container {
    gap: var(--space-md);
  }
  
  .comparison-card {
    padding: var(--space-lg);
  }
  
  .comparison-card-title {
    font-size: var(--text-h4);
  }
  
  .comparison-spec-value {
    font-size: var(--text-h6);
  }
}

@media (max-width: 768px) {
  /* Stack cards vertically on mobile */
  .comparison-container {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .comparison-card-header {
    position: relative;
    top: 0;
  }
  
  .winner-badge {
    position: static;
    display: inline-flex;
    margin-bottom: var(--space-md);
  }
  
  .comparison-card-title {
    padding-right: 0;
  }
  
  .comparison-summary {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .comparison-actions {
    flex-direction: column;
  }
  
  .comparison-actions .btn {
    width: 100%;
  }
  
  /* Make table horizontally scrollable on mobile */
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .comparison-table {
    min-width: 600px;
  }
}

@media (max-width: 480px) {
  .comparison-card {
    padding: var(--space-md);
  }
  
  .comparison-spec-row {
    padding: var(--space-sm);
  }
  
  .comparison-spec-value {
    font-size: var(--text-body);
  }
  
  .comparison-diff-badge {
    font-size: 10px;
    padding: 2px 6px;
  }
}

/* ============================================
   FOOTER DESIGN
   ============================================ */

/* Footer - Dark background with top border/shadow */
footer {
  background: var(--color-background-secondary);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  margin-top: auto;
  padding: var(--space-3xl) 0 var(--space-lg);
}

[data-theme="dark"] footer {
  background: var(--color-surface);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

/* Footer Container - Multi-column layout (3-4 columns on desktop) */
.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

/* Footer Section */
.footer-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Footer Section Heading */
.footer-section h2,
.footer-section h3 {
  font-size: var(--text-h6);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Footer Section Description */
.footer-section p {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  max-width: 100%;
}

/* Footer Links List */
.footer-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* Footer Links - with hover effects */
.footer-section a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: all var(--transition-base);
  padding: 4px 0;
  position: relative;
}

.footer-section a:hover {
  color: var(--color-primary);
  transform: translateX(4px);
}

/* Underline effect on hover */
.footer-section a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-base);
}

.footer-section a:hover::after {
  width: 100%;
}

/* Footer Logo/Brand Section */
.footer-brand {
  grid-column: span 1;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  text-decoration: none;
}

.footer-logo-img {
  height: 32px;
  width: auto;
}

/* Footer dark mode logo switching */
.footer-brand .logo-dark {
  display: none;
}

[data-theme="dark"] .footer-brand .logo-light {
  display: none;
}

[data-theme="dark"] .footer-brand .logo-dark {
  display: block;
}

.footer-logo-text {
  font-size: var(--text-h4);
  font-weight: var(--font-weight-extrabold);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Social Media Icons */
.footer-social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: all var(--transition-base);
  font-size: 18px;
}

.footer-social-link:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-inverse);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.footer-social-link:active {
  transform: translateY(0) scale(0.95);
}

/* Footer Bottom - Copyright and legal links */
.footer-bottom {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-lg);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: 0;
  max-width: 100%;
}

/* Footer Legal Links */
.footer-legal {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.footer-legal a {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer-legal a:hover {
  color: var(--color-primary);
}

/* Responsive Footer - Stack columns on mobile */
@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  footer {
    padding: var(--space-2xl) 0 var(--space-md);
  }
  
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    padding: 0 var(--space-md);
  }
  
  .footer-brand {
    grid-column: span 2;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: var(--space-md);
    gap: var(--space-md);
  }
  
  .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
  }
}

@media (max-width: 480px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .footer-brand {
    grid-column: span 1;
  }
  
  .footer-section {
    gap: var(--space-sm);
  }
  
  .footer-social {
    justify-content: flex-start;
  }
}

/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVE DESIGN
   Task 15.1: Mobile-specific styles and breakpoints
   Requirements: 6.1, 6.2, 6.3, 6.5
   ============================================ */

/* ============================================
   BREAKPOINT: 1024px (Tablet Landscape)
   ============================================ */
@media (max-width: 1024px) {
  /* Typography adjustments for tablet */
  :root {
    --text-display: 3rem; /* 48px */
    --text-h1: 2.25rem; /* 36px */
    --text-h2: 1.875rem; /* 30px */
  }
  
  /* Container adjustments */
  main {
    padding: var(--space-xl) var(--space-lg);
  }
  
  /* Button adjustments - ensure minimum touch target */
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .btn-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
  
  /* Card grid adjustments */
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
  
  /* Spec items - 2 columns on tablet */
  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
  
  /* Page header adjustments */
  .page-header {
    padding: var(--space-lg);
  }
  
  .page-header h1 {
    font-size: var(--text-h2);
  }
}

/* ============================================
   BREAKPOINT: 768px (Tablet Portrait / Large Mobile)
   ============================================ */
@media (max-width: 768px) {
  /* Typography adjustments for mobile */
  :root {
    --text-display: 2.5rem; /* 40px */
    --text-h1: 2rem; /* 32px */
    --text-h2: 1.75rem; /* 28px */
    --text-h3: 1.375rem; /* 22px */
    --text-h4: 1.125rem; /* 18px */
  }
  
  /* Body and main container */
  body {
    font-size: 15px; /* Slightly smaller on mobile for better fit */
  }
  
  main {
    padding: var(--space-lg) var(--space-md);
  }
  
  /* Ensure all interactive elements meet 44x44px minimum touch target */
  a, button, input[type="submit"], input[type="button"], 
  select, .btn, .nav-links a, .pagination-link {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Navigation adjustments */
  .nav-container {
    padding: 0 var(--space-md);
    gap: var(--space-sm);
  }
  
  .logo-text {
    font-size: var(--text-h4);
  }
  
  .logo-img {
    height: 30px;
  }
  
  /* Search form in header - full width on mobile */
  .search-form {
    flex: 1;
    min-width: 0;
  }
  
  .search-form input {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-small);
  }
  
  /* Breadcrumb - wrap on mobile */
  .breadcrumb ol {
    flex-wrap: wrap;
    gap: var(--space-xs);
  }
  
  /* Page header - single column layout */
  .page-header {
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
  }
  
  .page-header h1 {
    font-size: var(--text-h2);
    margin-bottom: var(--space-sm);
  }
  
  .page-header-info {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
  
  /* Specs grid - single column on mobile */
  .specs-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .spec-item {
    padding: var(--space-md);
  }
  
  /* Hardware cards - single column */
  .hardware-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .hardware-card {
    padding: var(--space-md);
  }
  
  .hardware-card-specs {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }
  
  /* Buttons - full width on mobile for better touch targets */
  .btn-block,
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Card grids - single column */
  .card-grid,
  .card-grid-2,
  .card-grid-3 {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  /* Stats grid - single column */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  /* Filters - stack vertically */
  .filters {
    flex-direction: column;
    padding: var(--space-md);
    gap: var(--space-md);
  }
  
  .filter-group {
    width: 100%;
  }
  
  .filter-group select {
    width: 100%;
    min-width: 0;
  }
  
  /* Pagination - adjust spacing */
  .pagination-list {
    gap: 4px;
  }
  
  .pagination-link {
    min-width: 40px;
    height: 40px;
    padding: 0 var(--space-sm);
    font-size: var(--text-xs);
  }
  
  /* Section headers - adjust alignment */
  .section-header h2 {
    font-size: var(--text-h3);
    flex-direction: column;
    text-align: center;
  }
  
  /* Comparison layout - stack vertically */
  .comparison-container {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .comparison-card {
    padding: var(--space-md);
  }
  
  .comparison-card-header {
    position: static; /* Remove sticky on mobile */
  }
  
  /* Score grids - single column */
  .score-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  
  /* Search results - single column */
  .search-results-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .search-item {
    padding: var(--space-md);
  }
  
  /* Benchmark charts - adjust for mobile */
  .benchmark-chart {
    padding: var(--space-md);
  }
  
  .benchmark-chart-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }
  
  /* Table adjustments - ensure horizontal scroll */
  .table-container {
    margin-left: calc(-1 * var(--space-md));
    margin-right: calc(-1 * var(--space-md));
    width: calc(100% + 2 * var(--space-md));
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  
  table {
    min-width: 600px; /* Ensure minimum width for readability */
  }
  
  th, td {
    padding: 12px 16px;
    font-size: var(--text-xs);
  }
  
  /* Hero section - mobile adjustments */
  .hero-section {
    padding: var(--space-2xl) var(--space-md);
    margin: 0 calc(-1 * var(--space-md));
    margin-top: calc(-1 * var(--space-lg));
  }
  
  .hero-heading {
    font-size: 2.25rem; /* 36px */
  }
  
  .hero-subheading {
    font-size: 1.125rem; /* 18px */
  }
  
  .hero-cta {
    flex-direction: column;
    width: 100%;
    gap: var(--space-sm);
  }
  
  /* Footer - adjust layout */
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    padding: 0 var(--space-md);
  }
}

/* ============================================
   BREAKPOINT: 480px (Small Mobile)
   ============================================ */
@media (max-width: 480px) {
  /* Typography - further adjustments for small screens */
  :root {
    --text-display: 2rem; /* 32px */
    --text-h1: 1.75rem; /* 28px */
    --text-h2: 1.5rem; /* 24px */
    --text-h3: 1.25rem; /* 20px */
    --text-h4: 1.125rem; /* 18px */
    --text-h5: 1rem; /* 16px */
  }
  
  /* Body adjustments */
  body {
    font-size: 14px; /* Smaller base font for very small screens */
  }
  
  main {
    padding: var(--space-md);
  }
  
  /* Spacing adjustments for small screens */
  :root {
    --space-lg: 20px;
    --space-xl: 28px;
    --space-2xl: 40px;
    --space-3xl: 56px;
  }
  
  /* Logo - smaller on small mobile */
  .logo-text {
    font-size: 1.125rem;
  }
  
  .logo-img {
    height: 26px;
  }
  
  /* Search form - compact */
  .search-form input {
    padding: 10px var(--space-md);
    padding-right: 45px;
    font-size: var(--text-xs);
  }
  
  .search-form button {
    width: 36px;
    height: 36px;
    padding: var(--space-xs);
  }
  
  /* Theme toggle and mobile menu - ensure 44x44px minimum */
  .theme-toggle,
  .mobile-menu-toggle {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
  
  /* Page header - compact */
  .page-header {
    padding: var(--space-md);
  }
  
  .page-header h1 {
    font-size: var(--text-h3);
  }
  
  .page-header-badge {
    font-size: 10px;
    padding: 4px 8px;
  }
  
  /* Specs - single column with compact spacing */
  .specs-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  
  .spec-item {
    padding: var(--space-md);
  }
  
  .spec-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 18px;
  }
  
  .spec-value {
    font-size: var(--text-h5);
  }
  
  /* Hardware cards - compact */
  .hardware-card {
    padding: var(--space-md);
  }
  
  .hardware-card-name {
    font-size: var(--text-h6);
  }
  
  .hardware-card-specs {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  
  .hardware-spec-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    font-size: 14px;
  }
  
  /* Buttons - ensure proper touch targets */
  .btn {
    padding: 12px 20px;
    font-size: var(--text-small);
    min-height: 44px;
  }
  
  .btn-sm {
    padding: 10px 16px;
    font-size: var(--text-xs);
    min-height: 40px;
  }
  
  .btn-lg {
    padding: 14px 24px;
    font-size: var(--text-body);
    min-height: 48px;
  }
  
  /* Cards - compact padding */
  .card {
    padding: var(--space-md);
    border-radius: var(--radius-sm);
  }
  
  .card-lg {
    padding: var(--space-lg);
  }
  
  /* Stats cards - compact */
  .stat-card {
    padding: var(--space-lg);
  }
  
  .stat-icon {
    width: 56px;
    height: 56px;
  }
  
  .stat-icon svg {
    width: 28px;
    height: 28px;
  }
  
  .stat-value {
    font-size: var(--text-h2);
  }
  
  /* Benchmark charts - compact */
  .benchmark-chart {
    padding: var(--space-sm);
  }
  
  .benchmark-bar-track {
    height: 28px;
  }
  
  .benchmark-chart-name {
    font-size: var(--text-xs);
  }
  
  .benchmark-chart-score {
    font-size: var(--text-xs);
  }
  
  /* Tables - more compact */
  th, td {
    padding: 10px 12px;
    font-size: 12px;
  }
  
  th.sortable {
    padding-right: 28px;
  }
  
  th.sortable::after {
    right: 8px;
    font-size: 12px;
  }
  
  /* Comparison cards - compact */
  .comparison-card {
    padding: var(--space-md);
  }
  
  .comparison-card-title {
    font-size: var(--text-h4);
    padding-right: 60px;
  }
  
  .comparison-spec-value {
    font-size: var(--text-h6);
  }
  
  .winner-badge {
    padding: 4px 8px;
    font-size: 10px;
  }
  
  /* Search items - compact */
  .search-item {
    padding: var(--space-md);
  }
  
  .search-item-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 20px;
  }
  
  .search-item-name {
    font-size: var(--text-body);
  }
  
  .search-item-specs {
    grid-template-columns: 1fr;
  }
  
  /* Hero section - compact */
  .hero-section {
    padding: var(--space-xl) var(--space-md);
  }
  
  .hero-heading {
    font-size: 1.875rem; /* 30px */
  }
  
  .hero-subheading {
    font-size: 1rem; /* 16px */
    margin-bottom: var(--space-lg);
  }
  
  .hero-search-input {
    padding: 14px 18px;
    padding-right: 52px;
    font-size: var(--text-small);
  }
  
  .hero-search-button {
    width: 40px;
    height: 40px;
  }
  
  /* Pagination - compact */
  .pagination-link {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 12px;
  }
  
  /* Footer - single column */
  .footer-container {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .footer-brand {
    grid-column: span 1;
  }
  
  /* Section headers - compact */
  .section-header h2 {
    font-size: var(--text-h4);
  }
  
  /* Filters - full width */
  .filters {
    padding: var(--space-md);
  }
  
  /* Score comparison - stack */
  .score-comparison {
    flex-direction: column;
    align-items: stretch;
  }
  
  /* No results - compact */
  .no-results {
    padding: var(--space-xl) var(--space-md);
  }
  
  .no-results-icon {
    font-size: 3rem;
  }
  
  .no-results h3 {
    font-size: var(--text-h4);
  }
}

/* ============================================
   BREAKPOINT: 320px (Extra Small Mobile)
   Ensure usability on the smallest devices
   ============================================ */
@media (max-width: 320px) {
  /* Further typography adjustments */
  :root {
    --text-display: 1.75rem; /* 28px */
    --text-h1: 1.5rem; /* 24px */
    --text-h2: 1.375rem; /* 22px */
    --text-h3: 1.125rem; /* 18px */
  }
  
  body {
    font-size: 13px;
  }
  
  /* Compact spacing */
  main {
    padding: var(--space-sm);
  }
  
  /* Logo - very compact */
  .logo-text {
    font-size: 1rem;
  }
  
  .logo-img {
    height: 22px;
  }
  
  /* Hero - very compact */
  .hero-heading {
    font-size: 1.625rem; /* 26px */
  }
  
  .hero-subheading {
    font-size: 0.9375rem; /* 15px */
  }
  
  /* Cards - minimal padding */
  .card,
  .hardware-card,
  .search-item {
    padding: var(--space-sm);
  }
}

/* ============================================
   VISUAL POLISH & EFFECTS
   Task 16.1: Gradients, shadows, animations
   Requirements: 4.1, 4.7, 11.3, 11.5
   ============================================ */

/* ============================================
   LOADING STATES & ANIMATIONS
   ============================================ */

/* Loading Spinner */
.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: var(--radius-full);
  animation: spin 0.8s linear infinite;
}

.loading-spinner-sm {
  width: 24px;
  height: 24px;
  border-width: 3px;
}

.loading-spinner-lg {
  width: 56px;
  height: 56px;
  border-width: 5px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Loading Container */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  padding: var(--space-3xl) var(--space-lg);
  text-align: center;
}

.loading-text {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
}

/* Skeleton Screens */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-background-secondary) 0%,
    var(--color-background-tertiary) 50%,
    var(--color-background-secondary) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-text {
  height: 1em;
  margin-bottom: var(--space-sm);
}

.skeleton-text-sm {
  height: 0.875em;
}

.skeleton-text-lg {
  height: 1.5em;
}

.skeleton-heading {
  height: 2em;
  width: 60%;
  margin-bottom: var(--space-md);
}

.skeleton-card {
  height: 200px;
  border-radius: var(--radius-md);
}

.skeleton-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
}

.skeleton-button {
  height: 44px;
  width: 120px;
  border-radius: var(--radius-md);
}

/* Pulse Animation */
.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Fade In Animation */
.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Slide In Animations */
.slide-in-up {
  animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in-down {
  animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in-left {
  animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scale In Animation */
.scale-in {
  animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Bounce Animation */
.bounce {
  animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Shimmer Effect */
.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

[data-theme="dark"] .shimmer::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%
  );
}

/* ============================================
   GLASSMORPHISM EFFECTS
   ============================================ */

/* Glass Card */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .glass-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Glass Panel */
.glass-panel {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

[data-theme="dark"] .glass-panel {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* Glass Button */
.btn-glass {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--color-text-primary);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .btn-glass {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .btn-glass:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Glass Modal/Overlay */
.glass-overlay {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

[data-theme="dark"] .glass-overlay {
  background: rgba(0, 0, 0, 0.7);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

/* Scroll Reveal - Elements fade in as they enter viewport */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll Reveal Variants */
.scroll-reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.scroll-reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.scroll-reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Stagger Animation Delays */
.scroll-reveal-delay-1 {
  transition-delay: 0.1s;
}

.scroll-reveal-delay-2 {
  transition-delay: 0.2s;
}

.scroll-reveal-delay-3 {
  transition-delay: 0.3s;
}

.scroll-reveal-delay-4 {
  transition-delay: 0.4s;
}

.scroll-reveal-delay-5 {
  transition-delay: 0.5s;
}

/* Parallax Effect */
.parallax {
  transition: transform 0.1s ease-out;
}

/* Scroll Progress Indicator */
.scroll-progress {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gradient-primary);
  z-index: var(--z-fixed);
  transition: width 0.1s ease-out;
}

/* ============================================
   ENHANCED GRADIENT BACKGROUNDS
   ============================================ */

/* Animated Gradient Background */
.gradient-animated {
  background: linear-gradient(
    -45deg,
    var(--color-primary),
    var(--color-secondary),
    #7c3aed,
    var(--color-primary)
  );
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Mesh Gradient Background */
.gradient-mesh {
  background: 
    radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.3) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(79, 70, 229, 0.3) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(124, 58, 237, 0.3) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(37, 99, 235, 0.3) 0px, transparent 50%);
}

[data-theme="dark"] .gradient-mesh {
  background: 
    radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.2) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.2) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(168, 85, 247, 0.2) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(59, 130, 246, 0.2) 0px, transparent 50%);
}

/* Gradient Text Animation */
.gradient-text-animated {
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-secondary),
    #7c3aed,
    var(--color-primary)
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientTextShift 3s linear infinite;
}

@keyframes gradientTextShift {
  to {
    background-position: 200% center;
  }
}

/* ============================================
   FORM SUCCESS/ERROR STATES
   ============================================ */

/* Success State */
.form-success {
  padding: var(--space-md) var(--space-lg);
  background: var(--color-success-light);
  border: 1px solid var(--color-success);
  border-left: 4px solid var(--color-success);
  border-radius: var(--radius-md);
  color: var(--color-success);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  animation: slideInDown 0.3s ease-out;
}

.form-success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: var(--color-success);
  color: white;
  border-radius: var(--radius-full);
  font-size: 18px;
  font-weight: var(--font-weight-bold);
}

.form-success-icon::before {
  content: '✓';
}

.form-success-message {
  flex: 1;
  font-size: var(--text-small);
  font-weight: var(--font-weight-medium);
}

/* Error State */
.form-error {
  padding: var(--space-md) var(--space-lg);
  background: var(--color-danger-light);
  border: 1px solid var(--color-danger);
  border-left: 4px solid var(--color-danger);
  border-radius: var(--radius-md);
  color: var(--color-danger);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  animation: slideInDown 0.3s ease-out;
}

.form-error-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: var(--color-danger);
  color: white;
  border-radius: var(--radius-full);
  font-size: 18px;
  font-weight: var(--font-weight-bold);
}

.form-error-icon::before {
  content: '✕';
}

.form-error-message {
  flex: 1;
  font-size: var(--text-small);
  font-weight: var(--font-weight-medium);
}

/* Warning State */
.form-warning {
  padding: var(--space-md) var(--space-lg);
  background: var(--color-warning-light);
  border: 1px solid var(--color-warning);
  border-left: 4px solid var(--color-warning);
  border-radius: var(--radius-md);
  color: var(--color-warning);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  animation: slideInDown 0.3s ease-out;
}

.form-warning-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: var(--color-warning);
  color: white;
  border-radius: var(--radius-full);
  font-size: 18px;
  font-weight: var(--font-weight-bold);
}

.form-warning-icon::before {
  content: '!';
}

.form-warning-message {
  flex: 1;
  font-size: var(--text-small);
  font-weight: var(--font-weight-medium);
}

/* Info State */
.form-info {
  padding: var(--space-md) var(--space-lg);
  background: var(--color-info-light);
  border: 1px solid var(--color-info);
  border-left: 4px solid var(--color-info);
  border-radius: var(--radius-md);
  color: var(--color-info);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  animation: slideInDown 0.3s ease-out;
}

.form-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: var(--color-info);
  color: white;
  border-radius: var(--radius-full);
  font-size: 18px;
  font-weight: var(--font-weight-bold);
}

.form-info-icon::before {
  content: 'i';
}

.form-info-message {
  flex: 1;
  font-size: var(--text-small);
  font-weight: var(--font-weight-medium);
}

/* Input States */
input.input-success,
select.input-success,
textarea.input-success {
  border-color: var(--color-success);
  background: var(--color-success-light);
}

input.input-error,
select.input-error,
textarea.input-error {
  border-color: var(--color-danger);
  background: var(--color-danger-light);
}

input.input-warning,
select.input-warning,
textarea.input-warning {
  border-color: var(--color-warning);
  background: var(--color-warning-light);
}

/* ============================================
   SMOOTH PAGE TRANSITIONS
   ============================================ */

/* Page Transition Wrapper */
.page-transition {
  animation: pageTransitionIn 0.3s ease-out;
}

@keyframes pageTransitionIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   FLOATING ACTION BUTTON (FAB)
   ============================================ */

.fab {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 56px;
  height: 56px;
  background: var(--gradient-primary);
  color: var(--color-text-inverse);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
  cursor: pointer;
  transition: all var(--transition-base);
  z-index: var(--z-fixed);
  border: none;
}

.fab:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--shadow-2xl), var(--shadow-glow-lg);
}

.fab:active {
  transform: translateY(-2px) scale(1);
}

.fab-icon {
  font-size: 24px;
  line-height: 1;
}

/* FAB Extended */
.fab-extended {
  width: auto;
  padding: 0 var(--space-lg);
  gap: var(--space-sm);
  border-radius: var(--radius-full);
}

.fab-extended .fab-label {
  font-size: var(--text-small);
  font-weight: var(--font-weight-semibold);
  white-space: nowrap;
}

/* ============================================
   TOOLTIP
   ============================================ */

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-surface-elevated);
  color: var(--color-text-primary);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  z-index: var(--z-tooltip);
  transition: opacity var(--transition-base), visibility var(--transition-base);
  pointer-events: none;
}

.tooltip-text::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--color-surface-elevated);
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Tooltip Positions */
.tooltip-top .tooltip-text {
  bottom: 125%;
  top: auto;
}

.tooltip-bottom .tooltip-text {
  top: 125%;
  bottom: auto;
}

.tooltip-bottom .tooltip-text::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: var(--color-surface-elevated);
}

/* ============================================
   BADGE ANIMATIONS
   ============================================ */

.badge-pulse {
  position: relative;
}

.badge-pulse::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: inherit;
  animation: badgePulse 2s ease-out infinite;
}

@keyframes badgePulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* ============================================
   NOTIFICATION TOAST
   ============================================ */

.toast {
  position: fixed;
  top: calc(var(--header-height) + var(--space-lg));
  right: var(--space-lg);
  min-width: 300px;
  max-width: 400px;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-modal);
  animation: toastSlideIn 0.3s ease-out;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast-success {
  border-left: 4px solid var(--color-success);
}

.toast-error {
  border-left: 4px solid var(--color-danger);
}

.toast-warning {
  border-left: 4px solid var(--color-warning);
}

.toast-info {
  border-left: 4px solid var(--color-info);
}

.toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: var(--font-weight-bold);
  color: white;
}

.toast-success .toast-icon {
  background: var(--color-success);
}

.toast-error .toast-icon {
  background: var(--color-danger);
}

.toast-warning .toast-icon {
  background: var(--color-warning);
}

.toast-info .toast-icon {
  background: var(--color-info);
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-size: var(--text-small);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: 2px;
}

.toast-message {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
}

.toast-close {
  width: 24px;
  height: 24px;
  min-width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.toast-close:hover {
  background: var(--color-background-tertiary);
  color: var(--color-text-primary);
}

/* ============================================
   PROGRESS BAR
   ============================================ */

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--color-background-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width 0.3s ease-out;
  position: relative;
  overflow: hidden;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: progressShimmer 2s infinite;
}

@keyframes progressShimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.progress-bar-lg {
  height: 12px;
}

.progress-bar-sm {
  height: 4px;
}

/* Indeterminate Progress */
.progress-bar-indeterminate .progress-bar-fill {
  width: 30% !important;
  animation: progressIndeterminate 1.5s ease-in-out infinite;
}

@keyframes progressIndeterminate {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(400%);
  }
}

/* ============================================
   RESPONSIVE ANIMATIONS
   ============================================ */

/* Disable animations on mobile for better performance */
@media (max-width: 768px) {
  .gradient-animated {
    animation: none;
    background: var(--gradient-primary);
  }
  
  .gradient-text-animated {
    animation: none;
  }
  
  .shimmer::after {
    animation: none;
  }
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  .loading-spinner,
  .skeleton,
  .pulse,
  .fade-in,
  .slide-in-up,
  .slide-in-down,
  .slide-in-left,
  .slide-in-right,
  .scale-in,
  .bounce,
  .shimmer::after,
  .gradient-animated,
  .gradient-text-animated,
  .scroll-reveal,
  .scroll-reveal-left,
  .scroll-reveal-right,
  .scroll-reveal-scale,
  .badge-pulse::after,
  .progress-bar-fill::after,
  .progress-bar-indeterminate .progress-bar-fill {
    animation: none !important;
    transition: none !important;
  }
  
  .scroll-reveal,
  .scroll-reveal-left,
  .scroll-reveal-right,
  .scroll-reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }
}item,
  .comparison-card {
    padding: var(--space-sm);
  }
  
  /* Buttons - ensure still meet 44x44px */
  .btn {
    padding: 12px 16px;
    font-size: var(--text-xs);
  }
  
  /* Stats - more compact */
  .stat-icon {
    width: 48px;
    height: 48px;
  }
  
  .stat-value {
    font-size: var(--text-h3);
  }
}

/* ============================================
   TOUCH-SPECIFIC OPTIMIZATIONS
   Ensure all interactive elements meet accessibility standards
   ============================================ */

/* Ensure minimum 44x44px touch targets on touch devices */
@media (pointer: coarse) {
  /* All interactive elements */
  a, button, input[type="submit"], input[type="button"],
  input[type="checkbox"], input[type="radio"],
  select, textarea, .btn, .nav-links a,
  .pagination-link, .theme-toggle, .mobile-menu-toggle {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Links with padding to ensure touch target */
  a:not(.btn):not(.card):not(.hardware-card) {
    padding: var(--space-xs) var(--space-sm);
    margin: calc(-1 * var(--space-xs)) calc(-1 * var(--space-sm));
  }
  
  /* Increase spacing between interactive elements */
  .nav-links {
    gap: var(--space-sm);
  }
  
  .pagination-list {
    gap: var(--space-sm);
  }
  
  .btn-group {
    gap: var(--space-md);
  }
  
  /* Larger tap targets for small icons */
  .btn-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
  }
  
  /* Ensure form inputs are easy to tap */
  input, select, textarea {
    min-height: 44px;
    padding: var(--space-md);
    font-size: 16px; /* Prevent zoom on iOS */
  }
  
  /* Increase checkbox and radio button size */
  input[type="checkbox"],
  input[type="radio"] {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
  }
}

/* ============================================
   LANDSCAPE ORIENTATION ADJUSTMENTS
   Optimize for landscape mobile devices
   ============================================ */
@media (max-height: 600px) and (orientation: landscape) {
  /* Reduce vertical spacing in landscape */
  .hero-section {
    padding: var(--space-lg) var(--space-md);
  }
  
  .hero-heading {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
  }
  
  .hero-subheading {
    font-size: 1rem;
    margin-bottom: var(--space-md);
  }
  
  main {
    padding: var(--space-md);
  }
  
  .page-header {
    padding: var(--space-md);
    margin-bottom: var(--space-md);
  }
  
  /* Reduce section spacing */
  .featured-section,
  .stats-section,
  .browse-section {
    margin-bottom: var(--space-xl);
  }
}

/* ============================================
   PRINT STYLES
   Optimize for printing
   ============================================ */
@media print {
  /* Hide non-essential elements */
  header,
  .mobile-nav,
  .theme-toggle,
  .mobile-menu-toggle,
  .search-form,
  .hero-section,
  .filters,
  .pagination,
  .ad-container,
  footer,
  .btn,
  .no-results-actions {
    display: none !important;
  }
  
  /* Optimize layout for print */
  body {
    background: white;
    color: black;
    font-size: 12pt;
  }
  
  main {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }
  
  /* Remove shadows and effects */
  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  /* Ensure links are visible */
  a {
    color: black;
    text-decoration: underline;
  }
  
  /* Page breaks */
  h1, h2, h3 {
    page-break-after: avoid;
  }
  
  .card,
  .hardware-card,
  .comparison-card {
    page-break-inside: avoid;
  }
  
  /* Show URLs for links */
  a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #666;
  }
}


/* ============================================
   HARDWARE LIST PAGE - CLEAN DESIGN
   ============================================ */

/* Page Header - Clean, readable */
.page-header-gradient {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.page-header-gradient.page-header-gpu .page-header-icon {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.page-header-content {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.page-header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
  color: var(--color-primary);
  flex-shrink: 0;
}

.page-header-text h1 {
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
  font-size: var(--text-h2);
}

.page-header-text p {
  color: var(--color-text-secondary);
  font-size: var(--text-body);
  margin: 0;
}

/* List Controls Container */
.list-controls {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  position: relative;
  z-index: 50;
}

/* Modern Filters */
.filters-modern {
  flex: 1;
}

.filter-row {
  display: flex;
  align-items: flex-end;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.filter-group-modern {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.filter-group-modern label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-group-modern label svg {
  opacity: 0.7;
}

.filter-group-modern select {
  min-width: 160px;
  padding: 10px 36px 10px 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-size: var(--text-small);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all var(--transition-base);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.filter-group-modern select:hover {
  border-color: var(--color-primary);
}

.filter-group-modern select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.btn-filter {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 20px;
  height: 42px;
}

/* View Toggle */
.view-toggle {
  display: flex;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 4px;
}

.view-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 34px;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  transition: all var(--transition-base);
  background: transparent;
  border: none;
  cursor: pointer;
}

.view-toggle-btn:hover {
  color: var(--color-text-primary);
  background: var(--color-surface-hover);
}

.view-toggle-btn.active {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

/* Results Info */
.results-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-lg);
}

.results-count {
  font-size: var(--text-small);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

.results-page {
  font-size: var(--text-small);
  color: var(--color-text-muted);
}

/* View Container */
.view-container {
  transition: opacity var(--transition-base);
}

.view-container.hidden {
  display: none;
}

/* Modern Table Styles */
.table-modern {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.table-modern table {
  border-collapse: separate;
  border-spacing: 0;
}

.table-modern thead {
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-background-secondary) 100%);
}

.table-modern th {
  padding: 16px 20px;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-secondary);
  border-bottom: 2px solid var(--color-border);
  white-space: nowrap;
}

.table-modern td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border-light);
  vertical-align: middle;
}

.table-modern tbody tr:last-child td {
  border-bottom: none;
}

.table-row-hover {
  transition: all var(--transition-fast);
}

.table-row-hover:hover {
  background: var(--color-primary-light);
}

.table-row-hover:hover .hardware-link {
  color: var(--color-primary);
}

/* Hardware Link in Table */
.hardware-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text-primary);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  transition: color var(--transition-base);
}

.hardware-link:hover {
  color: var(--color-primary);
}

.hardware-name {
  font-size: var(--text-body);
}

/* Year Badge */
.year-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  background: var(--color-background-tertiary);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary);
}

/* Brand Badges */
.brand-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.brand-amd {
  background: linear-gradient(135deg, #ed1c24 0%, #ff4444 100%);
  color: white;
}

.brand-intel {
  background: linear-gradient(135deg, #0071c5 0%, #00a3e0 100%);
  color: white;
}

.brand-nvidia {
  background: linear-gradient(135deg, #76b900 0%, #8bc34a 100%);
  color: white;
}

.brand-unknown {
  background: var(--color-background-tertiary);
  color: var(--color-text-secondary);
}

/* Clock Values */
.clock-value {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

.clock-value.boost {
  color: var(--color-primary);
}

.clock-unit {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-left: 2px;
}

/* TDP Values */
.tdp-value {
  font-weight: var(--font-weight-semibold);
}

.tdp-unit {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-left: 1px;
}

/* VRAM Values */
.vram-value {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

/* Text Muted */
.text-muted {
  color: var(--color-text-muted);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: var(--space-2xl);
  color: var(--color-text-muted);
}

.empty-state-card {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-3xl);
  background: var(--color-surface);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text-muted);
}

/* ============================================
   HARDWARE CARDS - CLEAN DESIGN
   ============================================ */

.hardware-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

.hardware-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.hardware-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.hardware-card-link {
  display: block;
  padding: var(--space-md);
  text-decoration: none;
  color: inherit;
}

.hardware-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.hardware-card-title {
  font-size: var(--text-body);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
  line-height: var(--line-height-normal);
}

.hardware-card:hover .hardware-card-title {
  color: var(--color-primary);
}

.hardware-card-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.hardware-card-specs-gpu {
  grid-template-columns: 1fr 1fr;
}

.spec-highlight {
  background: var(--color-surface);
  padding: var(--space-sm) var(--space-md);
  text-align: center;
}

.spec-highlight-value {
  font-size: var(--text-h4);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  line-height: 1.2;
}

.spec-highlight-label {
  font-size: 10px;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 2px;
}

.hardware-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.view-details {
  font-size: var(--text-small);
  color: var(--color-primary);
}

.hardware-card:hover .view-details {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
  .page-header-gradient {
    padding: var(--space-xl) var(--space-md);
    margin: calc(-1 * var(--space-lg)) calc(-1 * var(--space-md)) var(--space-lg);
  }
  
  .page-header-content {
    flex-direction: column;
    text-align: center;
  }
  
  .page-header-text p {
    max-width: 100%;
  }
  
  .list-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-row {
    flex-direction: column;
  }
  
  .filter-group-modern {
    width: 100%;
  }
  
  .filter-group-modern select {
    width: 100%;
  }
  
  .btn-filter {
    width: 100%;
    justify-content: center;
  }
  
  .view-toggle {
    align-self: center;
  }
}

@media (max-width: 768px) {
  .hardware-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .hardware-card-specs {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hardware-card-specs-gpu {
    grid-template-columns: 1fr 1fr;
  }
  
  .table-modern th,
  .table-modern td {
    padding: 12px 14px;
  }
  
  .col-threads,
  .col-clock {
    display: none;
  }
}

/* Utility: lowercase helper for brand classes */
/* Note: This is handled by Handlebars helper */


/* ============================================
   COMPARISON SELECTOR COMPONENT
   Premium searchable dropdown for comparing hardware
   ============================================ */

/* Main Container */
.comparison-selector {
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-background-secondary) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  margin-bottom: var(--space-xl);
  position: relative;
  overflow: visible;
  box-shadow: var(--shadow-lg);
  /* No z-index here - header should stay above this card when scrolling */
}

.comparison-selector::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.comparison-selector::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary-light), transparent);
}

.comparison-selector-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.comparison-selector-title {
  font-size: var(--text-h3);
  font-weight: var(--font-weight-extrabold);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.comparison-selector-title svg {
  color: var(--color-primary);
  -webkit-text-fill-color: initial;
  background: none;
}

.comparison-selector-subtitle {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  margin: 0;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Selector Row */
.comparison-selector-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
  position: relative;
}

/* Individual Dropdown Container */
.comparison-dropdown-container {
  flex: 1;
  min-width: 320px;
  max-width: 450px;
  position: relative;
}

/* Dropdown Label */
.comparison-dropdown-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
  padding-left: var(--space-sm);
}

/* Custom Searchable Dropdown */
.comparison-dropdown {
  position: relative;
  width: 100%;
}

.comparison-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-lg) var(--space-xl);
  background: var(--color-background);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  min-height: 72px;
  box-shadow: var(--shadow-sm);
}

.comparison-dropdown-trigger:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md), 0 0 0 4px var(--color-primary-light);
  transform: translateY(-2px);
}

.comparison-dropdown-trigger:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md), 0 0 0 4px var(--color-primary-light);
}

.comparison-dropdown-trigger.active {
  border-color: var(--color-primary);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: var(--shadow-lg);
  transform: translateY(0);
}

.comparison-dropdown-trigger.has-selection {
  border-color: var(--color-primary);
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-background) 100%);
}

.comparison-dropdown-placeholder {
  color: var(--color-text-muted);
  font-size: var(--text-body);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.comparison-dropdown-placeholder::before {
  content: '🔍';
  font-size: 1.2em;
}

.comparison-dropdown-selected {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  flex: 1;
}

.comparison-dropdown-selected-name {
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  font-size: var(--text-h5);
  line-height: 1.2;
}

.comparison-dropdown-selected-info {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.comparison-dropdown-arrow {
  color: var(--color-primary);
  transition: transform var(--transition-base);
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.comparison-dropdown-trigger.active .comparison-dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown Panel */
.comparison-dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border: 2px solid var(--color-primary);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-xl);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height var(--transition-base), opacity var(--transition-base);
  pointer-events: none;
}

.comparison-dropdown-panel.open {
  max-height: 420px;
  opacity: 1;
  overflow: visible;
  z-index: 9999;
  pointer-events: auto;
}

/* Search Input */
.comparison-dropdown-search {
  padding: var(--space-md);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: var(--color-surface);
  z-index: 1;
}

.comparison-dropdown-search input {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  padding-left: 44px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-body);
  background: var(--color-background);
  color: var(--color-text-primary);
  transition: all var(--transition-base);
}

.comparison-dropdown-search input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-light);
}

.comparison-dropdown-search input::placeholder {
  color: var(--color-text-muted);
}

.comparison-dropdown-search-icon {
  position: absolute;
  left: calc(var(--space-md) + 14px);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-primary);
  pointer-events: none;
}

/* Options List */
.comparison-dropdown-options {
  max-height: 340px;
  overflow-y: auto;
  padding: var(--space-sm);
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) var(--color-background-secondary);
}

.comparison-dropdown-options::-webkit-scrollbar {
  width: 8px;
}

.comparison-dropdown-options::-webkit-scrollbar-track {
  background: var(--color-background-secondary);
  border-radius: 4px;
}

.comparison-dropdown-options::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 4px;
}

.comparison-dropdown-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 4px;
  border: 1px solid transparent;
  gap: var(--space-md);
}

.comparison-dropdown-option:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  transform: translateX(4px);
}

.comparison-dropdown-option.selected {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.comparison-dropdown-option.selected .comparison-dropdown-option-name,
.comparison-dropdown-option.selected .comparison-dropdown-option-specs {
  color: white;
}

.comparison-dropdown-option.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
  background: var(--color-background-tertiary);
}

.comparison-dropdown-option-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.comparison-dropdown-option-name {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  font-size: var(--text-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.comparison-dropdown-option-specs {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.comparison-dropdown-option-specs .spec-tag {
  background: var(--color-background-tertiary);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
}

.comparison-dropdown-option.selected .spec-tag {
  background: rgba(255,255,255,0.2);
}

.comparison-dropdown-option-brand {
  flex-shrink: 0;
}

/* No Results */
.comparison-dropdown-no-results {
  padding: var(--space-2xl);
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--text-body);
}

.comparison-dropdown-no-results::before {
  content: '😕';
  display: block;
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

/* VS Divider */
.comparison-vs-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  color: white;
  font-weight: var(--font-weight-extrabold);
  font-size: var(--text-h4);
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.comparison-vs-divider::before {
  content: '';
  position: absolute;
  inset: -4px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  opacity: 0.3;
  z-index: -1;
  animation: pulse 2s ease-in-out infinite;
}

/* Compare Button */
.comparison-selector-actions {
  display: flex;
  justify-content: center;
  margin-top: var(--space-xl);
}

.btn-compare {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-2xl);
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-size: var(--text-body);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
  min-width: 200px;
  justify-content: center;
}

.btn-compare:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-compare:active:not(:disabled) {
  transform: translateY(0);
}

.btn-compare:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--color-text-muted);
}

.btn-compare svg {
  transition: transform var(--transition-base);
}

.btn-compare:hover:not(:disabled) svg {
  transform: translateX(4px);
}

/* Responsive */
@media (max-width: 768px) {
  .comparison-selector {
    padding: var(--space-lg);
  }
  
  .comparison-selector-row {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .comparison-dropdown-container {
    min-width: 100%;
    max-width: 100%;
  }
  
  .comparison-vs-divider {
    width: 48px;
    height: 48px;
    font-size: var(--text-h5);
  }
  
  .btn-compare {
    width: 100%;
  }
}

/* ============================================
   ENHANCED COMPARISON PAGE STYLES
   State-of-the-art comparison UI
   ============================================ */

/* Comparison Page Header */
.comparison-page-header {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  background: var(--gradient-card);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
  position: relative;
  overflow: hidden;
}

.comparison-page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.comparison-page-title {
  font-size: var(--text-h2);
  font-weight: var(--font-weight-extrabold);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-sm);
}

.comparison-page-subtitle {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  margin: 0;
}

/* Enhanced Comparison Container */
.comparison-container-enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

/* Enhanced Comparison Card */
.comparison-card-enhanced {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  position: relative;
}

.comparison-card-enhanced:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.comparison-card-enhanced.winner {
  border-color: var(--color-success);
  box-shadow: 0 0 0 4px var(--color-success-light);
}

/* Winner Crown Badge */
.comparison-winner-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background: var(--color-success);
  color: white;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-md);
  z-index: 10;
}

.comparison-winner-badge svg {
  width: 14px;
  height: 14px;
}

/* Card Header */
.comparison-card-header-enhanced {
  padding: var(--space-xl);
  background: var(--gradient-card);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.comparison-card-brand {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-sm);
}

.comparison-card-name {
  font-size: var(--text-h4);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin: 0;
}

/* Specs Section */
.comparison-specs-section {
  padding: var(--space-lg);
}

.comparison-specs-title {
  font-size: var(--text-small);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

/* Spec Row */
.comparison-spec-row-enhanced {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  border-bottom: 1px dashed var(--color-border-light);
}

.comparison-spec-row-enhanced:last-child {
  border-bottom: none;
}

.comparison-spec-label-enhanced {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
}

.comparison-spec-value-enhanced {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.comparison-spec-number {
  font-family: var(--font-mono);
  font-size: var(--text-body);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
}

/* Better/Worse Indicators */
.comparison-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  font-size: 12px;
}

.comparison-indicator.better {
  background: var(--color-success-light);
  color: var(--color-success);
}

.comparison-indicator.worse {
  background: var(--color-danger-light);
  color: var(--color-danger);
}

.comparison-indicator.equal {
  background: var(--color-background-tertiary);
  color: var(--color-text-muted);
}

/* Percentage Diff Badge */
.comparison-diff {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.comparison-diff.positive {
  background: var(--color-success-light);
  color: var(--color-success);
}

.comparison-diff.negative {
  background: var(--color-danger-light);
  color: var(--color-danger);
}

/* Benchmark Comparison Section */
.comparison-benchmarks-section {
  padding: var(--space-lg);
  background: var(--color-background-secondary);
}

.comparison-benchmark-item {
  margin-bottom: var(--space-md);
}

.comparison-benchmark-item:last-child {
  margin-bottom: 0;
}

.comparison-benchmark-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xs);
}

.comparison-benchmark-name {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
}

.comparison-benchmark-score {
  font-family: var(--font-mono);
  font-size: var(--text-small);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
}

.comparison-benchmark-bar {
  height: 8px;
  background: var(--color-background-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.comparison-benchmark-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

.comparison-benchmark-fill.winner {
  background: var(--gradient-primary);
}

.comparison-benchmark-fill.loser {
  background: var(--color-text-muted);
}

/* Quick Compare Summary */
.comparison-summary {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.comparison-summary-title {
  font-size: var(--text-h4);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.comparison-summary-title svg {
  color: var(--color-primary);
}

.comparison-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}

.comparison-summary-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-background-secondary);
  border-radius: var(--radius-md);
}

.comparison-summary-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.comparison-summary-content {
  flex: 1;
}

.comparison-summary-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comparison-summary-value {
  font-size: var(--text-body);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

/* View Details Links */
.comparison-view-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  margin-top: var(--space-xl);
}

.comparison-view-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  transition: all var(--transition-base);
}

.comparison-view-link:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.comparison-view-link svg {
  transition: transform var(--transition-base);
}

.comparison-view-link:hover svg {
  transform: translateX(4px);
}

/* Responsive Comparison */
@media (max-width: 768px) {
  .comparison-container-enhanced {
    grid-template-columns: 1fr;
  }
  
  .comparison-page-header {
    padding: var(--space-lg);
  }
  
  .comparison-page-title {
    font-size: var(--text-h3);
  }
  
  .comparison-summary-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================
   FULL COMPARISON TABLE STYLES
   ============================================ */

.comparison-table-wrapper {
  overflow-x: auto;
  margin-bottom: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}

.comparison-full-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.comparison-full-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--color-surface);
}

.comparison-full-table th {
  padding: var(--space-lg);
  text-align: center;
  border-bottom: 2px solid var(--color-border);
  background: var(--gradient-card);
}

.comparison-full-table th.spec-label-col {
  text-align: left;
  width: 200px;
  min-width: 200px;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
}

.comparison-full-table th.winner-col {
  background: linear-gradient(135deg, var(--color-success-light) 0%, var(--color-surface) 100%);
}

.comparison-header-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.comparison-header-name {
  font-size: var(--text-body);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
}

.winner-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: var(--color-success);
  color: white;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
}

/* Category Row */
.category-row td {
  padding: 0;
}

.category-header {
  padding: var(--space-md) var(--space-lg) !important;
  background: var(--gradient-primary);
  color: white;
  font-weight: var(--font-weight-bold);
  font-size: var(--text-small);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.category-icon {
  font-size: 1.2em;
}

/* Spec Rows */
.spec-row td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-border-light);
  vertical-align: middle;
}

.spec-row:hover td {
  background: var(--color-surface-hover);
}

.spec-label {
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  font-size: var(--text-small);
}

.spec-value {
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--text-small);
}

.spec-value.better {
  background: var(--color-success-light);
  color: var(--color-success);
  font-weight: var(--font-weight-bold);
}

.spec-value.worse {
  background: var(--color-danger-light);
  color: var(--color-danger);
}

.value-text {
  display: inline-block;
}

.na-value {
  color: var(--color-text-muted);
}

.diff-badge {
  display: inline-block;
  margin-left: var(--space-sm);
  padding: 2px 6px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
}

.diff-badge.positive {
  background: var(--color-success-light);
  color: var(--color-success);
}

.diff-badge.negative {
  background: var(--color-danger-light);
  color: var(--color-danger);
}

/* Benchmark Comparison Section */
.comparison-benchmarks {
  margin-bottom: var(--space-xl);
}

.comparison-benchmarks .section-title {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--text-h3);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-lg);
  color: var(--color-text-primary);
}

.comparison-benchmarks .section-title svg {
  color: var(--color-primary);
}

.benchmark-comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: var(--space-lg);
}

.benchmark-comparison-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
}

.benchmark-comparison-item:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.benchmark-comparison-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.benchmark-comparison-header .benchmark-source {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  color: var(--color-primary);
  letter-spacing: 0.5px;
}

.benchmark-name {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
}

.benchmark-comparison-bars {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.benchmark-bar-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.benchmark-cpu-name,
.benchmark-gpu-name {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
}

.benchmark-bar-container {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  height: 28px;
  background: var(--color-background-tertiary);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.benchmark-bar {
  height: 100%;
  border-radius: var(--radius-sm);
  transition: width var(--transition-slow);
  min-width: 4px;
}

.benchmark-bar.winner {
  background: var(--gradient-primary);
}

.benchmark-bar.loser {
  background: var(--color-text-muted);
}

.benchmark-score {
  position: absolute;
  right: var(--space-sm);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
}

/* Responsive */
@media (max-width: 768px) {
  .comparison-full-table th.spec-label-col {
    width: 120px;
    min-width: 120px;
  }
  
  .benchmark-comparison-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================
   CYBERPUNK COMPARISON PAGE STYLES
   Premium tech-inspired design
   ============================================ */

/* Hero Section */
.comparison-hero {
  position: relative;
  padding: var(--space-2xl) var(--space-lg);
  margin: calc(-1 * var(--space-xl)) calc(-1 * var(--space-lg)) var(--space-xl);
  overflow: hidden;
  background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3a 50%, #0f0f2f 100%);
}

[data-theme="light"] .comparison-hero {
  background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 50%, #f5f7ff 100%);
}

.comparison-hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(168, 85, 247, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.comparison-hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.comparison-hero .breadcrumb {
  position: relative;
  z-index: 1;
  margin-bottom: var(--space-lg);
}

.comparison-hero .breadcrumb a,
.comparison-hero .breadcrumb [aria-current="page"] {
  color: rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .comparison-hero .breadcrumb a,
[data-theme="light"] .comparison-hero .breadcrumb [aria-current="page"] {
  color: var(--color-text-secondary);
}

.comparison-hero .breadcrumb a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .comparison-hero .breadcrumb a:hover {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.comparison-hero-title {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
}

.comparison-hero-title .title-label {
  color: #fff;
  text-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

[data-theme="light"] .comparison-hero-title .title-label {
  color: var(--color-text-primary);
  text-shadow: none;
}

.comparison-hero-title .title-highlight {
  background: linear-gradient(135deg, #f97316 0%, #fb923c 50%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(249, 115, 22, 0.4));
}

[data-theme="light"] .comparison-hero-title .title-highlight {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: none;
}

/* VS Section Layout */
.comparison-vs-section {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
  position: relative;
  flex-wrap: wrap;
}

/* VS Badge */
.comparison-vs-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vs-text {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: 
    0 0 30px rgba(59, 130, 246, 0.5),
    0 0 60px rgba(139, 92, 246, 0.3);
  position: relative;
  z-index: 2;
}

[data-theme="light"] .vs-text {
  box-shadow: var(--shadow-lg);
}

.vs-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
  animation: pulse-glow 2s ease-in-out infinite;
  z-index: 1;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* Product Card */
.comparison-product-card {
  flex: 1;
  max-width: 500px;
  min-width: 320px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .comparison-product-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: var(--shadow-lg);
}

.comparison-product-card.card-left {
  border: 2px solid rgba(239, 68, 68, 0.5);
}

.comparison-product-card.card-right {
  border: 2px solid rgba(59, 130, 246, 0.5);
}

[data-theme="light"] .comparison-product-card.card-left {
  border-color: #ef4444;
}

[data-theme="light"] .comparison-product-card.card-right {
  border-color: #3b82f6;
}

.comparison-product-card.is-winner {
  border-color: #22c55e;
  box-shadow: 0 0 40px rgba(34, 197, 94, 0.3);
}

[data-theme="light"] .comparison-product-card.is-winner {
  border-color: #22c55e;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
}

/* Card Glow Effect */
.product-card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.card-left .product-card-glow {
  background: radial-gradient(circle at center, rgba(239, 68, 68, 0.1) 0%, transparent 50%);
}

/* Card Border Gradient */
.product-card-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
}

.card-left .product-card-border {
  background: linear-gradient(90deg, #ef4444, #f97316, #fbbf24);
}

/* Brand Area */
.product-brand-area {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.product-brand-logo {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .product-brand-logo {
  background: var(--color-background-secondary);
}

.product-brand-logo svg {
  width: 32px;
  height: 32px;
}

.product-brand-logo.brand-amd {
  color: #ed1c24;
}

.product-brand-logo.brand-intel {
  color: #0071c5;
}

.product-brand-name {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .product-brand-name {
  color: var(--color-text-muted);
}

/* CPU Visual */
.product-cpu-visual {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.cpu-chip {
  width: 120px;
  height: 120px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cpu-chip-inner {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border: 2px solid #475569;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .cpu-chip-inner {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  border-color: #94a3b8;
}

.cpu-die {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.card-left .cpu-die {
  background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

.cpu-pins {
  position: absolute;
  display: flex;
  gap: 4px;
}

.cpu-pins::before,
.cpu-pins::after {
  content: '';
  display: block;
}

.cpu-pins-top,
.cpu-pins-bottom {
  left: 50%;
  transform: translateX(-50%);
  flex-direction: row;
}

.cpu-pins-top { top: 0; }
.cpu-pins-bottom { bottom: 0; }

.cpu-pins-left,
.cpu-pins-right {
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
}

.cpu-pins-left { left: 0; }
.cpu-pins-right { right: 0; }

.cpu-pins::before,
.cpu-pins::after {
  width: 3px;
  height: 10px;
  background: #64748b;
  border-radius: 1px;
}

.cpu-pins-left::before,
.cpu-pins-left::after,
.cpu-pins-right::before,
.cpu-pins-right::after {
  width: 10px;
  height: 3px;
}

/* Product Name */
.product-name {
  font-size: var(--text-h3);
  font-weight: 800;
  color: #fff;
  text-align: center;
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .product-name {
  color: var(--color-text-primary);
  text-shadow: none;
}

/* Product State */
.product-state {
  text-align: center;
  margin-bottom: var(--space-xl);
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .product-state {
  background: var(--color-background-secondary);
  border-color: var(--color-border);
}

.state-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-xs);
}

[data-theme="light"] .state-label {
  color: var(--color-text-muted);
}

.state-value {
  font-size: var(--text-body);
  font-weight: 700;
  color: #fff;
}

[data-theme="light"] .state-value {
  color: var(--color-text-primary);
}

/* Quick Specs Grid */
.product-quick-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.quick-spec {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .quick-spec {
  background: var(--color-background-secondary);
  border-color: var(--color-border-light);
}

.quick-spec-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-sm);
  color: #3b82f6;
}

.card-left .quick-spec-icon {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

[data-theme="light"] .quick-spec-icon {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.quick-spec-icon svg {
  width: 18px;
  height: 18px;
}

.quick-spec-content {
  flex: 1;
  min-width: 0;
}

.quick-spec-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 2px;
}

[data-theme="light"] .quick-spec-label {
  color: var(--color-text-muted);
}

.quick-spec-value {
  font-size: var(--text-small);
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

[data-theme="light"] .quick-spec-value {
  color: var(--color-text-primary);
}

/* Winner Crown */
.winner-crown {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
}

.winner-crown svg {
  width: 16px;
  height: 16px;
}

/* Section Headers */
.section-header-cyber {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.section-header-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.section-title-cyber {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--text-h5);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-text-secondary);
  white-space: nowrap;
  margin: 0;
}

.section-title-cyber svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
}

/* Benchmark Bars */
.comparison-benchmarks-cyber {
  margin-bottom: var(--space-2xl);
  padding: var(--space-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.benchmark-bars-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.benchmark-bar-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.benchmark-bar-label {
  font-size: var(--text-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-secondary);
  text-align: center;
}

.benchmark-bar-track {
  display: flex;
  height: 40px;
  background: var(--color-background-tertiary);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.benchmark-bar-fill {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 var(--space-md);
  transition: width 0.5s ease;
  width: var(--bar-width);
}

.benchmark-bar-fill.bar-left {
  background: linear-gradient(90deg, #ef4444 0%, #f97316 100%);
  justify-content: flex-end;
}

.benchmark-bar-fill.bar-right {
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
  justify-content: flex-start;
}

.benchmark-bar-fill.bar-winner {
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
}

.benchmark-bar-value {
  font-family: var(--font-mono);
  font-size: var(--text-small);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Specs Table Cyber */
.comparison-specs-cyber {
  margin-bottom: var(--space-2xl);
}

.specs-table-cyber {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.specs-table-header {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  background: linear-gradient(135deg, var(--color-background-secondary) 0%, var(--color-surface) 100%);
  border-bottom: 2px solid var(--color-border);
  position: sticky;
  top: var(--header-height);
  z-index: 5;
}

.specs-col-label {
  padding: var(--space-md) var(--space-lg);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
}

.specs-col-value {
  padding: var(--space-md) var(--space-lg);
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--color-text-primary);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.specs-table-header .specs-col-value {
  font-weight: 700;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-lg);
}

.specs-header-vendor {
  display: flex;
  align-items: center;
  justify-content: center;
}

.specs-header-vendor .vendor-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
}

.specs-header-name {
  font-size: var(--text-small);
  font-weight: 700;
  color: var(--color-text-primary);
  text-align: center;
  line-height: 1.3;
}

.specs-col-value.col-winner {
  background: var(--color-success-light);
}

.specs-category-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: linear-gradient(90deg, var(--color-primary-light) 0%, transparent 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.category-icon-cyber {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.category-icon-cyber .cat-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.category-name-cyber {
  font-size: var(--text-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary);
}

.specs-data-row {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  border-bottom: 1px solid var(--color-border-light);
  transition: background var(--transition-fast);
}

.specs-data-row:hover {
  background: var(--color-surface-hover);
}

.specs-data-row:last-child {
  border-bottom: none;
}

.specs-data-row .specs-col-label {
  color: var(--color-text-secondary);
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
}

.specs-data-row .specs-col-value {
  border-left: 1px solid var(--color-border-light);
}

.specs-col-value.value-better {
  background: var(--color-success-light);
  color: var(--color-success);
  font-weight: 700;
}

.specs-col-value.value-worse {
  color: var(--color-text-muted);
}

.specs-col-value .na-value {
  color: var(--color-text-muted);
}

.specs-col-value .diff-badge {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.specs-col-value .diff-badge.positive {
  background: var(--color-success-light);
  color: var(--color-success);
}

.specs-col-value .diff-badge.negative {
  background: var(--color-danger-light);
  color: var(--color-danger);
}

/* Action Links */
.comparison-actions-cyber {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.action-link-cyber {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-xl);
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text-primary);
  font-weight: 600;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.action-link-cyber:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.action-link-cyber[data-brand="amd"]:hover {
  border-color: #ef4444;
  color: #ef4444;
}

.action-link-cyber[data-brand="intel"]:hover {
  border-color: #0071c5;
  color: #0071c5;
}

.action-link-cyber svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-base);
}

.action-link-cyber:hover svg {
  transform: translateX(4px);
}

.action-link-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.action-link-cyber:hover .action-link-glow {
  transform: translateX(100%);
}

/* Related Sections on Comparison Pages */
.related-section {
  margin: var(--space-2xl) 0;
  padding: var(--space-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.related-section-title {
  font-size: var(--text-h3);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  text-align: center;
  margin-bottom: var(--space-xl);
}

/* Responsive Cyberpunk Comparison */
@media (max-width: 1024px) {
  .comparison-vs-section {
    flex-direction: column;
    align-items: center;
  }
  
  .comparison-vs-badge {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin: var(--space-md) 0;
  }
  
  .comparison-product-card {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .comparison-hero {
    margin: calc(-1 * var(--space-lg)) calc(-1 * var(--space-md)) var(--space-lg);
    padding: var(--space-xl) var(--space-md);
  }
  
  .comparison-hero-title {
    flex-direction: column;
    gap: var(--space-xs);
  }
  
  .product-quick-specs {
    grid-template-columns: 1fr;
  }
  
  .specs-table-header,
  .specs-data-row {
    grid-template-columns: 140px 1fr 1fr;
  }
  
  .specs-col-label,
  .specs-col-value {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-xs);
  }
  
  .specs-header-vendor .vendor-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }
  
  .specs-header-name {
    font-size: var(--text-xs);
  }
  
  .benchmark-bar-track {
    flex-direction: column;
    height: auto;
  }
  
  .benchmark-bar-fill {
    width: 100% !important;
    height: 32px;
    justify-content: center !important;
  }
}


/* GPU Comparison Specific Styles */
.comparison-hero-gpu .comparison-hero-bg {
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(34, 197, 94, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
}

.gpu-card.card-left {
  border-color: rgba(34, 197, 94, 0.5);
}

.gpu-card.card-left .product-card-border {
  background: linear-gradient(90deg, #22c55e, #10b981, #14b8a6);
}

.gpu-card.card-left .product-card-glow {
  background: radial-gradient(circle at center, rgba(34, 197, 94, 0.1) 0%, transparent 50%);
}

.gpu-card.card-left .quick-spec-icon {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

/* GPU Visual */
.product-gpu-visual {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.gpu-card-visual {
  width: 160px;
  height: 100px;
  position: relative;
}

.gpu-pcb {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid #334155;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .gpu-pcb {
  background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 100%);
  border-color: #94a3b8;
}

.gpu-cooler {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 30px;
  bottom: 10px;
  background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

[data-theme="light"] .gpu-cooler {
  background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
}

.gpu-fan {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #4b5563, #1f2937, #4b5563, #1f2937, #4b5563);
  position: relative;
  animation: spin-fan 2s linear infinite;
}

.gpu-fan::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: #6b7280;
  border-radius: 50%;
}

@keyframes spin-fan {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.gpu-card.card-left .gpu-fan {
  animation-direction: reverse;
}

.gpu-ports {
  position: absolute;
  right: 5px;
  top: 15px;
  bottom: 15px;
  width: 20px;
  background: repeating-linear-gradient(
    180deg,
    #475569 0px,
    #475569 8px,
    transparent 8px,
    transparent 12px
  );
  border-radius: 2px;
}

/* NVIDIA Green Theme */
.product-brand-logo.brand-nvidia {
  color: #76b900;
}

.gpu-card[data-brand="nvidia"] .gpu-fan {
  box-shadow: 0 0 10px rgba(118, 185, 0, 0.3);
}

.gpu-card[data-brand="nvidia"] .cpu-die,
.gpu-card[data-brand="nvidia"] .gpu-cooler::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(118, 185, 0, 0.1) 0%, transparent 100%);
  border-radius: inherit;
}

.action-link-cyber[data-brand="nvidia"]:hover {
  border-color: #76b900;
  color: #76b900;
}

/* AMD Red Theme for GPU */
.gpu-card[data-brand="amd"] .gpu-fan {
  box-shadow: 0 0 10px rgba(237, 28, 36, 0.3);
}

/* Intel Blue Theme for GPU */
.gpu-card[data-brand="intel"] .gpu-fan {
  box-shadow: 0 0 10px rgba(0, 113, 197, 0.3);
}


/* ============================================
   3D ICONS & PREMIUM VISUAL ELEMENTS
   ============================================ */

/* 3D Brand Icons */
.brand-icon-3d {
  width: 48px;
  height: 48px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 100px;
}

.brand-icon-3d .icon-layer {
  position: absolute;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.brand-icon-3d .icon-layer-1 {
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  transform: translateZ(0px);
}

.brand-icon-3d .icon-layer-2 {
  inset: 4px;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
  transform: translateZ(4px);
}

.brand-icon-3d .icon-layer-3 {
  inset: 8px;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
  transform: translateZ(8px);
}

.brand-icon-3d .brand-letter {
  position: relative;
  z-index: 10;
  font-size: 24px;
  font-weight: 900;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.brand-amd-icon {
  background: linear-gradient(135deg, #ed1c24 0%, #ff4444 100%);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(237, 28, 36, 0.4);
}

.brand-amd-icon .brand-letter { color: #fff; }

.brand-intel-icon {
  background: linear-gradient(135deg, #0071c5 0%, #00a3e0 100%);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 113, 197, 0.4);
}

.brand-intel-icon .brand-letter { color: #fff; }

.brand-nvidia-icon {
  background: linear-gradient(135deg, #76b900 0%, #8bc34a 100%);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(118, 185, 0, 0.4);
}

.brand-nvidia-icon .nvidia-eye {
  width: 20px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  position: relative;
  z-index: 10;
  box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* 3D CPU Chip Visual */
.cpu-chip-3d {
  width: 140px;
  height: 140px;
  position: relative;
  perspective: 500px;
  transform-style: preserve-3d;
}

.cpu-substrate {
  position: absolute;
  inset: 10px;
  background: linear-gradient(145deg, #1a472a 0%, #0d2818 100%);
  border-radius: 8px;
  transform: translateZ(-10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.cpu-ihs {
  position: absolute;
  inset: 20px;
  background: linear-gradient(145deg, #c0c0c0 0%, #808080 50%, #a0a0a0 100%);
  border-radius: 6px;
  transform: translateZ(5px);
  box-shadow: 
    inset 0 2px 4px rgba(255,255,255,0.3),
    inset 0 -2px 4px rgba(0,0,0,0.2),
    0 5px 15px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cpu-ihs-reflection {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, transparent 100%);
  border-radius: 6px 6px 0 0;
}

.cpu-ihs-text {
  font-size: 12px;
  font-weight: 900;
  color: #333;
  text-shadow: 0 1px 1px rgba(255,255,255,0.5);
  letter-spacing: 2px;
  position: relative;
  z-index: 2;
}

.cpu-pins-3d {
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pin-row {
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    #ffd700 0px,
    #ffd700 3px,
    transparent 3px,
    transparent 6px
  );
  border-radius: 1px;
}

.cpu-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
  pointer-events: none;
  animation: cpu-pulse 3s ease-in-out infinite;
}

.card-left .cpu-glow {
  background: radial-gradient(circle at center, rgba(239, 68, 68, 0.2) 0%, transparent 70%);
}

@keyframes cpu-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* 3D GPU Card Visual */
.gpu-card-3d {
  width: 180px;
  height: 100px;
  position: relative;
  perspective: 500px;
  transform-style: preserve-3d;
}

.gpu-pcb-3d {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
  border-radius: 8px;
  border: 2px solid #333;
  overflow: hidden;
  transform: rotateX(5deg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.gpu-shroud {
  position: absolute;
  top: 5px;
  left: 5px;
  right: 25px;
  bottom: 5px;
  background: linear-gradient(180deg, #2a2a3e 0%, #1a1a2e 100%);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 5px;
}

.gpu-fan-3d {
  width: 35px;
  height: 35px;
  position: relative;
  animation: spin-fan 1.5s linear infinite;
}

.gpu-fan-3d .fan-blade {
  position: absolute;
  width: 100%;
  height: 100%;
  background: conic-gradient(
    from 0deg,
    #444 0deg,
    #222 30deg,
    #444 60deg,
    #222 90deg,
    #444 120deg,
    #222 150deg,
    #444 180deg,
    #222 210deg,
    #444 240deg,
    #222 270deg,
    #444 300deg,
    #222 330deg,
    #444 360deg
  );
  border-radius: 50%;
}

.gpu-fan-3d .fan-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: linear-gradient(145deg, #555, #333);
  border-radius: 50%;
  border: 2px solid #666;
}

.gpu-logo-area {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  letter-spacing: 1px;
}

.gpu-backplate {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.gpu-ports-3d {
  position: absolute;
  right: 5px;
  top: 10px;
  bottom: 10px;
  width: 15px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
}

.port-hdmi, .port-dp {
  height: 8px;
  background: #333;
  border: 1px solid #555;
  border-radius: 2px;
}

.gpu-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
  pointer-events: none;
  animation: gpu-pulse 3s ease-in-out infinite;
}

.card-left .gpu-glow {
  background: radial-gradient(circle at center, rgba(34, 197, 94, 0.2) 0%, transparent 70%);
}

@keyframes gpu-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* 3D Quick Spec Icons */
.quick-spec-icon-3d {
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  perspective: 100px;
}

/* Cube Icon */
.icon-cube {
  width: 24px;
  height: 24px;
  position: relative;
  transform-style: preserve-3d;
  animation: rotate-cube 8s linear infinite;
}

.cube-face {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(59, 130, 246, 0.5);
  background: rgba(59, 130, 246, 0.1);
}

.card-left .cube-face {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.1);
}

.cube-front { transform: translateZ(12px); }
.cube-back { transform: translateZ(-12px) rotateY(180deg); }
.cube-top { transform: rotateX(90deg) translateZ(12px); }
.cube-bottom { transform: rotateX(-90deg) translateZ(12px); }
.cube-left { transform: rotateY(-90deg) translateZ(12px); }
.cube-right { transform: rotateY(90deg) translateZ(12px); }

@keyframes rotate-cube {
  0% { transform: rotateX(0deg) rotateY(0deg); }
  100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* Bolt Icon */
.icon-bolt {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(245, 158, 11, 0.1) 100%);
  border-radius: 10px;
}

.bolt-shape {
  width: 16px;
  height: 24px;
  background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
  clip-path: polygon(50% 0%, 100% 40%, 60% 40%, 70% 100%, 0% 55%, 45% 55%);
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.6));
}

.bolt-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.3) 0%, transparent 70%);
  animation: bolt-pulse 1.5s ease-in-out infinite;
}

@keyframes bolt-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Memory Icon */
.icon-memory {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
  border-radius: 10px;
  display: flex;
  gap: 3px;
  padding: 8px;
}

.memory-chip {
  width: 6px;
  height: 20px;
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

/* Power Icon */
.icon-power {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.1) 100%);
  border-radius: 10px;
}

.power-ring {
  width: 28px;
  height: 28px;
  border: 3px solid #ef4444;
  border-radius: 50%;
  border-top-color: transparent;
  animation: power-spin 2s linear infinite;
}

.power-bolt {
  position: absolute;
  width: 8px;
  height: 14px;
  background: #ef4444;
  clip-path: polygon(50% 0%, 100% 40%, 60% 40%, 70% 100%, 0% 55%, 45% 55%);
}

@keyframes power-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Architecture Icon */
.icon-arch {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(124, 58, 237, 0.1) 100%);
  border-radius: 10px;
}

.arch-layers {
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: perspective(50px) rotateX(20deg);
}

.arch-layer {
  width: 24px;
  height: 6px;
  background: linear-gradient(90deg, #8b5cf6 0%, #7c3aed 100%);
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(139, 92, 246, 0.4);
}

.arch-layer:nth-child(2) { width: 20px; margin-left: 2px; }
.arch-layer:nth-child(3) { width: 16px; margin-left: 4px; }

/* Process Icon */
.icon-process {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(8, 145, 178, 0.1) 100%);
  border-radius: 10px;
}

.process-circle {
  width: 24px;
  height: 24px;
  border: 3px solid #06b6d4;
  border-radius: 50%;
  position: relative;
}

.process-circle::after {
  content: '';
  position: absolute;
  inset: 4px;
  background: #06b6d4;
  border-radius: 50%;
}

.process-nm {
  position: absolute;
  font-size: 8px;
  font-weight: 700;
  color: #06b6d4;
  bottom: 2px;
  right: 2px;
}

/* Calendar Icon */
.icon-calendar {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2) 0%, rgba(219, 39, 119, 0.1) 100%);
  border-radius: 10px;
}

.calendar-body {
  width: 22px;
  height: 18px;
  background: #ec4899;
  border-radius: 0 0 4px 4px;
  position: relative;
}

.calendar-body::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 3px;
  right: 3px;
  height: 2px;
  background: rgba(255,255,255,0.5);
  box-shadow: 0 4px 0 rgba(255,255,255,0.5), 0 8px 0 rgba(255,255,255,0.5);
}

.calendar-header {
  position: absolute;
  top: 4px;
  width: 22px;
  height: 6px;
  background: #db2777;
  border-radius: 4px 4px 0 0;
}

/* Bus Icon */
.icon-bus {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2) 0%, rgba(234, 88, 12, 0.1) 100%);
  border-radius: 10px;
}

.bus-lines {
  display: flex;
  gap: 4px;
}

.bus-line {
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, #f97316 0%, #ea580c 100%);
  border-radius: 2px;
  animation: bus-flow 1s ease-in-out infinite;
}

.bus-line:nth-child(2) { animation-delay: 0.2s; }
.bus-line:nth-child(3) { animation-delay: 0.4s; }

@keyframes bus-flow {
  0%, 100% { opacity: 0.5; height: 24px; }
  50% { opacity: 1; height: 28px; }
}

/* VS Badge Enhanced */
.vs-container {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vs-ring {
  position: absolute;
  border-radius: 50%;
  border: 3px solid;
  animation: vs-rotate 4s linear infinite;
}

.vs-ring-outer {
  inset: 0;
  border-color: rgba(59, 130, 246, 0.5);
  border-top-color: #3b82f6;
  border-right-color: #8b5cf6;
}

.vs-ring-inner {
  inset: 10px;
  border-color: rgba(239, 68, 68, 0.5);
  border-bottom-color: #ef4444;
  border-left-color: #f97316;
  animation-direction: reverse;
}

@keyframes vs-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.comparison-vs-badge .vs-text {
  font-size: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Winner Crown 3D */
.crown-3d {
  width: 24px;
  height: 20px;
  position: relative;
  margin-right: 6px;
}

.crown-base {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(180deg, #ffd700 0%, #ffaa00 100%);
  border-radius: 0 0 4px 4px;
}

.crown-point {
  position: absolute;
  bottom: 6px;
  width: 6px;
  height: 14px;
  background: linear-gradient(180deg, #ffd700 0%, #ffaa00 100%);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

.crown-point-1 { left: 0; }
.crown-point-2 { left: 50%; transform: translateX(-50%); height: 16px; }
.crown-point-3 { right: 0; }

/* Title Icons 3D */
.title-icon-3d {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bar-chart-3d {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
}

.bar-chart-3d .bar {
  width: 6px;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  border-radius: 2px 2px 0 0;
  animation: bar-grow 1.5s ease-in-out infinite;
}

.bar-chart-3d .bar-1 { height: 12px; animation-delay: 0s; }
.bar-chart-3d .bar-2 { height: 20px; animation-delay: 0.2s; }
.bar-chart-3d .bar-3 { height: 16px; animation-delay: 0.4s; }

@keyframes bar-grow {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.2); }
}

.table-icon-3d {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.table-icon-3d .table-row {
  width: 24px;
  height: 5px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  border-radius: 2px;
}

/* ============================================
   CONTRAST BENCHMARK BARS
   ============================================ */

.benchmark-contrast-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.benchmark-contrast-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.benchmark-contrast-label {
  font-size: var(--text-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-secondary);
  text-align: center;
}

.benchmark-contrast-bar {
  display: flex;
  height: 48px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-background-tertiary);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.contrast-fill {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.5s ease;
  position: relative;
}

.contrast-fill-left {
  background: linear-gradient(90deg, #ef4444 0%, #f97316 100%);
  justify-content: flex-end;
  padding-right: var(--space-md);
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.contrast-fill-right {
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
  justify-content: flex-start;
  padding-left: var(--space-md);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.contrast-value {
  font-family: var(--font-mono);
  font-size: var(--text-small);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  white-space: nowrap;
}

/* Light mode adjustments */
[data-theme="light"] .cpu-ihs {
  background: linear-gradient(145deg, #e0e0e0 0%, #b0b0b0 50%, #c0c0c0 100%);
}

[data-theme="light"] .cpu-ihs-text {
  color: #555;
}

[data-theme="light"] .gpu-pcb-3d {
  background: linear-gradient(180deg, #e0e0e0 0%, #c0c0c0 100%);
  border-color: #999;
}

[data-theme="light"] .gpu-shroud {
  background: linear-gradient(180deg, #d0d0d0 0%, #b0b0b0 100%);
}

[data-theme="light"] .brand-icon-3d .icon-layer-1 {
  background: linear-gradient(135deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.02) 100%);
}

[data-theme="light"] .brand-icon-3d .icon-layer-2 {
  background: linear-gradient(135deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.03) 100%);
}

[data-theme="light"] .brand-icon-3d .icon-layer-3 {
  background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.05) 100%);
}

/* Responsive 3D elements */
@media (max-width: 768px) {
  .cpu-chip-3d,
  .gpu-card-3d {
    transform: scale(0.8);
  }
  
  .quick-spec-icon-3d {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }
  
  .icon-cube {
    width: 18px;
    height: 18px;
  }
  
  .benchmark-contrast-bar {
    height: 40px;
  }
  
  .contrast-value {
    font-size: var(--text-xs);
  }
}


/* ============================================
   PREMIUM 3D HARDWARE CARDS
   State-of-the-art card designs
   ============================================ */

/* Premium Card Base */
.card-premium {
  position: relative;
  background: linear-gradient(145deg, var(--color-surface) 0%, var(--color-background-secondary) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-premium:hover::before {
  opacity: 1;
}

.card-premium:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 0 0 1px var(--color-primary);
}

[data-theme="dark"] .card-premium:hover {
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(59, 130, 246, 0.2),
    0 0 0 1px var(--color-primary);
}

/* Card Glow Effect */
.card-premium .card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card-premium:hover .card-glow {
  opacity: 1;
}

/* Premium Hardware Card - CPU/GPU List */
.hardware-card-premium {
  position: relative;
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-background-secondary) 100%);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hardware-card-premium::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(59, 130, 246, 0.03) 100%);
  pointer-events: none;
}

.hardware-card-premium .card-border-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.hardware-card-premium:hover .card-border-glow {
  transform: scaleX(1);
}

.hardware-card-premium:hover {
  border-color: var(--color-primary);
  transform: translateY(-6px);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(59, 130, 246, 0.3);
}

[data-theme="dark"] .hardware-card-premium:hover {
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.3),
    0 0 25px rgba(59, 130, 246, 0.15);
}

.hardware-card-premium-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--space-xl);
  text-decoration: none;
  color: inherit;
}

/* Card Visual Area */
.hardware-card-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  margin-bottom: var(--space-lg);
  position: relative;
}

/* Mini CPU Chip Visual */
.mini-cpu-chip {
  width: 80px;
  height: 80px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.4s ease;
}

.hardware-card-premium:hover .mini-cpu-chip {
  transform: rotateY(10deg) rotateX(-5deg);
}

.mini-cpu-substrate {
  position: absolute;
  inset: 8px;
  background: linear-gradient(145deg, #1a472a 0%, #0d2818 100%);
  border-radius: 6px;
  transform: translateZ(-5px);
}

.mini-cpu-ihs {
  position: absolute;
  inset: 15px;
  background: linear-gradient(145deg, #c0c0c0 0%, #909090 50%, #b0b0b0 100%);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    inset 0 2px 4px rgba(255,255,255,0.3),
    0 4px 8px rgba(0,0,0,0.2);
}

[data-theme="light"] .mini-cpu-ihs {
  background: linear-gradient(145deg, #e0e0e0 0%, #c0c0c0 50%, #d0d0d0 100%);
}

.mini-cpu-die {
  width: 25px;
  height: 25px;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  border-radius: 3px;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.hardware-card-premium[data-brand="amd"] .mini-cpu-die {
  background: linear-gradient(135deg, #ed1c24 0%, #ff6b6b 100%);
  box-shadow: 0 0 15px rgba(237, 28, 36, 0.5);
}

.mini-cpu-pins {
  position: absolute;
  bottom: 0;
  left: 15px;
  right: 15px;
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    #ffd700 0px,
    #ffd700 2px,
    transparent 2px,
    transparent 5px
  );
}

/* Mini GPU Card Visual */
.mini-gpu-card {
  width: 100px;
  height: 60px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.4s ease;
}

.hardware-card-premium:hover .mini-gpu-card {
  transform: rotateY(-10deg) rotateX(5deg);
}

.mini-gpu-pcb {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
  border-radius: 6px;
  border: 1px solid #333;
  overflow: hidden;
}

[data-theme="light"] .mini-gpu-pcb {
  background: linear-gradient(180deg, #d0d0d0 0%, #b0b0b0 100%);
  border-color: #999;
}

.mini-gpu-shroud {
  position: absolute;
  top: 5px;
  left: 5px;
  right: 20px;
  bottom: 5px;
  background: linear-gradient(180deg, #2a2a3e 0%, #1a1a2e 100%);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

[data-theme="light"] .mini-gpu-shroud {
  background: linear-gradient(180deg, #c0c0c0 0%, #a0a0a0 100%);
}

.mini-gpu-fan {
  width: 20px;
  height: 20px;
  background: conic-gradient(from 0deg, #444, #222, #444, #222, #444);
  border-radius: 50%;
  animation: mini-fan-spin 2s linear infinite;
}

@keyframes mini-fan-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.mini-gpu-ports {
  position: absolute;
  right: 3px;
  top: 10px;
  bottom: 10px;
  width: 12px;
  background: repeating-linear-gradient(
    180deg,
    #444 0px,
    #444 6px,
    transparent 6px,
    transparent 10px
  );
  border-radius: 2px;
}

/* Card Header */
.hardware-card-premium-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

/* Card Title */
.hardware-card-premium-title {
  font-size: var(--text-h5);
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-md) 0;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.hardware-card-premium:hover .hardware-card-premium-title {
  color: var(--color-primary);
}

/* Premium Spec Grid */
.premium-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.premium-spec-item {
  display: flex;
  flex-direction: column;
  padding: var(--space-sm) var(--space-md);
  background: rgba(59, 130, 246, 0.05);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.hardware-card-premium:hover .premium-spec-item {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
}

.premium-spec-value {
  font-size: var(--text-h4);
  font-weight: 800;
  color: var(--color-text-primary);
  font-family: var(--font-mono);
}

.premium-spec-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Card Footer */
.hardware-card-premium-footer {
  margin-top: auto;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.view-details-premium {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--color-primary);
  transition: all 0.3s ease;
}

.view-details-premium svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.hardware-card-premium:hover .view-details-premium svg {
  transform: translateX(4px);
}

/* Premium Stats Cards */
.stat-card-premium {
  position: relative;
  background: linear-gradient(145deg, var(--color-surface) 0%, var(--color-background-secondary) 100%);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
  overflow: hidden;
  transition: all 0.4s ease;
}

.stat-card-premium::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.stat-card-premium:hover::before {
  opacity: 1;
}

.stat-card-premium:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-icon-premium {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, rgba(59, 130, 246, 0.2) 100%);
  border-radius: var(--radius-lg);
  position: relative;
  transition: all 0.4s ease;
}

.stat-card-premium:hover .stat-icon-premium {
  transform: scale(1.1) rotate(5deg);
  background: var(--gradient-primary);
}

.stat-icon-premium svg {
  width: 32px;
  height: 32px;
  color: var(--color-primary);
  transition: color 0.3s ease;
}

.stat-card-premium:hover .stat-icon-premium svg {
  color: #fff;
}

.stat-value-premium {
  font-size: var(--text-display);
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-label-premium {
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--color-text-secondary);
}

/* Premium Feature Cards */
.feature-card-premium {
  position: relative;
  background: linear-gradient(145deg, var(--color-surface) 0%, var(--color-background-secondary) 100%);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-card-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.feature-card-premium:hover::before {
  transform: scaleX(1);
}

.feature-card-premium:hover {
  border-color: var(--color-primary);
  transform: translateY(-8px);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(59, 130, 246, 0.3);
}

[data-theme="dark"] .feature-card-premium:hover {
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(59, 130, 246, 0.15);
}

.feature-icon-premium {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, rgba(59, 130, 246, 0.15) 100%);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-lg);
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.feature-icon-premium::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card-premium:hover .feature-icon-premium {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.feature-card-premium:hover .feature-icon-premium::before {
  opacity: 1;
}

.feature-icon-premium svg {
  width: 40px;
  height: 40px;
  color: var(--color-primary);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.feature-card-premium:hover .feature-icon-premium svg {
  color: #fff;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  transform: scale(1.05);
}

/* Enhanced gradient fills for SVG icons */
.feature-icon-premium svg defs {
  position: relative;
  z-index: 1;
}

.feature-card-premium:hover .feature-icon-premium svg [fill*="url"] {
  opacity: 0.9;
}

.feature-card-premium:hover .feature-icon-premium svg [stroke*="url"] {
  opacity: 0.9;
}

.feature-title-premium {
  font-size: var(--text-h4);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
  transition: color 0.3s ease;
}

.feature-card-premium:hover .feature-title-premium {
  color: var(--color-primary);
}

.feature-text-premium {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.feature-arrow-premium {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-background-tertiary);
  border-radius: 50%;
  color: var(--color-primary);
  font-size: 20px;
  transition: all 0.3s ease;
}

.feature-card-premium:hover .feature-arrow-premium {
  background: var(--color-primary);
  color: #fff;
  transform: translateX(4px);
}

/* Premium Detail Page Spec Cards */
.spec-card-premium {
  position: relative;
  background: linear-gradient(145deg, var(--color-surface) 0%, var(--color-background-secondary) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  overflow: hidden;
  transition: all 0.3s ease;
}

.spec-card-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.spec-card-premium:hover::before {
  opacity: 1;
}

.spec-card-premium:hover {
  border-color: var(--color-primary);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.spec-card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
  transition: all 0.3s ease;
}

.spec-card-premium:hover .spec-card-icon {
  background: var(--color-primary);
  color: #fff;
  transform: scale(1.1);
}

.spec-card-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-xs);
}

.spec-card-value {
  font-size: var(--text-h4);
  font-weight: 700;
  color: var(--color-text-primary);
}

/* Premium Hero Section */
.hero-premium {
  position: relative;
  padding: var(--space-3xl) var(--space-lg);
  background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3a 50%, #0f0f2f 100%);
  overflow: hidden;
  margin: calc(-1 * var(--space-xl)) calc(-1 * var(--space-lg)) var(--space-2xl);
}

[data-theme="light"] .hero-premium {
  background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 50%, #f5f7ff 100%);
}

.hero-premium-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(168, 85, 247, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.hero-premium-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.hero-premium-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-premium-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: var(--space-lg);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .hero-premium-title {
  color: var(--color-text-primary);
  text-shadow: none;
}

.hero-premium-title span {
  background: linear-gradient(135deg, #f97316 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .hero-premium-title span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-premium-subtitle {
  font-size: var(--text-h5);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

[data-theme="light"] .hero-premium-subtitle {
  color: var(--color-text-secondary);
}

.hero-brand-link {
  color: inherit;
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  transition: border-color var(--transition-base);
}

.hero-brand-link:hover {
  border-color: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .hero-brand-link {
  border-bottom-color: var(--color-primary-light);
}

[data-theme="light"] .hero-brand-link:hover {
  border-bottom-color: var(--color-primary);
  color: var(--color-primary);
}

/* Hardware Cards Grid Premium */
.hardware-cards-grid-premium {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}

/* Responsive Premium Cards */
@media (max-width: 768px) {
  .hardware-cards-grid-premium {
    grid-template-columns: 1fr;
  }
  
  .premium-spec-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-premium {
    padding: var(--space-2xl) var(--space-md);
    margin: calc(-1 * var(--space-lg)) calc(-1 * var(--space-md)) var(--space-xl);
  }
  
  .stat-value-premium {
    font-size: var(--text-h1);
  }
  
  .feature-icon-premium {
    width: 60px;
    height: 60px;
  }
  
  .feature-icon-premium svg {
    width: 30px;
    height: 30px;
  }
    font-size: 30px;
  }
}


/* ============================================
   PREMIUM DETAIL PAGE HERO
   CPU/GPU Detail Page Premium Headers
   ============================================ */

.detail-hero {
  position: relative;
  padding: var(--space-3xl) var(--space-xl);
  margin: calc(-1 * var(--space-xl)) calc(-1 * var(--space-lg)) var(--space-2xl);
  background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3a 50%, #0f0f2f 100%);
  overflow: hidden;
}

[data-theme="light"] .detail-hero {
  background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 50%, #f5f7ff 100%);
}

.detail-hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 30% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(168, 85, 247, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.detail-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.detail-hero-gpu .detail-hero-bg {
  background: 
    radial-gradient(ellipse at 30% 50%, rgba(34, 197, 94, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
}

.detail-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  max-width: 1200px;
  margin: 0 auto;
}

.detail-hero-visual {
  flex-shrink: 0;
}

.detail-hero-info {
  flex: 1;
}

.detail-hero-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .detail-hero-title {
  color: var(--color-text-primary);
  text-shadow: none;
}

.detail-hero-subtitle {
  font-size: var(--text-body);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-lg);
}

[data-theme="light"] .detail-hero-subtitle {
  color: var(--color-text-secondary);
}

/* ============================================
   GAME DETAIL HERO WITH PORTRAIT IMAGE
   ============================================ */

.game-detail-hero {
  position: relative;
  padding: var(--space-2xl);
  margin-bottom: var(--space-xl);
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 300px;
}

.game-detail-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: linear-gradient(135deg, #1e40af 0%, #7c3aed 100%);
}

.game-detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.9) 0%, rgba(124, 58, 237, 0.85) 50%, rgba(37, 99, 235, 0.9) 100%);
  backdrop-filter: blur(4px);
}

.game-detail-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  gap: var(--space-xl);
}

/* Portrait Game Art */
.game-portrait-wrapper {
  flex-shrink: 0;
  width: 180px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.game-portrait-wrapper.no-image {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 9 / 16;
}

.game-portrait-wrapper.no-image::after {
  content: '';
  width: 64px;
  height: 64px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12h4m-2-2v4'/%3E%3Ccircle cx='17' cy='10' r='1'/%3E%3Ccircle cx='15' cy='14' r='1'/%3E%3Cpath d='M7.5 7h9a4.5 4.5 0 0 1 0 9h-9a4.5 4.5 0 0 1 0-9z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.5;
}

.game-portrait-wrapper.no-image img {
  display: none;
}

.game-portrait-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Game Info */
.game-detail-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.game-detail-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.game-detail-subtitle {
  font-size: var(--text-body);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-md);
}

.game-detail-meta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

.game-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
}

.game-meta-badge .badge-icon {
  font-size: 0.9rem;
  width: 18px;
  height: 18px;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Override icon colors to white inside hero badges */
.game-meta-badge .badge-icon.icon-game {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12h4m-2-2v4'/%3E%3Ccircle cx='17' cy='10' r='1'/%3E%3Ccircle cx='15' cy='14' r='1'/%3E%3Cpath d='M7.5 7h9a4.5 4.5 0 0 1 0 9h-9a4.5 4.5 0 0 1 0-9z'/%3E%3C/svg%3E");
}

.game-meta-badge .badge-icon.icon-calendar {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
}

.game-meta-badge.genre-badge {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(124, 58, 237, 0.9) 100%);
  color: #fff;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.game-meta-badge.year-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.game-hero-summary {
  font-size: var(--text-small);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  max-width: 600px;
}

/* Responsive Game Detail Hero */
@media (max-width: 768px) {
  .game-detail-hero {
    padding: var(--space-lg);
  }
  
  .game-detail-hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .game-portrait-wrapper {
    width: 140px;
  }
  
  .game-detail-meta {
    justify-content: center;
  }
  
  .game-hero-summary {
    max-width: 100%;
  }
}

/* Brand Badge */
.brand-badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.brand-badge.brand-amd {
  background: linear-gradient(135deg, #ed1c24 0%, #ff4444 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(237, 28, 36, 0.4);
}

.brand-badge.brand-intel {
  background: linear-gradient(135deg, #0071c5 0%, #00a3e0 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 113, 197, 0.4);
}

.brand-badge.brand-nvidia {
  background: linear-gradient(135deg, #76b900 0%, #8bc34a 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(118, 185, 0, 0.4);
}

/* Detail Quick Stats */
.detail-quick-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.detail-quick-stats .quick-stat {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  text-align: center;
  min-width: 100px;
  transition: all 0.3s ease;
}

[data-theme="light"] .detail-quick-stats .quick-stat {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.detail-quick-stats .quick-stat:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(59, 130, 246, 0.5);
}

[data-theme="light"] .detail-quick-stats .quick-stat:hover {
  background: #fff;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.detail-quick-stats .quick-stat-value {
  font-size: var(--text-h4);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

[data-theme="light"] .detail-quick-stats .quick-stat-value {
  color: var(--color-text-primary);
}

.detail-quick-stats .quick-stat-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: var(--space-xs);
}

[data-theme="light"] .detail-quick-stats .quick-stat-label {
  color: var(--color-text-muted);
}

/* Game Hero Notes (AI-generated summary + min specs) */
.game-hero-notes {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  max-width: 600px;
}

[data-theme="light"] .game-hero-notes {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.game-hero-notes .game-summary {
  color: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .game-hero-notes .game-summary {
  color: var(--color-text-primary);
}

.game-hero-notes .summary-text {
  font-size: var(--text-body);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.game-hero-notes .min-specs {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: var(--space-md);
}

[data-theme="light"] .game-hero-notes .min-specs {
  border-top-color: var(--color-border);
}

.game-hero-notes .min-specs h4 {
  font-size: var(--text-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-sm);
  color: rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .game-hero-notes .min-specs h4 {
  color: var(--color-text-secondary);
}

.game-hero-notes .min-specs ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xs);
}

.game-hero-notes .min-specs li {
  font-size: var(--text-small);
  color: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .game-hero-notes .min-specs li {
  color: var(--color-text-secondary);
}

.game-hero-notes .min-specs li strong {
  color: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .game-hero-notes .min-specs li strong {
  color: var(--color-text-primary);
}

@media (max-width: 768px) {
  .game-hero-notes .min-specs ul {
    grid-template-columns: 1fr;
  }
}

/* Specs Grid Premium */
.specs-grid-premium {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-md);
}

/* Responsive Detail Hero */
@media (max-width: 768px) {
  .detail-hero {
    padding: var(--space-xl) var(--space-md);
    margin: calc(-1 * var(--space-lg)) calc(-1 * var(--space-md)) var(--space-xl);
  }
  
  .detail-hero-content {
    flex-direction: column;
    text-align: center;
  }
  
  .detail-hero-visual {
    transform: scale(0.85);
  }
  
  .detail-quick-stats {
    justify-content: center;
  }
  
  .detail-quick-stats .quick-stat {
    min-width: 80px;
    padding: var(--space-sm) var(--space-md);
  }
  
  .detail-quick-stats .quick-stat-value {
    font-size: var(--text-h5);
  }
  
  .specs-grid-premium {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   PREMIUM GAME CARDS
   Game Listing Page Premium Design
   ============================================ */

/* Game Card with Image */
.game-card-premium {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-border);
}

.game-card-premium:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-color: var(--color-primary);
}

.game-card-premium-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

/* Game Card Image */
.game-card-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #1e3a5f 0%, #2d1b4e 50%, #1a1a2e 100%);
}

.game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-card-premium:hover .game-card-image img {
  transform: scale(1.15);
}

.game-card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top, 
    rgba(0, 0, 0, 0.85) 0%, 
    rgba(0, 0, 0, 0.4) 40%,
    transparent 70%
  );
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.game-card-premium:hover .game-card-image-overlay {
  opacity: 0.7;
}

.game-card-image.no-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-card-image.no-image::after {
  content: '';
  width: 64px;
  height: 64px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12h4m-2-2v4'/%3E%3Ccircle cx='17' cy='10' r='1'/%3E%3Ccircle cx='15' cy='14' r='1'/%3E%3Cpath d='M7.5 7h9a4.5 4.5 0 0 1 0 9h-9a4.5 4.5 0 0 1 0-9z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.4;
}

.game-card-image.no-image img {
  display: none;
}

/* Game Card Content */
.game-card-premium-content {
  padding: var(--space-md) var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  background: var(--color-surface);
}

.game-card-premium-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.game-card-premium:hover .game-card-premium-title {
  color: var(--color-primary);
}

.game-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: auto;
}

.game-card-genre-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #7c3aed 100%);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.game-card-year {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 600;
  padding: 4px 10px;
  background: var(--color-surface-alt);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
}

.game-card-year::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Hover Overlay */
.game-card-hover {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.95) 0%, rgba(124, 58, 237, 0.95) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.game-card-premium:hover .game-card-hover {
  opacity: 1;
}

.view-fps-btn {
  padding: var(--space-sm) var(--space-xl);
  background: #fff;
  color: var(--color-primary);
  font-weight: 700;
  border-radius: var(--radius-full);
  font-size: var(--text-small);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.game-card-premium:hover .view-fps-btn:hover {
  transform: scale(1.05);
}

/* Game Cards Grid */
.game-cards-grid-premium {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-xl);
}

/* Homepage Games Grid - fixed 4 columns */
.home-games-grid {
  grid-template-columns: repeat(4, 1fr);
}

/* Responsive Game Cards */
@media (max-width: 1200px) {
  .home-games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .game-cards-grid-premium {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
  .home-games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .game-cards-grid-premium {
    grid-template-columns: 1fr;
  }
  .home-games-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================
   QUICK FILTERS FOR GAME DETAIL PAGE
   ============================================ */

.quick-filters-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.quick-filters-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

.quick-filters-row:last-child {
  margin-bottom: 0;
}

.quick-filters-label {
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--color-text-secondary);
  min-width: 80px;
}

.quick-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.quick-filter-btn {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--color-text-secondary);
  background: var(--color-background-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all 0.2s ease;
}

.quick-filter-btn:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.quick-filter-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* Settings Badges */
.settings-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: capitalize;
}

.settings-badge.settings-ultra {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: #fff;
}

.settings-badge.settings-high {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
}

.settings-badge.settings-medium {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
}

.settings-badge.settings-low {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
}

/* FPS Value Coloring */
.fps-value {
  font-weight: 700;
  font-family: var(--font-mono);
}

/* FPS table cell colors with high contrast backgrounds */
td.fps-value.fps-good {
  background: #047857 !important;
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  font-weight: 700;
}

td.fps-value.fps-ok {
  background: #b45309 !important;
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  font-weight: 700;
}

td.fps-value.fps-low {
  background: #b91c1c !important;
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  font-weight: 700;
}

/* Non-table FPS values (text only) */
.fps-good:not(td) {
  color: var(--color-success);
}

.fps-ok:not(td) {
  color: var(--color-warning);
}

.fps-low:not(td) {
  color: var(--color-danger);
}

/* Sortable Table Headers */
th[data-sort] {
  position: relative;
  user-select: none;
}

th[data-sort]::after {
  content: '⇅';
  margin-left: var(--space-xs);
  opacity: 0.3;
  font-size: 0.8em;
}

th[data-sort].sort-asc::after {
  content: '↑';
  opacity: 1;
  color: var(--color-primary);
}

th[data-sort].sort-desc::after {
  content: '↓';
  opacity: 1;
  color: var(--color-primary);
}

th[data-sort]:hover {
  background: var(--color-surface-hover);
}

/* No Data Message */
.no-data {
  text-align: center;
  color: var(--color-text-muted);
  padding: var(--space-2xl) !important;
}

@media (max-width: 768px) {
  .quick-filters-row {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .quick-filters-label {
    min-width: auto;
    margin-bottom: var(--space-xs);
  }
}

/* ============================================
   MEGA MENU FOR TOOLS
   ============================================ */

.nav-links li {
  position: relative;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 500px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 1000;
}

.nav-links li:hover .mega-menu {
  opacity: 1;
  visibility: visible;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.mega-menu-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text-primary);
  transition: all 0.2s ease;
}

.mega-menu-item:hover {
  background: var(--color-primary-light);
}

.mega-menu-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-background-secondary);
  border-radius: var(--radius-md);
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.mega-menu-icon svg {
  width: 24px;
  height: 24px;
  transition: all 0.3s ease;
}

.mega-menu-item:hover .mega-menu-icon {
  background: var(--color-primary);
  transform: scale(1.05);
}

.mega-menu-item:hover .mega-menu-icon svg {
  filter: brightness(1.2);
}

.mega-menu-content {
  flex: 1;
}

.mega-menu-title {
  font-weight: 600;
  font-size: var(--text-body);
  margin-bottom: 2px;
}

.mega-menu-desc {
  font-size: var(--text-small);
  color: var(--color-text-muted);
}

@media (max-width: 1024px) {
  .mega-menu {
    display: none;
  }
}


/* ============================================
   RANKING TOGGLE FOR PRICE-PERFORMANCE PAGES
   ============================================ */

.ranking-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.ranking-toggle-label {
  font-weight: 600;
  color: var(--color-text-secondary);
}

.ranking-toggle-buttons {
  display: flex;
  gap: var(--space-xs);
  background: var(--color-background-secondary);
  padding: 4px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.ranking-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--color-text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.ranking-toggle-btn:hover {
  color: var(--color-primary);
  background: var(--color-surface);
}

.ranking-toggle-btn.active {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.toggle-icon {
  font-size: 1.1em;
}


/* ============================================
   PERFORMANCE EXPECTATIONS GRID (Can I Run It)
   ============================================ */

.performance-expectations {
  margin: var(--space-xl) 0;
}

.performance-expectations h3 {
  margin-bottom: var(--space-md);
  font-size: var(--text-lg);
}

.performance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
}

.performance-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  transition: all 0.2s ease;
}

.performance-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.performance-resolution {
  font-weight: 700;
  font-size: var(--text-body);
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
}

.performance-rating {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xs);
}

.performance-fps {
  font-size: var(--text-small);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
}

.performance-excellent {
  border-color: var(--color-success);
  background: rgba(16, 185, 129, 0.05);
}

.performance-good {
  border-color: var(--color-success);
  background: rgba(16, 185, 129, 0.03);
}

.performance-ok {
  border-color: var(--color-warning);
  background: rgba(245, 158, 11, 0.05);
}

.performance-poor {
  border-color: var(--color-danger);
  background: rgba(239, 68, 68, 0.05);
}

/* ============================================
   ACTIVE FILTER BANNER
   ============================================ */

.active-filter-banner {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-secondary-light));
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-lg);
}

.active-filter-content {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.active-filter-label {
  font-weight: 600;
  color: var(--color-primary);
  font-size: var(--text-body);
}

.active-filter-hardware {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hardware-tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--text-small);
}

.hardware-tag.cpu-tag {
  background: var(--color-info-light);
  color: var(--color-info);
  border: 1px solid var(--color-info);
}

.hardware-tag.gpu-tag {
  background: var(--color-success-light);
  color: var(--color-success);
  border: 1px solid var(--color-success);
}

.hardware-separator {
  font-weight: 700;
  color: var(--color-text-secondary);
}

.clear-filter-btn {
  margin-left: auto;
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-danger-light);
  color: var(--color-danger);
  border: 1px solid var(--color-danger);
  border-radius: var(--radius-md);
  font-size: var(--text-small);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.clear-filter-btn:hover {
  background: var(--color-danger);
  color: white;
}

@media (max-width: 768px) {
  .active-filter-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .clear-filter-btn {
    margin-left: 0;
    margin-top: var(--space-sm);
  }
}

/* ============================================
   HARDWARE FILTER FOR GAME PAGES
   ============================================ */

.hardware-filter-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.hardware-filter-title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.hardware-filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: var(--space-md);
  align-items: end;
}

.hardware-filter-grid .form-group {
  margin-bottom: 0;
}

.hardware-filter-grid .form-group label {
  display: block;
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xs);
}

.hardware-filter-grid select {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-background);
  color: var(--color-text-primary);
  font-size: var(--text-body);
}

@media (max-width: 768px) {
  .hardware-filter-grid {
    grid-template-columns: 1fr;
  }
  
  .performance-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================
   GAME COMBINATION PAGE STYLES - PREMIUM
   ============================================ */

/* Combination Hero - Premium Design */
.combo-hero {
  position: relative;
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-xl);
  overflow: hidden;
  min-height: 320px;
}

.combo-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1e40af 0%, #7c3aed 50%, #2563eb 100%);
  background-size: cover;
  background-position: center;
}

/* Game-specific backgrounds - will be set via data attribute */
.combo-hero[data-game] .combo-hero-bg {
  background-image: var(--game-bg, none);
}

.combo-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.85) 0%, rgba(124, 58, 237, 0.75) 50%, rgba(37, 99, 235, 0.85) 100%);
  backdrop-filter: blur(2px);
}

.combo-hero-content {
  position: relative;
  z-index: 1;
  padding: var(--space-2xl) var(--space-xl);
  display: flex;
  align-items: stretch;
  gap: var(--space-xl);
}

/* Combo Portrait Image */
.combo-portrait-wrapper {
  flex-shrink: 0;
  width: 180px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.combo-portrait-wrapper.no-image {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 9 / 16;
}

.combo-portrait-wrapper.no-image::after {
  content: '';
  width: 64px;
  height: 64px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12h4m-2-2v4'/%3E%3Ccircle cx='17' cy='10' r='1'/%3E%3Ccircle cx='15' cy='14' r='1'/%3E%3Cpath d='M7.5 7h9a4.5 4.5 0 0 1 0 9h-9a4.5 4.5 0 0 1 0-9z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.5;
}

.combo-portrait-wrapper.no-image img {
  display: none;
}

.combo-portrait-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Combo Main Content */
.combo-main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-lg);
}

.combo-game-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Hardware Cards Row */
.combo-hardware-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.combo-hw-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-xl);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
}

.combo-hw-card:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.combo-hw-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.combo-hw-icon .vendor-icon,
.combo-hw-icon .vendor-icon-xl {
  width: 44px;
  height: 44px;
  min-width: 44px;
}

.combo-cpu-card .combo-hw-icon {
  background: rgba(255, 255, 255, 0.95);
}

.combo-gpu-card .combo-hw-icon {
  background: rgba(255, 255, 255, 0.95);
}

.combo-hw-icon svg {
  width: 100%;
  height: 100%;
}

.combo-hw-name {
  font-size: var(--text-body);
  font-weight: 600;
  color: #fff;
  text-align: center;
  line-height: 1.3;
}

.combo-plus {
  font-size: var(--text-h2);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
}

/* FPS Summary Box */
.combo-fps-box {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  padding: var(--space-lg) var(--space-xl);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 100%;
}

.combo-fps-left {
  text-align: center;
  padding-right: var(--space-xl);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.combo-fps-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--space-xs);
}

.combo-fps-value {
  font-size: 3.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.combo-fps-right {
  flex: 1;
}

.combo-fps-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-md);
  font-size: var(--text-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-sm);
}

.performance-excellent .combo-fps-badge {
  background: #22c55e;
  color: #fff;
}

.performance-good .combo-fps-badge {
  background: #3b82f6;
  color: #fff;
}

.performance-playable .combo-fps-badge {
  background: #f59e0b;
  color: #000;
}

.performance-limited .combo-fps-badge {
  background: #ef4444;
  color: #fff;
}

.combo-fps-desc {
  font-size: var(--text-small);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .combo-hero-content {
    padding: var(--space-xl) var(--space-md);
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .combo-portrait-wrapper {
    width: 140px;
  }
  
  .combo-main-content {
    align-items: center;
  }
  
  .combo-hardware-row {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .combo-hw-card {
    min-width: 200px;
    padding: var(--space-md) var(--space-lg);
  }
  
  .combo-hw-icon {
    width: 52px;
    height: 52px;
    padding: 8px;
  }
  
  .combo-hw-icon .vendor-icon,
  .combo-hw-icon .vendor-icon-xl {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }
  
  .combo-plus {
    transform: rotate(90deg);
    font-size: var(--text-h3);
  }
  
  .combo-fps-box {
    flex-direction: column;
    text-align: center;
    gap: var(--space-md);
  }
  
  .combo-fps-left {
    padding-right: 0;
    padding-bottom: var(--space-md);
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
  }
  
  .combo-fps-value {
    font-size: 2.5rem;
  }
  
  .combo-fps-right {
    text-align: center;
  }
}

/* Hardware Specs Section */
.hardware-specs-section {
  margin-bottom: var(--space-xl);
}

.hardware-specs-section h2 {
  font-size: var(--text-h3);
  margin-bottom: var(--space-lg);
}

.hardware-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.hardware-spec-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.spec-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.spec-card-header .vendor-icon,
.spec-card-header .vendor-icon-lg {
  width: 32px;
  height: 32px;
  min-width: 32px;
}

.cpu-spec-card .spec-card-header {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
}

.gpu-spec-card .spec-card-header {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
}

.spec-card-icon {
  font-size: 1.5em;
}

.spec-card-header h3 {
  font-size: var(--text-body);
  font-weight: 600;
  margin: 0;
}

.spec-card-body {
  padding: var(--space-md) var(--space-lg);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-label {
  color: var(--color-text-secondary);
  font-size: var(--text-small);
}

.spec-value {
  font-weight: 600;
  color: var(--color-text-primary);
  font-size: var(--text-small);
}

.spec-card-link {
  display: block;
  padding: var(--space-md) var(--space-lg);
  text-align: center;
  color: var(--color-primary);
  font-weight: 600;
  font-size: var(--text-small);
  text-decoration: none;
  border-top: 1px solid var(--color-border);
  transition: background 0.2s;
}

.spec-card-link:hover {
  background: var(--color-primary-light);
}

/* FPS Section - ensure content is centered */
.fps-section {
  text-align: center;
}

.fps-section .table-container {
  text-align: left;
}

/* FPS Section Subtitle */
.fps-section-subtitle {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  text-align: center;
}

/* Center section titles on game pages */
.fps-section h2,
.hardware-filter-section .hardware-filter-title,
.quick-filters-section h2,
.game-about-section h2,
.hardware-specs-section h2,
.related-links-section h2,
.combination-analysis-section h2 {
  text-align: center;
}

/* Related Links Section */
.related-links-section {
  margin-top: var(--space-2xl);
}

.related-links-section h2 {
  font-size: var(--text-h4);
  margin-bottom: var(--space-lg);
}

.related-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}

.related-link-card {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--color-text-primary);
  transition: all 0.2s;
}

.related-link-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.related-icon {
  font-size: 1.5em;
}

.related-text {
  font-weight: 500;
}

@media (max-width: 768px) {
  .performance-summary {
    flex-direction: column;
    text-align: center;
  }
  
  .performance-verdict {
    text-align: center;
  }
  
  .combination-hardware {
    flex-direction: column;
  }
  
  .hardware-plus {
    transform: rotate(90deg);
  }
}

/* Combination Analysis Section */
.combination-analysis-section {
  margin-bottom: var(--space-xl);
  padding: var(--space-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.combination-analysis-section h2 {
  font-size: var(--text-h3);
  margin-bottom: var(--space-lg);
  color: var(--color-text-primary);
}

.combination-analysis-content {
  color: var(--color-text-secondary);
  line-height: 1.8;
  font-size: var(--text-body);
  margin-bottom: var(--space-lg);
}

.combination-analysis-content p {
  max-width: 100%;
  margin-bottom: var(--space-md);
}

.resolution-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-md);
}

.resolution-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-lg);
  background: var(--color-background-secondary);
  border-radius: var(--radius-md);
  text-align: center;
}

.resolution-label {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xs);
  font-weight: 500;
}

.resolution-fps {
  font-size: var(--text-h3);
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-md);
}

.resolution-fps.fps-good {
  background: #047857 !important;
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.resolution-fps.fps-ok {
  background: #b45309 !important;
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.resolution-fps.fps-low {
  background: #b91c1c !important;
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

