/* 🚀 CLEAN FLOATING SPACE DESIGN SYSTEM 🚀 */

/* ===== CSS RESET & FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@300;400;500&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* 🎨 MODERN GENZ COLOR PALETTE */
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --bg-card: #161616;
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-hover: rgba(255, 255, 255, 0.05);
  
  --text-primary: #ffffff;
  --text-secondary: #a3a3a3;
  --text-muted: #737373;
  --text-accent: #e5e5e5;
  
  --border-primary: rgba(255, 255, 255, 0.1);
  --border-secondary: rgba(255, 255, 255, 0.05);
  --border-accent: rgba(99, 102, 241, 0.3);
  
  /* 🌈 GENZ GRADIENT COLORS */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-neon: linear-gradient(135deg, #fa0fa0 0%, #0ff0f0 100%);
  --gradient-cyber: linear-gradient(135deg, #ff006e 0%, #00d4ff 100%);
  --gradient-space: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  
  /* 🎯 ACCENT COLORS */
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  --accent-cyan: #06b6d4;
  --accent-orange: #f97316;
  --accent-green: #10b981;
  --accent-yellow: #f59e0b;
  --accent-red: #ef4444;
  --accent-indigo: #6366f1;
  
  /* 📏 MODERN SPACING */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* 🔤 TYPOGRAPHY SCALE */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;
  
  /* 🏷️ BORDER RADIUS */
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;
  
  /* ✨ MODERN SHADOWS */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --shadow-neon: 0 0 30px rgba(139, 92, 246, 0.3);
  --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.2);
  
  /* 🎬 ANIMATIONS */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* 🎯 HEADER DIMENSIONS */
  --header-height: 4rem; /* Reduced header height */
}

/* 🌞 LIGHT MODE OVERRIDES */
[data-theme="light"] {
  --bg-primary: #fafafa;
  --bg-secondary: #f4f4f5;
  --bg-tertiary: #ffffff;
  --bg-card: #ffffff;
  --bg-glass: rgba(0, 0, 0, 0.03);
  --bg-hover: rgba(0, 0, 0, 0.05);
  
  --text-primary: #0a0a0a;
  --text-secondary: #525252;
  --text-muted: #737373;
  --text-accent: #171717;
  
  --border-primary: rgba(0, 0, 0, 0.1);
  --border-secondary: rgba(0, 0, 0, 0.05);
  --border-accent: rgba(99, 102, 241, 0.3);
  
  --shadow-neon: 0 0 30px rgba(139, 92, 246, 0.15);
  --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.1);
}

/* 🎯 BASE STYLES */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

/* 🌌 PERFECT INFINITE SPACE SYSTEM 🌌 */

/* Deep Space Background with Performance Optimization */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: 
    radial-gradient(ellipse at center, #0a0a1a 0%, #000000 100%);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: var(--text-base);
  overflow-x: hidden;
  position: relative;
  transition: all var(--transition-base);
  min-height: 100vh;
  /* Performance optimizations */
  will-change: auto;
  transform: translateZ(0);
}

/* Light mode space background */
[data-theme="light"] body {
  background: 
    radial-gradient(ellipse at center, #e6f3ff 0%, #b3d9ff 100%);
}

/* 🌌 INFINITE JAVASCRIPT SPACE SYSTEM 🌌 */

/* JavaScript-controlled stars */
.js-star {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
  transform: translateZ(0);
  z-index: -10; /* Behind all content */
}

/* JavaScript-controlled cluster stars */
.js-cluster-star {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
  transform: translateZ(0);
  z-index: -10; /* Behind all content */
}

/* JavaScript-controlled shooting stars */
.js-shooting-star {
  position: absolute;
  pointer-events: none;
  will-change: transform, opacity;
  transform: translateZ(0);
  z-index: -5; /* Behind content but above stars */
}

/* JavaScript-controlled comets */
.js-comet {
  position: absolute;
  pointer-events: none;
  will-change: transform, opacity;
  transform: translateZ(0);
  z-index: -5; /* Behind content but above stars */
}

/* JavaScript-controlled particles */
.js-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
  transform: translateZ(0);
  z-index: -8; /* Behind content */
}

/* 🎭 ESSENTIAL SPACE ANIMATIONS */
@keyframes twinkle {
  0%, 100% { 
    opacity: 0.8; 
    transform: scale(1);
  }
  50% { 
    opacity: 1; 
    transform: scale(1.2);
  }
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes float-medium {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

@keyframes float-fast {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes animate-fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 🏗️ SMART LAYOUT SYSTEM */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
  position: relative;
  z-index: 10;
}

/* 📦 INTELLIGENT FLOATING COMPONENTS */

/* Header - Floating Navigation Island */
header {
  position: fixed;
  top: var(--space-6); /* Bring the entire header section down more */
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-3) 0; /* Slightly increased padding for better height */
  background: transparent;
  backdrop-filter: blur(0px);
  transition: all var(--transition-base);
}

/* Header becomes more solid on scroll for readability */
header.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* Three equal columns for perfect centering */
  align-items: center;
  gap: var(--space-4);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* Hide hamburger menu on desktop */
.hamburger-btn {
  display: none;
}

/* Logo positioned in first column */
.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--text-xl);
  font-weight: 700;
  padding: var(--space-3) var(--space-4);
  background: rgba(20, 20, 35, 0.8);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-full);
  text-decoration: none;
  color: var(--text-primary);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  transition: all var(--transition-base);
  animation: float-slow 6s ease-in-out infinite;
  justify-self: start; /* Align to start of first column */
}

/* Navigation perfectly centered in middle column */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  list-style: none;
  background: rgba(20, 20, 35, 0.8);
  backdrop-filter: blur(20px);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  animation: float-medium 8s ease-in-out infinite;
  margin: 0;
  justify-self: center; /* Perfect center */
}

.nav-links a {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(139, 92, 246, 0.2);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* Theme toggle positioned in third column */
.theme-toggle {
  padding: var(--space-3);
  background: rgba(20, 20, 35, 0.8);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  transition: all var(--transition-base);
  animation: float-fast 5s ease-in-out infinite;
  color: var(--text-primary);
  justify-self: end; /* Align to end of third column */
}

.theme-toggle:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

/* Light Mode Header Adjustments */
[data-theme="light"] .logo,
[data-theme="light"] .nav-links,
[data-theme="light"] .theme-toggle {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

[data-theme="light"] header.scrolled {
  background: rgba(250, 250, 250, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-links a.active {
  background: rgba(139, 92, 246, 0.1);
}

/* Main Content Spacing */
main {
  padding-top: calc(var(--header-height) + var(--space-8));
  position: relative;
  z-index: 10;
  min-height: 100vh;
}

/* 🎨 FLOATING CARD SYSTEM */
.card,
.scientifact-card,
.pathway-card,
.featured-article-card,
.article-card,
.stat-card,
.glass {
  background: rgba(25, 25, 40, 0.6);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin: var(--space-4) 0;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.2),
    0 0 20px rgba(139, 92, 246, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  animation: float-slow 10s ease-in-out infinite;
}

/* Stagger animations */
.card:nth-child(even),
.scientifact-card:nth-child(even),
.article-card:nth-child(even) {
  animation-delay: -5s;
}

/* Hover State */
.card:hover,
.scientifact-card:hover,
.pathway-card:hover,
.featured-article-card:hover,
.article-card:hover,
.stat-card:hover,
.glass:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(139, 92, 246, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Light Mode Cards */
[data-theme="light"] .card,
[data-theme="light"] .scientifact-card,
[data-theme="light"] .pathway-card,
[data-theme="light"] .featured-article-card,
[data-theme="light"] .article-card,
[data-theme="light"] .stat-card,
[data-theme="light"] .glass {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.08),
    0 0 20px rgba(139, 92, 246, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* 🌟 GRID SYSTEM - FLOATING LAYOUT */
.grid {
  display: grid;
  gap: var(--space-8);
  position: relative;
  z-index: 10;
}

.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* 🎯 TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
  line-height: 1.7;
}

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

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

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

/* 🔘 FLOATING BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.btn-primary {
  background: rgba(139, 92, 246, 0.2);
  color: var(--accent-purple);
  box-shadow: 
    0 4px 20px rgba(139, 92, 246, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  background: rgba(139, 92, 246, 0.3);
  transform: translateY(-2px);
  box-shadow: 
    0 8px 30px rgba(139, 92, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-secondary {
  background: rgba(75, 85, 99, 0.2);
  color: var(--text-secondary);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover {
  background: rgba(75, 85, 99, 0.3);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.btn-ghost:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* 🏷️ FLOATING TAGS */
.badge,
.tag,
.category-tag,
.knowledge-domain-tag,
.badge-default {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  background: rgba(139, 92, 246, 0.15);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition-base);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.1);
  color: var(--accent-purple);
}

.badge:hover,
.tag:hover {
  transform: translateY(-2px) scale(1.05);
  background: rgba(139, 92, 246, 0.25);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.2);
}

/* 🎪 SECTIONS - SEAMLESS FLOW */
section {
  padding: var(--space-12) 0;
  position: relative;
  z-index: 10;
}

/* 🔥 POPULAR TOPICS SECTION - Remove background/border */
.popular-topics-section {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.popular-topics-section .container-narrow {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

/* Page Hero - Floating in Space */
.page-hero,
.hero {
  text-align: center;
  padding: var(--space-12) 0 var(--space-12); /* Significantly reduced padding */
  position: relative;
  z-index: 10;
}

/* Smooth gradient transition for seamless space theme */
.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, 
    transparent 0%, 
    transparent 40%,
    rgba(139, 92, 246, 0.02) 80%, 
    rgba(139, 92, 246, 0.03) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero h1,
.page-hero h1 {
  font-size: var(--text-6xl);
  font-weight: 700;
  margin-bottom: var(--space-6);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.1));
  animation: float-medium 8s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

/* Article Specific Styles */
.article-content {
  animation: animate-fade-in 0.8s ease-out;
}

.article-header {
  text-align: center;
  margin-bottom: var(--space-12);
  padding: var(--space-8) 0;
  background: rgba(25, 25, 40, 0.4);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-2xl);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.article-header-clean {
  text-align: center;
  margin-bottom: var(--space-12);
  padding: var(--space-8) 0;
}

/* 🎨 ARTICLE FOOTER STYLES */
.article-footer {
  margin-top: var(--space-16);
  padding-top: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.article-footer-section {
  transition: all var(--transition-base);
  animation: float-medium 8s ease-in-out infinite;
}

.article-footer-section:nth-child(even) {
  animation-delay: -4s;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.section-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

/* Share Buttons */
.share-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
  border: none;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.twitter-btn {
  background: linear-gradient(135deg, rgba(29, 161, 242, 0.2) 0%, rgba(13, 139, 217, 0.3) 100%);
  color: #1da1f2;
  box-shadow: 0 4px 20px rgba(29, 161, 242, 0.2);
}

.twitter-btn:hover {
  background: linear-gradient(135deg, rgba(29, 161, 242, 0.3) 0%, rgba(13, 139, 217, 0.4) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(29, 161, 242, 0.3);
}

.facebook-btn {
  background: linear-gradient(135deg, rgba(66, 103, 178, 0.2) 0%, rgba(54, 88, 153, 0.3) 100%);
  color: #4267B2;
  box-shadow: 0 4px 20px rgba(66, 103, 178, 0.2);
}

.facebook-btn:hover {
  background: linear-gradient(135deg, rgba(66, 103, 178, 0.3) 0%, rgba(54, 88, 153, 0.4) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(66, 103, 178, 0.3);
}

.linkedin-btn {
  background: linear-gradient(135deg, rgba(0, 119, 181, 0.2) 0%, rgba(0, 95, 145, 0.3) 100%);
  color: #0077b5;
  box-shadow: 0 4px 20px rgba(0, 119, 181, 0.2);
}

.linkedin-btn:hover {
  background: linear-gradient(135deg, rgba(0, 119, 181, 0.3) 0%, rgba(0, 95, 145, 0.4) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 119, 181, 0.3);
}

.copy-btn {
  background: rgba(139, 92, 246, 0.2);
  color: var(--accent-purple);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
}

.copy-btn:hover {
  background: rgba(139, 92, 246, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.3);
}

/* Explore Grid */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
}

.explore-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  transition: all var(--transition-base);
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.explore-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.2);
}

.explore-icon {
  font-size: var(--text-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-xl);
  background: rgba(139, 92, 246, 0.2);
  flex-shrink: 0;
}

.explore-content h4 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-1);
  color: var(--text-primary);
}

.explore-content p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
}

/* Navigation */
.article-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-6);
  background: rgba(25, 25, 40, 0.3);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-base);
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: inherit;
}

.nav-btn:hover {
  background: rgba(139, 92, 246, 0.2);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .share-buttons {
    gap: var(--space-2);
  }
  
  .share-btn {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
  }
  
  .explore-grid {
    grid-template-columns: 1fr;
  }
  
  .article-navigation {
    flex-direction: column;
    gap: var(--space-4);
  }

  /* 📱 MOBILE ARTICLE OPTIMIZATIONS */
  
  /* Article Header Mobile */
  .article-header-clean {
    padding: var(--space-6) var(--space-4);
    margin-bottom: var(--space-8);
  }
  
  .article-title {
    font-size: var(--text-2xl);
    line-height: 1.2;
    margin-bottom: var(--space-3);
  }
  
  .article-meta {
    flex-direction: column;
    gap: var(--space-2);
    align-items: center;
  }
  
  .article-description {
    font-size: var(--text-base);
    padding: 0 var(--space-2);
    line-height: 1.5;
  }
  
  /* Article Body Mobile */
  .article-body {
    max-width: 100%;
    padding: 0 var(--space-4);
    line-height: 1.7;
  }
  
  .article-body h1 {
    font-size: var(--text-2xl);
    margin-top: var(--space-6);
    margin-bottom: var(--space-4);
  }
  
  .article-body h2 {
    font-size: var(--text-xl);
    margin-top: var(--space-8);
    margin-bottom: var(--space-3);
  }
  
  .article-body h3 {
    font-size: var(--text-lg);
    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
  }
  
  .article-body h4 {
    font-size: var(--text-base);
    margin-top: var(--space-4);
    margin-bottom: var(--space-2);
  }
  
  .article-body p {
    font-size: var(--text-sm);
    margin-bottom: var(--space-4);
  }
  
  .article-body blockquote {
    padding: var(--space-3) var(--space-4);
    margin: var(--space-4) 0;
    font-size: var(--text-sm);
  }
  
  .article-body pre {
    padding: var(--space-3);
    margin: var(--space-4) 0;
    font-size: var(--text-xs);
    overflow-x: auto;
  }
  
  .article-body code {
    font-size: var(--text-xs);
    padding: 2px var(--space-1);
  }
  
  .article-body ul,
  .article-body ol {
    padding-left: var(--space-4);
    margin: var(--space-3) 0;
  }
  
  .article-body li {
    font-size: var(--text-sm);
    margin-bottom: var(--space-1);
  }
  
  .article-body table {
    font-size: var(--text-xs);
    margin: var(--space-4) 0;
  }
  
  .article-body th,
  .article-body td {
    padding: var(--space-2) var(--space-3);
  }
  
  /* Article Footer Mobile */
  .article-footer {
    margin-top: var(--space-12);
    padding: 0 var(--space-4);
    gap: var(--space-6);
  }
  
  .section-title {
    font-size: var(--text-xl);
  }
  
  .section-subtitle {
    font-size: var(--text-xs);
  }
  
  .share-buttons {
    gap: var(--space-3);
    justify-content: center;
  }
  
  .share-btn {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-xs);
    gap: var(--space-1);
    min-height: 44px; /* Touch-friendly height */
  }
  
  .share-text {
    display: inline; /* Show text on mobile for clarity */
  }
  
  .explore-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
  
  .explore-card {
    padding: var(--space-3);
    gap: var(--space-3);
  }
  
  .explore-icon {
    width: 40px;
    height: 40px;
    font-size: var(--text-lg);
  }
  
  .explore-content h4 {
    font-size: var(--text-sm);
  }
  
  .explore-content p {
    font-size: var(--text-xs);
  }
  
  .article-navigation {
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-4);
  }
  
  .nav-btn {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    justify-content: center;
    width: 100%;
  }
}

/* 📱 EXTRA SMALL MOBILE (phones in portrait) */
@media (max-width: 480px) {
  .article-header-clean {
    padding: var(--space-4) var(--space-3);
  }
  
  .article-title {
    font-size: var(--text-xl);
  }
  
  .article-description {
    font-size: var(--text-sm);
  }
  
  .article-body {
    padding: 0 var(--space-3);
  }
  
  .article-body h1 {
    font-size: var(--text-xl);
  }
  
  .article-body h2 {
    font-size: var(--text-lg);
  }
  
  .article-body h3 {
    font-size: var(--text-base);
  }
  
  .article-body p,
  .article-body li {
    font-size: var(--text-xs);
  }
  
  .article-footer {
    padding: 0 var(--space-3);
  }
  
  .share-buttons {
    flex-direction: column;
    gap: var(--space-2);
  }
  
  .share-btn {
    width: 100%;
    justify-content: center;
  }
  
  .explore-card {
    flex-direction: column;
    text-align: center;
    gap: var(--space-2);
  }
}

.article-title {
  font-size: var(--text-4xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}

.article-description {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.article-category,
.article-date {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.article-body {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}

.article-body p {
  margin-bottom: var(--space-6);
}

/* Enhanced Article Content Styling */
.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}

.article-body h1 {
  font-size: var(--text-4xl);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-6);
}

.article-body h2 {
  font-size: var(--text-3xl);
  color: var(--accent-purple);
  margin-top: var(--space-12);
}

.article-body h3 {
  font-size: var(--text-2xl);
  color: var(--accent-cyan);
}

.article-body h4 {
  font-size: var(--text-xl);
  color: var(--accent-pink);
}

.article-body hr {
  margin: var(--space-8) 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
  border: none;
}

.article-body blockquote {
  background: rgba(139, 92, 246, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-6) 0;
  border-left: 4px solid var(--accent-purple);
  font-style: italic;
}

.article-body code {
  background: rgba(25, 25, 40, 0.6);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-2);
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent-green);
}

.article-body pre {
  background: rgba(25, 25, 40, 0.8);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin: var(--space-6) 0;
  overflow-x: auto;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.article-body pre code {
  background: none;
  padding: 0;
  color: var(--text-primary);
}

.article-body ul,
.article-body ol {
  margin: var(--space-4) 0;
  padding-left: var(--space-6);
}

.article-body li {
  margin-bottom: var(--space-2);
  color: var(--text-secondary);
}

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

.article-body em {
  color: var(--accent-cyan);
  font-style: italic;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin: var(--space-6) 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.article-body table {
  width: 100%;
  background: rgba(25, 25, 40, 0.6);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  margin: var(--space-6) 0;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.article-body th,
.article-body td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
}

.article-body th {
  background: rgba(139, 92, 246, 0.2);
  color: var(--text-primary);
  font-weight: 600;
}

.article-body td {
  color: var(--text-secondary);
}

.article-body tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

/* Light mode article content */
[data-theme="light"] .article-body blockquote {
  background: rgba(139, 92, 246, 0.05);
}

[data-theme="light"] .article-body code {
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .article-body pre {
  background: rgba(0, 0, 0, 0.03);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .article-body table {
  background: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .article-body th {
  background: rgba(139, 92, 246, 0.1);
}

[data-theme="light"] .article-body tr:nth-child(even) td {
  background: rgba(0, 0, 0, 0.02);
}

/* 🎯 FORM ELEMENTS - FLOATING INPUTS */
input,
textarea,
select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: rgba(10, 10, 20, 0.4);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-family: inherit;
  font-size: var(--text-base);
  transition: all var(--transition-base);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

input:focus,
textarea:focus,
select:focus {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 30px rgba(139, 92, 246, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Light mode form elements */
[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(0, 0, 0, 0.05);
}

/* 🌊 FOOTER - FLOATING ISLANDS */
footer {
  padding: var(--space-16) 0 var(--space-8);
  margin-top: var(--space-20);
  position: relative;
  z-index: 10;
}

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

.footer-section {
  background: rgba(25, 25, 40, 0.4);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: float-slow 12s ease-in-out infinite;
}

.footer-section:nth-child(even) {
  animation-delay: -6s;
}

/* 📱 RESPONSIVE DESIGN */
@media (max-width: 768px) {
  :root {
    --mobile-header-height: 12rem; /* Approximate height for stacked mobile header */
  }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  header {
    top: var(--space-3); /* Less spacing on mobile */
    padding: var(--space-2) 0; /* Smaller padding on mobile */
  }
  
  .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-4);
    position: relative; /* For absolute positioned nav */
    min-height: 60px; /* Ensure consistent header height */
  }
  
  /* Show hamburger menu on mobile - positioned LEFT */
  .hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
    order: 1; /* First position - LEFT */
    flex-shrink: 0; /* Prevent shrinking */
  }
  
  .hamburger-btn span {
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  
  .logo {
    order: 2; /* Center position */
    flex: 1; /* Take available space */
    text-align: center; /* Center the text within the flex item */
    font-size: var(--text-xl); /* Slightly larger text */
    padding: 2px 8px; /* Compact grey background area */
    margin: 0 var(--space-3); /* Add margin for spacing from hamburger and theme toggle */
  }
  
  .nav-links {
    display: none; /* Hide nav links on mobile initially */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    margin: var(--space-2);
    flex-direction: column;
    padding: var(--space-4);
    gap: var(--space-2);
    z-index: 999;
  }
  
  .nav-links.show {
    display: flex; /* Show when hamburger is clicked */
  }
  
  .nav-links li {
    list-style: none;
  }
  
  .nav-links a {
    display: block;
    padding: var(--space-3);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
  }
  
  .nav-links a:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-purple);
  }
  
  .theme-toggle {
    order: 3; /* Right position */
    flex-shrink: 0; /* Prevent shrinking */
  }
  
  h1, .hero h1, .page-hero h1, .article-title {
    font-size: var(--text-3xl);
  }
  
  .hero, .page-hero {
    padding: calc(var(--header-height) + var(--space-4)) 0 var(--space-6); /* Normal header height + spacing */
    margin-top: 0; /* Reset any margin */
  }
  
  main {
    padding-top: calc(var(--header-height) + var(--space-4)); /* Normal header height + spacing */
  }

  .article-meta {
    flex-direction: column;
    align-items: center;
  }

  /* Mobile Search Stats Fix - Prevent Overflow */
  .search-stats {
    flex-direction: column;
    align-items: center; /* Center the stats horizontally */
    justify-content: center; /* Center the stats vertically */
    gap: var(--space-3); /* Increase gap slightly for better spacing */
    padding: var(--space-4);
    margin-top: var(--space-4);
    order: 2; /* Move search stats after suggestions on mobile */
    text-align: center; /* Ensure text is centered */
  }

  /* Mobile Search Suggestions Fix - Show immediately after search input */
  .search-suggestions {
    order: 1; /* Show suggestions first on mobile */
    margin-top: var(--space-3);
    margin-bottom: var(--space-4);
  }

  .search-container {
    display: flex;
    flex-direction: column;
  }

  .stat-item {
    margin: 0;
    text-align: center; /* Ensure each stat item is centered */
    width: 100%; /* Full width for better centering */
  }

  .stat-number {
    font-size: var(--text-lg);
  }

  .stat-label {
    font-size: var(--text-xs);
  }

  .stat-divider {
    display: none; /* Hide dividers on mobile */
  }

  /* Mobile Quick Search Tags */
  .quick-tags {
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-4);
    margin-top: var(--space-6);
  }

  .tag-label {
    font-size: var(--text-xs);
    margin-right: 0;
    margin-bottom: var(--space-2);
  }

  .search-tag {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
  }
}

/* 🎬 ENHANCED TRANSPARENT SCROLLBAR - SPACE THEME */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.3) transparent;
}

body::-webkit-scrollbar,
html::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

body::-webkit-scrollbar-track,
html::-webkit-scrollbar-track,
*::-webkit-scrollbar-track {
  background: transparent;
  border-radius: var(--radius-full);
}

body::-webkit-scrollbar-thumb,
html::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(99, 102, 241, 0.3));
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  background-clip: content-box;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

body::-webkit-scrollbar-thumb:hover,
html::-webkit-scrollbar-thumb:hover,
*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(99, 102, 241, 0.5));
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

body::-webkit-scrollbar-corner,
html::-webkit-scrollbar-corner,
*::-webkit-scrollbar-corner {
  background: transparent;
}

/* Firefox scrollbar styling */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.3) transparent;
}

/* � ENHANCED SELECT DROPDOWN STYLING - SPACE THEME */
.enhanced-select {
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.8), 
        rgba(30, 41, 59, 0.6),
        rgba(51, 65, 85, 0.4)
    );
    border: 1px solid;
    border-image: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.4), 
        rgba(99, 102, 241, 0.3),
        rgba(168, 85, 247, 0.2)
    ) 1;
    border-radius: var(--radius-xl);
    padding: var(--space-4) var(--space-6);
    padding-right: var(--space-16);
    color: rgba(226, 232, 240, 0.95);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 32px rgba(15, 23, 42, 0.4),
        0 4px 16px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(139, 92, 246, 0.8)' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right var(--space-4) center;
    background-size: 18px;
    min-width: 240px;
    position: relative;
    overflow: hidden;
}

.enhanced-select::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.1), 
        transparent,
        rgba(99, 102, 241, 0.05)
    );
    border-radius: var(--radius-xl);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.enhanced-select:hover {
    transform: translateY(-2px) scale(1.02);
    border-image: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.6), 
        rgba(99, 102, 241, 0.5),
        rgba(168, 85, 247, 0.4)
    ) 1;
    box-shadow: 
        0 16px 48px rgba(15, 23, 42, 0.5),
        0 8px 24px rgba(139, 92, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 0 1px rgba(139, 92, 246, 0.2);
    color: rgba(255, 255, 255, 1);
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.9), 
        rgba(30, 41, 59, 0.7),
        rgba(51, 65, 85, 0.5)
    );
}

.enhanced-select:hover::before {
    opacity: 1;
}

.enhanced-select:focus {
    outline: none;
    transform: translateY(-3px) scale(1.03);
    border-image: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.8), 
        rgba(99, 102, 241, 0.7),
        rgba(168, 85, 247, 0.6)
    ) 1;
    box-shadow: 
        0 20px 60px rgba(15, 23, 42, 0.6),
        0 12px 32px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 0 3px rgba(139, 92, 246, 0.2),
        0 0 20px rgba(139, 92, 246, 0.4);
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.95), 
        rgba(30, 41, 59, 0.8),
        rgba(51, 65, 85, 0.6)
    );
}

.enhanced-select:active {
    transform: translateY(-1px) scale(1.01);
}

/* Enhanced Select Options Styling - SEAMLESS SPACE THEME */
.enhanced-select option {
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.98), 
        rgba(30, 41, 59, 0.95)
    ) !important;
    color: rgba(226, 232, 240, 0.9) !important;
    padding: var(--space-3) var(--space-4) !important;
    border: none !important;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1) !important;
    font-weight: 400;
    line-height: 1.5;
    transition: all 0.2s ease;
    margin: 0 !important;
}

.enhanced-select option:hover {
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.2), 
        rgba(99, 102, 241, 0.15),
        rgba(168, 85, 247, 0.1)
    ) !important;
    color: rgba(255, 255, 255, 0.95) !important;
    border-left: 3px solid rgba(139, 92, 246, 0.6) !important;
    padding-left: calc(var(--space-4) + 3px) !important;
}

.enhanced-select option:checked,
.enhanced-select option:selected {
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.3), 
        rgba(99, 102, 241, 0.25),
        rgba(168, 85, 247, 0.2)
    ) !important;
    color: rgba(255, 255, 255, 1) !important;
    font-weight: 500;
    border-left: 3px solid rgba(139, 92, 246, 0.8) !important;
    padding-left: calc(var(--space-4) + 3px) !important;
}

.enhanced-select option:last-child {
    border-bottom: none !important;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg) !important;
}

.enhanced-select option:first-child {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
}

/* Enhanced dropdown focused state */
.enhanced-select.dropdown-focused {
    border-color: rgba(139, 92, 246, 0.4) !important;
    background: rgba(15, 23, 42, 0.7) !important;
    backdrop-filter: blur(25px) !important;
    box-shadow: 
        0 8px 32px rgba(139, 92, 246, 0.15),
        0 0 0 2px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

/* Custom dropdown animation */
@keyframes dropdown-open {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.enhanced-select.dropdown-focused option {
    animation: dropdown-open 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Cross-browser dropdown styling - CLEAN & SEAMLESS */
.enhanced-select {
    color: rgba(226, 232, 240, 0.95) !important;
}

.enhanced-select::-ms-expand {
    display: none;
}

/* Advanced Dropdown List Styling - SPACE THEME */
.enhanced-select:focus {
    outline: none;
}

/* Webkit dropdown list styling (Chrome/Safari) */
.enhanced-select::-webkit-select-dropdown {
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.95), 
        rgba(30, 41, 59, 0.9)
    ) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 8px 25px rgba(139, 92, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    padding: var(--space-2) 0 !important;
}

/* Firefox dropdown styling */
.enhanced-select[size],
.enhanced-select[multiple] {
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.95), 
        rgba(30, 41, 59, 0.9)
    ) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 8px 25px rgba(139, 92, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

/* Universal dropdown styling - Seamless integration */
.enhanced-select,
.enhanced-select:focus,
.enhanced-select:active {
    background: rgba(15, 23, 42, 0.4) !important;
    color: rgba(226, 232, 240, 0.95) !important;
    border: 1px solid rgba(139, 92, 246, 0.1) !important;
    box-shadow: none !important;
}

/* Simple, clean option styling */
.enhanced-select option {
    background: rgba(15, 23, 42, 0.95) !important;
    color: rgba(226, 232, 240, 0.9) !important;
    padding: var(--space-2) var(--space-4) !important;
    border: none !important;
}

.enhanced-select option:disabled {
    background: rgba(30, 41, 59, 0.5) !important;
    color: rgba(100, 116, 139, 0.7) !important;
}

/* 🎨 CUSTOM DROPDOWN COMPONENTS - SPACE THEME */
/* Debug custom dropdowns - ensure they're clickable */
.custom-dropdown {
    position: relative;
    width: 100%;
    min-width: 200px;
    pointer-events: auto !important;
    z-index: 100;
}

.custom-select {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-4);
    color: rgba(226, 232, 240, 0.95);
    font-size: var(--text-base);
    font-weight: 500;
    cursor: pointer !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    position: relative;
    pointer-events: auto !important;
    user-select: none;
    z-index: 101;
}

.custom-select:hover {
    border-color: rgba(139, 92, 246, 0.2);
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(22px);
    transform: translateY(-1px);
    box-shadow: 
        0 3px 15px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.custom-select.active {
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(25px);
    box-shadow: 
        0 4px 20px rgba(139, 92, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.dropdown-arrow {
    width: 14px;
    height: 14px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(139, 92, 246, 0.7);
}

.custom-select.active .dropdown-arrow {
    transform: rotate(180deg);
}

.custom-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.98), 
        rgba(30, 41, 59, 0.95)
    );
    backdrop-filter: blur(25px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-lg);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 8px 25px rgba(139, 92, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 1000 !important;
    margin-top: 4px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.custom-dropdown.active .custom-options {
    max-height: 300px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto !important;
    overflow-y: auto;
}

.custom-option {
    padding: var(--space-3) var(--space-4);
    color: rgba(226, 232, 240, 0.9);
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    position: relative;
    pointer-events: auto !important;
}

.custom-option:last-child {
    border-bottom: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.custom-option:first-child {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.custom-option:hover {
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.2), 
        rgba(99, 102, 241, 0.15),
        rgba(168, 85, 247, 0.1)
    ) !important;
    color: rgba(255, 255, 255, 0.95);
    border-left: 3px solid rgba(139, 92, 246, 0.6);
    padding-left: calc(var(--space-4) + 3px);
}

.custom-option.selected {
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.3), 
        rgba(99, 102, 241, 0.25),
        rgba(168, 85, 247, 0.2)
    );
    color: rgba(255, 255, 255, 1);
    font-weight: 500;
    border-left: 3px solid rgba(139, 92, 246, 0.8);
    padding-left: calc(var(--space-4) + 3px);
}

/* Custom Select Container for Better Dropdown Styling */
.select-container {
    position: relative;
    display: inline-block;
}

.select-container::after {
    content: '';
    position: absolute;
    top: 50%;
    right: var(--space-3);
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(139, 92, 246, 0.7);
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Ensure main content is clickable */
main {
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

/* Ensure filter controls are above everything */
.filter-controls {
    position: relative;
    z-index: 50;
    pointer-events: auto;
}

.select-container:hover::after {
    border-top-color: var(--purple-400);
}

/* �🎛️ ENHANCED SLIDER/RANGE INPUT STYLING */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(99, 102, 241, 0.2));
  border-radius: var(--radius-full);
  outline: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

input[type="range"]:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(99, 102, 241, 0.3));
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-indigo));
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  box-shadow: 
    0 4px 12px rgba(139, 92, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 
    0 6px 20px rgba(139, 92, 246, 0.5),
    0 0 25px rgba(139, 92, 246, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-indigo));
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  box-shadow: 
    0 4px 12px rgba(139, 92, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 
    0 6px 20px rgba(139, 92, 246, 0.5),
    0 0 25px rgba(139, 92, 246, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 🎨 ENHANCED FORM ELEMENTS - SPACE THEME */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(99, 102, 241, 0.08));
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  color: var(--text-primary);
  font-size: var(--text-base);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  width: 100%;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.5);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(99, 102, 241, 0.12));
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.15),
    0 0 20px rgba(139, 92, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="search"]::placeholder,
textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

/* Enhanced Button Styling */
button,
.btn {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(99, 102, 241, 0.15));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-6);
  color: var(--text-primary);
  font-size: var(--text-base);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

button:hover,
.btn:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(99, 102, 241, 0.25));
  border-color: rgba(139, 92, 246, 0.5);
  transform: translateY(-2px);
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.15),
    0 0 20px rgba(139, 92, 246, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

button:active,
.btn:active {
  transform: translateY(0);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Light mode form elements */
[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="email"],
[data-theme="light"] input[type="password"],
[data-theme="light"] input[type="search"],
[data-theme="light"] textarea,
[data-theme="light"] select {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(248, 250, 252, 0.9));
  border-color: rgba(139, 92, 246, 0.2);
  color: var(--text-primary);
}

[data-theme="light"] button,
[data-theme="light"] .btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(248, 250, 252, 0.9));
  border-color: rgba(139, 92, 246, 0.3);
  color: var(--text-primary);
}

/* 🎛️ ENHANCED FILTER CONTROLS */
.filter-controls {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: var(--space-4) 0;
    margin-bottom: var(--space-8);
    box-shadow: none;
    transition: none;
    position: relative;
    overflow: visible;
}

.filter-controls::before {
    display: none;
}

/* 🔍 ENHANCED SEARCH PAGE STYLES */
.search-section {
    padding: var(--space-16) 0;
    background: transparent;
    position: relative;
    overflow: hidden;
    z-index: 10; /* Ensure search section is above background elements */
}

.search-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;
    z-index: 1;
}

.search-container {
    position: relative;
    z-index: 100; /* Ensure search container is above background elements */
    max-width: 800px;
    margin: 0 auto;
}

.search-box-wrapper {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(10, 10, 26, 0.8), 
        rgba(25, 25, 40, 0.7)
    );
    backdrop-filter: blur(25px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-xl);
    padding: var(--space-3);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10; /* Ensure it's above background elements */
}

.search-box-wrapper:focus-within {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.search-icon {
    width: 24px;
    height: 24px;
    color: rgba(139, 92, 246, 0.7);
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.search-box-wrapper:focus-within .search-icon {
    color: rgba(139, 92, 246, 0.9);
}

.enhanced-search-input {
    flex: 1;
    background: none !important;
    border: none !important;
    outline: none !important;
    color: rgba(226, 232, 240, 0.95) !important;
    font-size: var(--text-lg) !important;
    font-weight: 500 !important;
    padding: var(--space-4) 0 !important;
    box-shadow: none !important;
    transform: none !important;
}

.enhanced-search-input::placeholder {
    color: rgba(226, 232, 240, 0.5) !important;
    font-weight: 400 !important;
}

.search-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-shrink: 0;
}

.clear-btn {
    background: none !important;
    border: none !important;
    padding: var(--space-2) !important;
    color: rgba(226, 232, 240, 0.5) !important;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
    transform: none !important;
}

.clear-btn:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    color: rgba(239, 68, 68, 0.8) !important;
    transform: none !important;
    box-shadow: none !important;
}

.clear-btn svg {
    width: 16px;
    height: 16px;
}

.search-btn {
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.8), 
        rgba(99, 102, 241, 0.7)
    ) !important;
    border: 1px solid rgba(139, 92, 246, 0.4) !important;
    color: rgba(255, 255, 255, 0.95) !important;
    padding: var(--space-3) var(--space-6) !important;
    border-radius: var(--radius-lg) !important;
    font-weight: 600 !important;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 
        0 4px 15px rgba(139, 92, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    transform: none !important;
}

.search-btn:hover {
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.9), 
        rgba(99, 102, 241, 0.8)
    ) !important;
    box-shadow: 
        0 8px 25px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-1px) !important;
}

.btn-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent
    );
    transition: left 0.5s ease;
}

.search-btn:hover .btn-shimmer {
    left: 100%;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + var(--space-3));
    left: 0;
    right: 0;
    background: linear-gradient(135deg, 
        rgba(10, 15, 30, 0.99), 
        rgba(20, 25, 40, 0.98)
    );
    backdrop-filter: blur(30px);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: var(--radius-xl);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.6),
        0 12px 30px rgba(139, 92, 246, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(139, 92, 246, 0.2);
    z-index: 9999 !important; /* Ensure it's above all background elements */
    max-height: 400px;
    overflow: hidden;
    display: none;
    animation: fadeInUp 0.3s ease;
    /* Additional isolation properties */
    isolation: isolate;
    transform: translateZ(0); /* Create new stacking context */
}

.search-suggestions.show {
    display: block;
    /* Add a backdrop to further isolate from background */
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.6),
        0 12px 30px rgba(139, 92, 246, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(139, 92, 246, 0.2); /* Extra border for definition */
    animation: fadeInUp 0.3s ease;
}

.search-suggestions.hide {
    animation: fadeOutDown 0.2s ease forwards;
}

@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
        display: none;
    }
}

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

.suggestions-header {
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.suggestions-title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: rgba(139, 92, 246, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.suggestions-icon {
    font-size: var(--text-base);
}

.suggestions-list {
    max-height: 320px;
    overflow-y: auto;
}

.suggestion-item {
    padding: var(--space-3) var(--space-6);
    color: rgba(226, 232, 240, 0.9);
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.suggestion-item:hover {
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.15), 
        rgba(99, 102, 241, 0.12)
    );
    color: rgba(255, 255, 255, 0.95);
    padding-left: calc(var(--space-6) + var(--space-2));
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-content {
    flex: 1;
}

.suggestion-title {
    font-weight: 600;
    color: rgba(226, 232, 240, 0.95);
    margin-bottom: var(--space-1);
    line-height: 1.3;
}

.suggestion-meta {
    font-size: var(--text-sm);
    color: rgba(226, 232, 240, 0.6);
}

.suggestion-icon {
    font-size: var(--text-base);
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.suggestion-score {
    width: 40px;
    height: 4px;
    background: rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-full);
    position: relative;
    flex-shrink: 0;
}

.score-indicator {
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(139, 92, 246, 0.6), 
        rgba(139, 92, 246, 0.9)
    );
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

.no-results {
    border: none !important;
}

/* Enhanced search input focus states */
.search-box-wrapper:focus-within .search-icon {
    animation: searchPulse 2s ease-in-out infinite;
}

@keyframes searchPulse {
    0%, 100% { 
        transform: scale(1);
        color: rgba(139, 92, 246, 0.7);
    }
    50% { 
        transform: scale(1.05);
        color: rgba(139, 92, 246, 1);
    }
}

.search-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-8);
    padding: var(--space-6);
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.4), 
        rgba(30, 41, 59, 0.3)
    );
    backdrop-filter: blur(15px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-lg);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: var(--text-xl);
    font-weight: 700;
    color: rgba(139, 92, 246, 0.9);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: var(--text-sm);
    color: rgba(226, 232, 240, 0.6);
    margin-top: var(--space-1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(139, 92, 246, 0.3);
}

/* 🔍 QUICK SEARCH TAGS - ENHANCED SPACE THEME */
.quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: center;
    justify-content: center;
    margin-top: var(--space-8);
    padding: var(--space-6);
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.3), 
        rgba(30, 41, 59, 0.2)
    );
    backdrop-filter: blur(12px);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: var(--radius-xl);
}

.tag-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: rgba(139, 92, 246, 0.8);
    margin-right: var(--space-2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.search-tag {
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.1), 
        rgba(99, 102, 241, 0.05)
    );
    backdrop-filter: blur(8px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-full);
    padding: var(--space-2) var(--space-4);
    color: rgba(226, 232, 240, 0.9);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.search-tag:hover {
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.2), 
        rgba(99, 102, 241, 0.15)
    );
    border-color: rgba(139, 92, 246, 0.4);
    color: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
    box-shadow: 
        0 4px 15px rgba(139, 92, 246, 0.2),
        0 0 20px rgba(139, 92, 246, 0.1);
}

.search-tag:active {
    transform: translateY(0);
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.3), 
        rgba(99, 102, 241, 0.2)
    );
}

/* Hero Subtitle Enhancements */
.hero-subtitle-enhanced {
    text-align: center;
    margin-top: var(--space-6);
}

.main-subtitle {
    font-size: var(--text-xl);
    color: rgba(226, 232, 240, 0.8);
    margin-bottom: var(--space-4);
    line-height: 1.6;
}

.highlight-number {
    color: rgba(139, 92, 246, 0.9);
    font-weight: 700;
    text-shadow: 0 0 5px rgba(139, 92, 246, 0.1);
}

.ai-feature-banner {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.1), 
        rgba(99, 102, 241, 0.08)
    );
    backdrop-filter: blur(15px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-full);
    padding: var(--space-3) var(--space-6);
    position: relative;
    overflow: hidden;
}

.ai-icon {
    font-size: var(--text-lg);
    animation: aiPulse 2s ease-in-out infinite;
}

@keyframes aiPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.ai-text {
    color: rgba(139, 92, 246, 0.9);
    font-weight: 600;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ai-pulse {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(139, 92, 246, 0.1), 
        transparent
    );
    animation: aiShimmer 3s ease-in-out infinite;
}

@keyframes aiShimmer {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
    100% { transform: translateX(100%); }
}

.filter-controls:hover {
    transform: none;
    border: none;
    box-shadow: none;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.filter-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: rgba(226, 232, 240, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.025em;
}

.filter-label {
  font-weight: 600;
  color: var(--text-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-2);
}

.form-input,
.enhanced-select {
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(139, 92, 246, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  color: rgba(226, 232, 240, 0.95);
  font-size: var(--text-base);
  font-weight: 500;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  cursor: pointer;
  appearance: none;
  position: relative;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="%23e2e8f0"><path d="M4.427 9.573l3.146-3.147a.25.25 0 01.354 0l3.146 3.147a.25.25 0 01-.177.427H4.604a.25.25 0 01-.177-.427z"/></svg>');
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  background-size: 14px;
  padding-right: var(--space-10);
}

.form-input:focus,
.enhanced-select:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.3);
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(25px);
  box-shadow: 
    0 4px 20px rgba(139, 92, 246, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.form-input:hover,
.enhanced-select:hover {
  border-color: rgba(139, 92, 246, 0.2);
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(22px);
  transform: translateY(-1px);
  box-shadow: 
    0 3px 15px rgba(139, 92, 246, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Light mode filter controls */
[data-theme="light"] .filter-controls {
  background: transparent;
  border: none;
  box-shadow: none;
}

[data-theme="light"] .form-input,
[data-theme="light"] .enhanced-select {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(248, 250, 252, 0.9));
  border-color: rgba(139, 92, 246, 0.2);
  color: var(--text-primary);
}

/* Results count and status */
.results-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  padding: var(--space-4) var(--space-6);
  background: rgba(139, 92, 246, 0.05);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(139, 92, 246, 0.1);
  backdrop-filter: blur(10px);
}

.results-count {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

.results-count .highlight {
  color: var(--accent-purple);
  font-weight: 700;
}

/* Mobile filter controls */
@media (max-width: 768px) {
  .filter-controls {
    padding: var(--space-4) 0;
  }
  
  .filter-controls .flex.flex-wrap {
    flex-direction: column !important; /* Keep stacked vertically */
    gap: var(--space-4) !important;
  }
  
  .filter-group {
    min-width: auto;
  }

  /* Mobile Dropdown Fixes */
  .custom-dropdown {
    width: 100%;
    margin-bottom: var(--space-2);
  }

  .custom-select {
    width: 100%;
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
  }

  .custom-options {
    left: 0;
    right: 0;
    width: 100%;
    font-size: var(--text-sm);
    /* DO NOT override max-height here - it breaks the hiding mechanism */
  }

  /* Only modify max-height when dropdown is ACTIVE on mobile */
  .custom-dropdown.active .custom-options {
    max-height: 160px; /* Reduced height for mobile when open */
  }

  .custom-option {
    padding: var(--space-2) var(--space-3);
  }

  /* Fix z-index layering - set on dropdown containers to establish stacking context */
  .filter-group:first-child .custom-dropdown {
    z-index: 200 !important; /* First dropdown container higher */
  }

  .filter-group:nth-child(2) .custom-dropdown {
    z-index: 150 !important; /* Second dropdown container lower */
  }

  /* Also set on options for extra certainty */
  .filter-group:first-child .custom-dropdown.active .custom-options {
    z-index: 1200 !important;
  }

  .filter-group:nth-child(2) .custom-dropdown.active .custom-options {
    z-index: 1000 !important;
  }

  /* Also set z-index for non-active state to establish hierarchy */
  .filter-group:first-child .custom-options {
    z-index: 1150 !important;
  }

  .filter-group:nth-child(2) .custom-options {
    z-index: 950 !important;
  }
}

/* Very small screens - keep same behavior */
@media (max-width: 480px) {
  .filter-controls .flex.flex-wrap {
    flex-direction: column !important;
    gap: var(--space-4) !important;
  }
  
  .filter-group {
    flex: none;
  }
}

/* 🌟 UTILITY CLASSES */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-xl { font-size: var(--text-xl); }
.text-secondary { color: var(--text-secondary); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.flex-wrap { flex-wrap: wrap; }

.p-6 { padding: var(--space-6); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.rounded-xl { border-radius: var(--radius-xl); }

.animate-fade-in { 
  animation: animate-fade-in 0.8s ease-out;
}

/* ⬆️ ENHANCED FLOATING SPACE-THEMED BACK TO TOP BUTTON */
.back-to-top {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(99, 102, 241, 0.15));
  backdrop-filter: blur(16px);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 999;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  cursor: pointer;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.2),
    0 0 20px rgba(139, 92, 246, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: float-slow 8s ease-in-out infinite;
}

.back-to-top .up-arrow {
  font-size: 24px;
  font-weight: bold;
  color: rgba(139, 92, 246, 0.8);
  transition: all 0.3s ease;
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top.scrolling {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.25),
    0 0 25px rgba(139, 92, 246, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.back-to-top:hover {
  transform: translateY(-4px) scale(1.05);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(99, 102, 241, 0.25));
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(139, 92, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.back-to-top:hover .up-arrow {
  color: rgba(139, 92, 246, 1);
  transform: translateY(-2px);
  text-shadow: 
    0 0 15px rgba(139, 92, 246, 0.6),
    0 0 25px rgba(139, 92, 246, 0.4);
}

.back-to-top:active {
  transform: translateY(-2px) scale(0.98);
}

/* Light mode back to top button */
[data-theme="light"] .back-to-top {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(248, 250, 252, 0.9));
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 0 20px rgba(139, 92, 246, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .back-to-top .up-arrow {
  color: rgba(139, 92, 246, 0.8);
}

[data-theme="light"] .back-to-top:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 1));
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.15),
    0 0 30px rgba(139, 92, 246, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

[data-theme="light"] .back-to-top:hover .up-arrow {
  color: rgba(139, 92, 246, 1);
}

/* 🌟 ENHANCED SCIENTIFACT OF THE DAY SECTION */
.featured-section {
  padding: var(--space-20) 0;
  position: relative;
  /* Removed conflicting background - uses the same floating space background as rest of site */
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
  position: relative;
  z-index: 10;
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(168, 85, 247, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  margin-bottom: var(--space-6);
  backdrop-filter: blur(10px);
}

.badge-icon {
  font-size: 1.2rem;
  animation: sparkle 2s ease-in-out infinite;
}

.badge-text {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: 800;
  margin-bottom: var(--space-4);
  line-height: 1.2;
}

.highlight-text {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease-in-out infinite;
}

.rotating-words {
  position: relative;
  display: inline-block;
  height: 1.2em;
  overflow: hidden;
}

.rotating-words .word {
  position: absolute;
  opacity: 0;
  transform: translateY(100%);
  animation: word-rotate 6s infinite;
  color: var(--text-primary);
}

.rotating-words .word.active {
  opacity: 1;
  transform: translateY(0);
}

.rotating-words .word:nth-child(2) {
  animation-delay: 2s;
}

.rotating-words .word:nth-child(3) {
  animation-delay: 4s;
}

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

.featured-card-container {
  max-width: 900px;
  margin: 0 auto var(--space-16);
  position: relative;
  z-index: 10;
}

.featured-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: all var(--transition-base);
  backdrop-filter: blur(20px);
}

.featured-card:hover {
  transform: translateY(-8px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.1),
    0 0 40px rgba(59, 130, 246, 0.1);
}

.card-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
}

.floating-particle {
  position: absolute;
  font-size: 1rem;
  opacity: 0.15;
  animation: float 6s ease-in-out infinite;
  z-index: 0;
}

.particle-1 {
  top: 5%;
  left: 5%;
  animation-delay: 0s;
}

.particle-2 {
  top: 8%;
  right: 5%;
  animation-delay: 1.5s;
}

.particle-3 {
  bottom: 8%;
  left: 5%;
  animation-delay: 3s;
}

.particle-4 {
  bottom: 5%;
  right: 5%;
  animation-delay: 4.5s;
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: var(--space-8);
  position: relative;
  z-index: 10;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.category-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.date {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.editor-pick {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--accent-purple);
  font-size: var(--text-sm);
  font-weight: 600;
}

.star-icon {
  animation: pulse-star 2s ease-in-out infinite;
}

.card-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.title-decoration {
  font-size: 1.5rem;
  opacity: 0.8;
  animation: wave 2s ease-in-out infinite;
}

.card-description {
  color: var(--text-secondary);
  font-size: var(--text-lg);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.card-stats {
  display: flex;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.stat-icon {
  font-size: 1.1rem;
}

.stat-text {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
}

.card-footer {
  position: relative;
}

.cta-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(168, 85, 247, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-6);
  transition: all var(--transition-base);
}

.featured-card:hover .cta-button {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(168, 85, 247, 0.2));
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

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

.cta-arrow {
  font-size: 1.2rem;
  color: var(--accent-purple);
  transition: transform var(--transition-base);
}

.featured-card:hover .cta-arrow {
  transform: translateX(5px);
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(168, 85, 247, 0.05));
  border-radius: var(--radius-xl);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.featured-card:hover .card-glow {
  opacity: 1;
}

.daily-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
  max-width: 700px;
  margin: 0 auto;
}

.stat-card {
  text-align: center;
  padding: var(--space-6);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
  transition: all var(--transition-base);
}

.stat-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(59, 130, 246, 0.2);
}

.stat-number {
  font-size: var(--text-4xl);
  font-weight: 800;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Animations */
@keyframes sparkle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.2) rotate(180deg); }
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes word-rotate {
  0%, 20% { opacity: 1; transform: translateY(0); }
  25%, 95% { opacity: 0; transform: translateY(-100%); }
  100% { opacity: 0; transform: translateY(100%); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-10px) rotate(5deg); }
  66% { transform: translateY(5px) rotate(-3deg); }
}

@keyframes pulse-star {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(15deg); }
  75% { transform: rotate(-10deg); }
}

@keyframes animate-fade-in {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes animate-slide-up {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: animate-fade-in 1s ease-out forwards;
}

.animate-slide-up {
  animation: animate-slide-up 1s ease-out 0.3s forwards;
  opacity: 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .section-title {
    font-size: var(--text-3xl);
  }
  
  .card-title {
    font-size: var(--text-2xl);
  }
  
  .card-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .card-stats {
    justify-content: center;
  }
  
  .daily-stats {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  
  .floating-particle {
    font-size: 1rem;
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .back-to-top {
    bottom: var(--space-6);
    right: var(--space-6);
    width: 55px;
    height: 55px;
  }
  
  .back-to-top .up-arrow {
    font-size: 30px;
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* 🏷️ ENHANCED BADGE STYLING */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.badge-default {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(99, 102, 241, 0.15));
    color: var(--purple-300);
    border-color: rgba(139, 92, 246, 0.2);
}

.badge-purple {
    background: linear-gradient(135deg, var(--purple-500), var(--indigo-500));
    color: var(--white);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.badge-purple:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* 🔘 ENHANCED BUTTON STYLING */
.btn-secondary {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(99, 102, 241, 0.15));
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--purple-300);
    transition: all 0.3s ease;
    border-radius: var(--radius-md);
    padding: var(--space-2) var(--space-4);
    cursor: pointer;
    font-weight: 600;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(99, 102, 241, 0.25));
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-1px);
}

.btn-sm {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
}

/* 📱 RESPONSIVE FILTER ENHANCEMENTS */
@media (max-width: 768px) {
    .filter-controls .flex.flex-wrap {
        flex-direction: column !important; /* Keep stacked vertically */
        gap: var(--space-4) !important;
    }
    
    .enhanced-select {
        min-width: 100%;
    }
    
    .results-status {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }
}

/* End of CSS - Clean and Organized */
