/**
 * Dream Divination - Design System
 * 神秘的で女性向け、柔らかく安心感のあるデザイン
 */

/* ====================================
   1. CSS Variables - カラーパレット
   ==================================== */
:root {
  /* Primary Colors - 神秘的なパープル系 */
  --primary-50: #faf7ff;
  --primary-100: #f3edff;
  --primary-200: #e9ddff;
  --primary-300: #d4bfff;
  --primary-400: #b794f6;
  --primary-500: #9f67eb;
  --primary-600: #8b47dd;
  --primary-700: #7635c3;
  --primary-800: #6429a0;
  --primary-900: #522383;

  /* Secondary Colors - 柔らかいローズ系 */
  --secondary-50: #fff5f7;
  --secondary-100: #ffe8ed;
  --secondary-200: #ffd6df;
  --secondary-300: #ffb3c4;
  --secondary-400: #ff87a3;
  --secondary-500: #f75d87;
  --secondary-600: #e63f6d;
  --secondary-700: #c32858;
  --secondary-800: #a3254c;
  --secondary-900: #882344;

  /* Accent Colors - 神秘的なティール系 */
  --accent-50: #f0fdfc;
  --accent-100: #ccfbf7;
  --accent-200: #99f6ef;
  --accent-300: #5eead4;
  --accent-400: #2dd4bf;
  --accent-500: #14b8a6;
  --accent-600: #0d9488;
  --accent-700: #0f766e;
  --accent-800: #115e59;
  --accent-900: #134e4a;

  /* Neutral Colors - 温かみのあるグレー */
  --neutral-50: #fdfcfb;
  --neutral-100: #f9f7f5;
  --neutral-200: #f0ece8;
  --neutral-300: #e4ddd6;
  --neutral-400: #c8bdb2;
  --neutral-500: #a99d91;
  --neutral-600: #857769;
  --neutral-700: #6b5f53;
  --neutral-800: #4a4139;
  --neutral-900: #2d2621;

  /* Semantic Colors */
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;

  /* Background Colors */
  --bg-primary: linear-gradient(180deg, #fdfbff 0%, #f8f4fc 100%);
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  --bg-hero-overlay: linear-gradient(180deg, rgba(103, 58, 183, 0.85) 0%, rgba(156, 39, 176, 0.75) 100%);
  --bg-mystical: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);

  /* Text Colors */
  --text-primary: #2d2621;
  --text-secondary: #6b5f53;
  --text-muted: #a99d91;
  --text-inverse: #ffffff;

  /* Border & Shadow */
  --border-light: rgba(0, 0, 0, 0.06);
  --border-medium: rgba(0, 0, 0, 0.12);
  --shadow-sm: 0 1px 2px 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-glow: 0 0 20px rgba(159, 103, 235, 0.3);
  --shadow-card: 0 4px 20px rgba(103, 58, 183, 0.08);

  /* Typography */
  --font-primary: 'Noto Sans JP', 'Hiragino Sans', 'Meiryo', sans-serif;
  --font-display: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;

  /* Font Sizes */
  --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;

  /* 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;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  /* Z-index */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-tooltip: 600;
}

/* ====================================
   2. Base Styles
   ==================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
}

/* ====================================
   3. Typography
   ==================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

.heading-hero {
  font-size: clamp(var(--text-2xl), 5vw, var(--text-5xl));
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.heading-section {
  font-size: clamp(var(--text-xl), 3vw, var(--text-3xl));
  position: relative;
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-6);
}

.heading-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-400), var(--secondary-400));
  border-radius: var(--radius-full);
}

.heading-section.text-left::after {
  left: 0;
  transform: none;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ====================================
   4. Layout Components
   ==================================== */
.container-fluid {
  width: 100%;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.container-narrow {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.grid-auto {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Flex Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.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); }
.gap-8 { gap: var(--space-8); }

/* ====================================
   5. Card Components
   ==================================== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: all var(--transition-slow);
  border: 1px solid var(--border-light);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.card-body {
  padding: var(--space-6);
}

.card-header {
  padding: var(--space-6);
  border-bottom: 1px solid var(--border-light);
}

.card-footer {
  padding: var(--space-4) var(--space-6);
  background: var(--neutral-50);
  border-top: 1px solid var(--border-light);
}

/* Feature Card - 機能紹介用 */
.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  text-align: center;
  transition: all var(--transition-slow);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-400), var(--secondary-400), var(--accent-400));
}

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

.feature-card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-6);
  background: linear-gradient(135deg, var(--primary-100), var(--secondary-100));
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-3xl);
}

.feature-card-title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--primary-700);
}

.feature-card-desc {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Result Card - 診断結果用 */
.result-card {
  background: linear-gradient(135deg, var(--primary-50), var(--secondary-50));
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  border: 2px solid var(--primary-200);
  position: relative;
}

.result-card-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.result-card-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  color: var(--text-inverse);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

/* ====================================
   6. Button Components
   ==================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(159, 103, 235, 0.3);
}

/* Primary Button */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  color: var(--text-inverse);
  box-shadow: 0 4px 15px rgba(159, 103, 235, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(159, 103, 235, 0.4);
}

/* Secondary Button */
.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-500), var(--secondary-600));
  color: var(--text-inverse);
  box-shadow: 0 4px 15px rgba(247, 93, 135, 0.3);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--secondary-600), var(--secondary-700));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(247, 93, 135, 0.4);
}

/* Outline Button */
.btn-outline {
  background: transparent;
  color: var(--primary-600);
  border: 2px solid var(--primary-400);
}

.btn-outline:hover {
  background: var(--primary-50);
  border-color: var(--primary-500);
  transform: translateY(-2px);
}

/* Ghost Button */
.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-inverse);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Large Button */
.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

/* Small Button */
.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

/* Icon Button */
.btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: var(--radius-full);
}

/* ====================================
   7. Form Components
   ==================================== */
.form-group {
  margin-bottom: var(--space-6);
}

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

.form-input {
  width: 100%;
  padding: var(--space-4);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-400);
  box-shadow: 0 0 0 4px rgba(159, 103, 235, 0.1);
}

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

/* Search Input */
.search-box {
  display: flex;
  gap: var(--space-3);
  max-width: 600px;
  margin: 0 auto;
}

.search-input {
  flex: 1;
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-lg);
  background: var(--bg-secondary);
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-400);
  box-shadow: 0 0 0 4px rgba(159, 103, 235, 0.15);
}

/* Selection Cards */
.selection-cards {
  display: grid;
  gap: var(--space-4);
}

.selection-card {
  position: relative;
  padding: var(--space-5);
  background: var(--bg-secondary);
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition-base);
}

.selection-card:hover {
  border-color: var(--primary-300);
  background: var(--primary-50);
  transform: translateY(-2px);
}

.selection-card.selected {
  border-color: var(--primary-500);
  background: var(--primary-50);
  box-shadow: 0 0 0 4px rgba(159, 103, 235, 0.15);
}

.selection-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

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

.selection-card-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-100), var(--secondary-100));
  border-radius: var(--radius-lg);
  font-size: var(--text-xl);
  flex-shrink: 0;
}

.selection-card-text {
  flex: 1;
}

.selection-card-title {
  font-weight: 600;
  color: var(--primary-700);
  margin-bottom: var(--space-1);
}

.selection-card-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* ====================================
   8. Navigation Components
   ==================================== */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-base);
}

.nav-header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-header.transparent {
  background: transparent;
  border-bottom-color: transparent;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding: 0 var(--space-6);
  max-width: 1400px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.nav-logo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  border-radius: var(--radius-lg);
  color: var(--text-inverse);
  font-size: var(--text-xl);
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--primary-700);
}

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

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-600);
  background: var(--primary-50);
}

/* Mobile Navigation */
.nav-mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-lg);
}

.nav-mobile-toggle:hover {
  background: var(--neutral-100);
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 4px 0;
  transition: all var(--transition-base);
}

/* ====================================
   9. Hero Section
   ==================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-mystical);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(159, 103, 235, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(247, 93, 135, 0.2) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 80%, rgba(94, 234, 212, 0.15) 0%, transparent 40%),
    var(--bg-mystical);
}

.hero-stars {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, white, transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 90px 40px, white, transparent),
    radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 160px 120px, white, transparent);
  background-size: 200px 150px;
  animation: twinkle 4s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-8);
  max-width: 800px;
}

.hero-title {
  font-size: clamp(var(--text-3xl), 6vw, var(--text-5xl));
  font-weight: 700;
  color: var(--text-inverse);
  margin-bottom: var(--space-6);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-xl));
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-8);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* ====================================
   10. Section Styles
   ==================================== */
.section {
  padding: var(--space-20) 0;
}

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

.section-title {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  margin-bottom: var(--space-4);
}

.section-desc {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Alternating Background */
.section-alt {
  background: var(--neutral-50);
}

/* ====================================
   11. List Components
   ==================================== */
.dream-list {
  display: grid;
  gap: var(--space-4);
}

.dream-list-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  text-decoration: none;
  transition: all var(--transition-base);
}

.dream-list-item:hover {
  border-color: var(--primary-300);
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
}

.dream-list-rank {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  color: var(--text-inverse);
  font-weight: 700;
  font-size: var(--text-sm);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.dream-list-title {
  flex: 1;
  color: var(--text-primary);
  font-weight: 500;
}

.dream-list-arrow {
  color: var(--text-muted);
  transition: all var(--transition-base);
}

.dream-list-item:hover .dream-list-arrow {
  color: var(--primary-500);
  transform: translateX(4px);
}

/* ====================================
   12. Tag Components
   ==================================== */
.tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-base);
}

.tag-primary {
  background: var(--primary-100);
  color: var(--primary-700);
}

.tag-primary:hover {
  background: var(--primary-200);
}

.tag-secondary {
  background: var(--secondary-100);
  color: var(--secondary-700);
}

.tag-accent {
  background: var(--accent-100);
  color: var(--accent-700);
}

/* ====================================
   13. Breadcrumb
   ==================================== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

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

.breadcrumb-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-base);
}

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

.breadcrumb-separator {
  color: var(--text-muted);
}

.breadcrumb-current {
  color: var(--text-primary);
  font-weight: 500;
}

/* ====================================
   14. Footer
   ==================================== */
.footer {
  background: var(--neutral-900);
  color: var(--neutral-300);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  text-decoration: none;
}

.footer-logo-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  border-radius: var(--radius-lg);
  color: var(--text-inverse);
  font-size: var(--text-2xl);
}

.footer-logo-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-inverse);
}

.footer-desc {
  color: var(--neutral-400);
  line-height: 1.7;
}

.footer-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-inverse);
  margin-bottom: var(--space-5);
}

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

.footer-link {
  display: block;
  padding: var(--space-2) 0;
  color: var(--neutral-400);
  text-decoration: none;
  transition: color var(--transition-base);
}

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

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid var(--neutral-800);
  text-align: center;
  color: var(--neutral-500);
  font-size: var(--text-sm);
}

/* ====================================
   15. Ad Slots
   ==================================== */
.ad-slot {
  background: var(--neutral-100);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin: var(--space-8) 0;
  text-align: center;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-slot-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ====================================
   16. Utility Classes
   ==================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary-600); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-inverse { color: var(--text-inverse); }

.bg-primary { background: var(--primary-500); }
.bg-secondary { background: var(--bg-secondary); }

.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }

.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

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

/* ====================================
   17. Animations
   ==================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-fade-in { animation: fadeIn 0.5s ease forwards; }
.animate-fade-in-up { animation: fadeInUp 0.5s ease forwards; }
.animate-fade-in-down { animation: fadeInDown 0.5s ease forwards; }
.animate-scale-in { animation: scaleIn 0.3s ease forwards; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }

/* Stagger animations */
.stagger > *:nth-child(1) { animation-delay: 0.1s; }
.stagger > *:nth-child(2) { animation-delay: 0.2s; }
.stagger > *:nth-child(3) { animation-delay: 0.3s; }
.stagger > *:nth-child(4) { animation-delay: 0.4s; }
.stagger > *:nth-child(5) { animation-delay: 0.5s; }

/* ====================================
   18. Loading States
   ==================================== */
.skeleton {
  background: linear-gradient(90deg, var(--neutral-200) 25%, var(--neutral-100) 50%, var(--neutral-200) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

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

.skeleton-text:last-child {
  width: 70%;
}

/* ====================================
   19. Responsive Breakpoints
   ==================================== */
@media (max-width: 1024px) {
  .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --text-base: 0.9375rem;
  }

  .container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

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

  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 { 
    grid-template-columns: 1fr; 
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: var(--space-6);
    gap: var(--space-2);
    overflow-y: auto;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-mobile-toggle {
    display: flex;
  }

  .nav-link {
    padding: var(--space-4);
    justify-content: center;
    font-size: var(--text-lg);
  }

  .hero-content {
    padding: var(--space-6);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

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

  .footer-brand {
    max-width: none;
  }

  .search-box {
    flex-direction: column;
  }

  .feature-card {
    padding: var(--space-6);
  }
}

@media (max-width: 480px) {
  :root {
    --text-base: 0.875rem;
  }

  .btn-lg {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-base);
  }

  .hero-title {
    font-size: var(--text-2xl);
  }

  .hero-subtitle {
    font-size: var(--text-base);
  }

  .card-body {
    padding: var(--space-4);
  }
}
