/* Modern UI/UX Overhaul - PodChats.io */

/* ===== CSS Variables ===== */
:root {
  /* Modern Color Palette */
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --dark-gradient: linear-gradient(135deg, #1f1c2c 0%, #928dab 100%);
  
  /* Base Colors */
  --primary: #667eea;
  --primary-light: #818cf8;
  --primary-dark: #5b21b6;
  --secondary: #f093fb;
  --accent: #4facfe;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  
  /* Neutral Colors */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --black: #000000;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Poppins', var(--font-primary);
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  --backdrop-blur: blur(10px);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  
  /* Z-Index */
  --z-base: 0;
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --primary: #818cf8;
  --primary-light: #a5b4fc;
  --primary-dark: #6366f1;
  --secondary: #f5576c;
  --accent: #00f2fe;
  
  /* Dark mode specific */
  --background: #0f0f0f;
  --surface: #1a1a1a;
  --surface-hover: #242424;
  --text-primary: #e5e7eb;
  --text-secondary: #d1d5db;
  --text-tertiary: #9ca3af;
  --border: rgba(255, 255, 255, 0.15);
  
  /* Glassmorphism dark */
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

/* Light Mode Variables */
[data-theme="light"] {
  --background: #f9fafb;
  --surface: #ffffff;
  --surface-hover: #f3f4f6;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-tertiary: #6b7280;
  --border: rgba(0, 0, 0, 0.1);
}

/* ===== Global Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--background);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color var(--transition-base), color var(--transition-base);
}

/* Ensure all elements inherit text color in dark mode */
[data-theme="dark"] * {
  color: inherit;
}

/* Explicit color for common elements in dark mode */
[data-theme="dark"] p,
[data-theme="dark"] span,
[data-theme="dark"] div,
[data-theme="dark"] li,
[data-theme="dark"] label {
  color: var(--text-primary);
}

/* Modern Background Pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, var(--primary) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, var(--secondary) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, var(--accent) 0%, transparent 50%);
  opacity: 0.03;
  z-index: -1;
  pointer-events: none;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

h1 { 
  font-size: clamp(2.5rem, 5vw, 4rem); 
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
}

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

a:hover {
  color: var(--primary-light);
}

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  backdrop-filter: var(--backdrop-blur);
  background: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
  transition: all var(--transition-base);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.logo-icon {
  width: 2rem;
  height: 2rem;
  background: var(--primary-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
}

/* Navigation */
.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
  align-items: center;
}

.nav-link {
  color: var(--text-primary);
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: all var(--transition-base);
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

.nav-link:hover {
  color: var(--primary);
  background: rgba(102, 126, 234, 0.1);
}

.nav-link-primary {
  background: var(--primary);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 600;
}

.nav-link-primary:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.nav-link-primary i {
  margin-right: var(--space-xs);
}

/* Theme Toggle */
.theme-toggle {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
}

.theme-toggle:hover {
  background: var(--primary);
  color: white;
  transform: rotate(180deg);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-base);
}

/* ===== Hero Section ===== */
.hero {
  padding-top: calc(80px + var(--space-3xl));
  padding-bottom: var(--space-3xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
  font-size: 0.875rem;
  color: var(--primary);
  backdrop-filter: var(--backdrop-blur);
  animation: fadeInDown 0.6s ease;
}

.hero-title {
  margin-bottom: var(--space-md);
  animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.9s ease 0.1s both;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.2s both;
}

/* Animated Background Shapes */
.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  animation: float 20s infinite ease-in-out;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: var(--primary-gradient);
  top: -200px;
  left: -200px;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: var(--secondary-gradient);
  bottom: -150px;
  right: -150px;
  animation-delay: -5s;
}

.shape-3 {
  width: 500px;
  height: 500px;
  background: var(--accent-gradient);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -10s;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  color: var(--text-primary);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left var(--transition-base);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

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

.btn-secondary:hover {
  background: var(--surface);
  transform: translateY(-2px);
}

.btn-icon {
  padding: var(--space-sm);
  width: 3rem;
  height: 3rem;
  color: var(--text-primary);
}

/* ===== Features Section ===== */
.features {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-3xl);
}

.section-title {
  margin-bottom: var(--space-md);
}

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

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

.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
  backdrop-filter: var(--backdrop-blur);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 4rem;
  height: 4rem;
  margin-bottom: var(--space-md);
  background: var(--primary-gradient);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  flex-shrink: 0;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.9375rem;
}

/* ===== Chat Interface ===== */
.chat-section {
  padding: var(--space-3xl) 0;
  background: var(--surface);
  border-radius: var(--radius-xl);
  margin: var(--space-xl) 0;
}

.chat-container {
  max-width: 900px;
  margin: 0 auto;
}

.host-selector {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
}

.host-option {
  background: var(--glass-bg);
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-sm) var(--space-md);
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-primary);
}

.host-option:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.host-option.active {
  background: var(--primary-gradient);
  color: white;
  border-color: transparent;
}

.host-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  background: var(--secondary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
}

/* Chat Messages Area */
.chat-messages {
  background: var(--background);
  border-radius: var(--radius-xl);
  height: 500px;
  overflow-y: auto;
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  position: relative;
}

/* Custom Scrollbar */
.chat-messages::-webkit-scrollbar {
  width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
  background: var(--glass-bg);
  border-radius: var(--radius-full);
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--primary-gradient);
  border-radius: var(--radius-full);
}

/* Message Bubbles */
.message {
  display: flex;
  gap: var(--space-sm);
  animation: messageSlide 0.3s ease;
}

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

.message.user {
  flex-direction: row-reverse;
}

.message-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  background: var(--secondary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.message.assistant .message-avatar {
  background: var(--primary-gradient);
}

.message-content {
  max-width: 70%;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.message-bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-sm) var(--space-md);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.message.user .message-bubble {
  background: var(--primary-gradient);
  color: white;
  border: none;
}

.message-text {
  line-height: 1.5;
}

.message.user .message-text {
  color: white;
}

.message-time {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  opacity: 0.7;
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: var(--space-sm);
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: var(--radius-full);
  animation: typingPulse 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingPulse {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Source References */
.source-references {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.source-link {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.875rem;
  color: var(--primary);
  text-decoration: none;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.source-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* Chat Input */
.chat-input-container {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-sm);
  backdrop-filter: var(--backdrop-blur);
  display: flex;
  gap: var(--space-sm);
  align-items: flex-end;
}

.chat-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-sm) var(--space-md);
  font-size: 1rem;
  font-family: var(--font-primary);
  color: var(--text-primary);
  resize: none;
  min-height: 50px;
  max-height: 150px;
  transition: all var(--transition-fast);
}

/* Ensure all inputs have proper colors */
input, textarea, select {
  color: var(--text-primary);
  background: var(--surface);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-tertiary);
  opacity: 1;
}

.chat-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.chat-actions {
  display: flex;
  gap: var(--space-xs);
}

/* ===== Podcast Library ===== */
.podcast-library {
  padding: var(--space-3xl) 0;
}

.category-filters {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  justify-content: center;
  flex-wrap: wrap;
}

.category-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-weight: 500;
  color: var(--text-primary);
}

.category-btn:hover {
  background: var(--surface);
  border-color: var(--primary);
}

.category-btn.active {
  background: var(--primary-gradient);
  color: white;
  border-color: transparent;
}

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

.podcast-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.podcast-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.podcast-cover {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--primary-gradient);
  flex-shrink: 0;
}

.podcast-info {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.podcast-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.podcast-meta {
  color: var(--text-secondary);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.podcast-description {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  flex: 1;
}

/* ===== Audio Player ===== */
.audio-player-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  padding: var(--space-md);
  z-index: var(--z-fixed);
  transform: translateY(100%);
  transition: transform var(--transition-base);
}

.audio-player-fixed.visible {
  transform: translateY(0);
}

.audio-player-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.audio-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.audio-cover {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  background: var(--primary-gradient);
}

.audio-details {
  flex: 1;
}

.audio-title {
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--text-primary);
}

.audio-artist {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.audio-progress {
  flex: 1;
  height: 6px;
  background: var(--glass-border);
  border-radius: var(--radius-full);
  position: relative;
  cursor: pointer;
}

.audio-progress-bar {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: var(--radius-full);
  width: 0;
  transition: width var(--transition-fast);
}

.audio-time {
  font-size: 0.875rem;
  color: var(--text-secondary);
  min-width: 80px;
  text-align: center;
}

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

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

.footer-section h4 {
  margin-bottom: var(--space-md);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-link {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

/* ===== Loading States ===== */
.skeleton {
  background: var(--glass-bg);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.skeleton::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  to {
    left: 100%;
  }
}

.skeleton-text {
  height: 1rem;
  margin-bottom: var(--space-xs);
}

.skeleton-title {
  height: 2rem;
  width: 60%;
  margin-bottom: var(--space-sm);
}

.skeleton-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-full);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  /* Mobile Navigation */
  .nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: var(--space-md);
    gap: var(--space-sm);
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    transition: transform var(--transition-base);
    box-shadow: var(--shadow-lg);
  }
  
  .nav-menu.active {
    transform: translateY(0);
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  /* Mobile Hero */
  .hero {
    padding-top: calc(60px + var(--space-xl));
    padding-bottom: var(--space-xl);
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  
  /* Mobile Chat */
  .chat-messages {
    height: 400px;
  }
  
  .message-content {
    max-width: 85%;
  }
  
  .host-selector {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
  
  /* Mobile Features */
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  /* Mobile Podcast Grid */
  .podcast-grid {
    grid-template-columns: 1fr;
  }
  
  /* Mobile Audio Player */
  .audio-player-content {
    flex-wrap: wrap;
  }
  
  .audio-controls {
    width: 100%;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .container {
    padding: 0 var(--space-sm);
  }
  
  .section-header {
    margin-bottom: var(--space-xl);
  }
  
  .chat-input-container {
    padding: var(--space-xs);
  }
  
  .chat-input {
    font-size: 16px; /* Prevent zoom on iOS */
  }
}

/* ===== Print Styles ===== */
@media print {
  .site-header,
  .theme-toggle,
  .chat-input-container,
  .audio-player-fixed,
  .mobile-menu-toggle {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .hero-shapes {
    display: none;
  }
}

/* ===== Dark Mode Color Fixes ===== */
[data-theme="dark"] {
  color: var(--text-primary);
}

[data-theme="dark"] .feature-card,
[data-theme="dark"] .podcast-card,
[data-theme="dark"] .host-option,
[data-theme="dark"] .category-btn,
[data-theme="dark"] .btn,
[data-theme="dark"] .suggestion-chip,
[data-theme="dark"] .example-chip {
  color: var(--text-primary);
}

[data-theme="dark"] .feature-card *,
[data-theme="dark"] .podcast-card *,
[data-theme="dark"] .host-option * {
  color: inherit;
}

/* Ensure active states maintain proper colors */
[data-theme="dark"] .host-option.active,
[data-theme="dark"] .category-btn.active {
  color: white;
}

[data-theme="dark"] .btn-primary,
[data-theme="dark"] .btn-primary * {
  color: white;
}