/* ============================================
   Golden Insight Guru - Prompt Database
   Minimal Luxury Design System
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Primary Palette - Clean, Sophisticated */
  --color-primary: #18181B;
  --color-primary-light: #3F3F46;
  --color-primary-dark: #09090B;
  --color-primary-subtle: rgba(24, 24, 27, 0.06);

  /* Accent - Gold for premium feel */
  --color-accent: #D4AF37;
  --color-accent-light: #E8D48A;
  --color-accent-dark: #B8960A;
  --color-accent-subtle: rgba(212, 175, 55, 0.1);

  /* Category Accent Colors - Vibrant & Distinct */
  --color-growth: #8B5CF6;
  /* Violet */
  --color-copy: #EC4899;
  /* Pink */
  --color-tech: #3B82F6;
  /* Blue */
  --color-career: #F59E0B;
  /* Amber */
  --color-productivity: #10B981;
  /* Emerald */

  /* Neutrals - Pure, clean */
  --color-bg: #FAFAFA;
  --color-bg-elevated: #FFFFFF;
  --color-surface: #F5F5F5;
  --color-border: #E5E5E5;
  --color-border-strong: #D4D4D4;
  --color-text: #18181B;
  --color-text-secondary: #71717A;
  --color-text-muted: #A1A1AA;
  --color-text-inverse: #FFFFFF;

  /* ---------- Dark Mode Variables ---------- */
  [data-theme="dark"] {
    --color-primary: #FAFAFA;
    --color-primary-light: #E5E5E5;
    --color-primary-dark: #FFFFFF;
    --color-primary-subtle: rgba(250, 250, 250, 0.06);

    --color-bg: #0A0A0B;
    --color-bg-elevated: #18181B;
    --color-surface: #27272A;
    --color-border: #3F3F46;
    --color-border-strong: #52525B;
    --color-text: #FAFAFA;
    --color-text-secondary: #A1A1AA;
    --color-text-muted: #71717A;
    --color-text-inverse: #18181B;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 40px rgba(0, 0, 0, 0.6);
  }

  [data-theme="dark"] .header {
    background: rgba(10, 10, 11, 0.9);
  }

  [data-theme="dark"] .header.scrolled {
    background: rgba(24, 24, 27, 0.95);
  }

  /* Semantic */
  --color-success: #22C55E;
  --color-warning: #F59E0B;
  --color-error: #EF4444;
  --color-premium: #D4AF37;
  --color-premium-gold: #D4AF37;

  /* Shadows - Neutral, subtle */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06),
  0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 16px 40px rgba(0, 0, 0, 0.12);
  --shadow-focus: 0 0 0 3px rgba(212, 175, 55, 0.3);

  /* Typography */
  --font-display: 'Playfair Display',
  Georgia,
  'Times New Roman',
  serif;
  --font-body: 'Inter',
  system-ui,
  -apple-system,
  sans-serif;
  --font-mono: 'JetBrains Mono',
  'Fira Code',
  'SF Mono',
  monospace;

  /* Type Scale - Fluid */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.8125rem, 0.75rem + 0.3125vw, 0.875rem);
  --text-base: clamp(0.9375rem, 0.875rem + 0.3125vw, 1rem);
  --text-lg: clamp(1.0625rem, 1rem + 0.3125vw, 1.125rem);
  --text-xl: clamp(1.25rem, 1.125rem + 0.625vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
  --text-3xl: clamp(2rem, 1.5rem + 2.5vw, 2.75rem);
  --text-4xl: clamp(2.5rem, 2rem + 2.5vw, 3.5rem);

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

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Transitions - Smooth, understated */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  --duration-instant: 100ms;
  --duration-fast: 150ms;
  --duration-normal: 200ms;
  --duration-slow: 300ms;

  /* Layout */
  --container-max: 1280px;
  --header-height: 72px;
}

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

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

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

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

h1 {
  font-size: var(--text-4xl);
}

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

p {
  margin-bottom: var(--space-4);
}

a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-smooth);
}

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

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-8);
  }
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-6);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xl);
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-icon {
  font-size: 1.2em;
  color: var(--color-accent);
}

.logo-text {
  color: var(--color-text);
}

/* ---------- Search ---------- */
.search-container {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.search-input {
  width: 100%;
  height: 44px;
  padding: 0 var(--space-4) 0 44px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  outline: none;
  transition: all var(--duration-fast) var(--ease-smooth);
}

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

.search-input:focus {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-focus);
}

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

.search-shortcut {
  position: absolute;
  right: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  padding: var(--space-1) var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  pointer-events: none;
}

/* ---------- Favorites Button ---------- */
.btn-favorites {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--color-text);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.btn-favorites:hover {
  border-color: var(--color-text);
}

.btn-favorites.active {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.favorites-count {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 var(--space-1);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-inverse);
  background: var(--color-text);
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-smooth);
}

.btn-favorites.active .favorites-count {
  background: var(--color-accent);
}

.favorites-count.bump {
  animation: count-bump var(--duration-normal) var(--ease-smooth);
}

@keyframes count-bump {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  padding: var(--space-20) 0 var(--space-16);
  text-align: center;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  background: linear-gradient(180deg, transparent 0%, var(--color-surface) 100%);
  opacity: 0.5;
}

.hero-shape {
  display: none;
}

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

.hero-title {
  margin-bottom: var(--space-6);
  animation: fade-in-up 0.6s var(--ease-out);
}

.hero-typewriter {
  min-height: 50px;
  margin: var(--space-4) 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.typewriter-text {
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  display: inline-block;
}

.typewriter-text::after {
  content: '|';
  animation: blink 1s infinite;
  color: var(--color-accent);
  margin-left: 2px;
}

@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 560px;
  margin: 0 auto var(--space-8);
  line-height: 1.7;
  animation: fade-in-up 0.6s var(--ease-out) 0.1s both;
}

.hero-preview {
  margin: var(--space-10) auto;
  max-width: 480px;
  animation: fade-in-up 0.6s var(--ease-out) 0.2s both;
}

.hero-preview-card {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  text-align: left;
  transition: all var(--duration-normal) var(--ease-smooth);
}

.hero-preview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.hero-preview-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.hero-preview-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.hero-preview-info {
  flex: 1;
}

.hero-preview-title {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

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

.hero-preview-content {
  background: var(--color-surface);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}

.hero-preview-content code {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.hero-preview-btn {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--color-text-inverse);
  background: var(--color-primary);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.hero-preview-btn:hover {
  background: var(--color-primary-light);
}

.hero-ctas {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin: var(--space-10) 0;
  animation: fade-in-up 0.6s var(--ease-out) 0.3s both;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-smooth);
  border: 1px solid transparent;
}

.btn-hero-primary {
  color: var(--color-text-inverse);
  background: var(--color-primary);
}

.btn-hero-primary:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-hero-secondary {
  color: var(--color-text);
  background: var(--color-bg-elevated);
  border-color: var(--color-border);
}

.btn-hero-secondary:hover {
  border-color: var(--color-text);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-12);
  flex-wrap: wrap;
  margin-top: var(--space-10);
  animation: fade-in-up 0.6s var(--ease-out) 0.4s both;
}

.stat {
  text-align: center;
}

.stat-highlight {
  background: var(--color-accent-subtle);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-accent);
}

.stat-value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--color-text);
  display: block;
  letter-spacing: -0.02em;
}

.stat-highlight .stat-value {
  color: var(--color-accent-dark);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  display: block;
  margin-top: var(--space-1);
}

.hero-social-proof {
  margin-top: var(--space-10);
  animation: fade-in-up 0.6s var(--ease-out) 0.5s both;
}

.social-proof-quote {
  max-width: 480px;
  margin: 0 auto;
  padding: var(--space-5);
  background: var(--color-bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.quote-icon {
  font-size: 20px;
  display: block;
  margin-bottom: var(--space-2);
  color: var(--color-accent);
}

.social-proof-quote p {
  font-style: italic;
  color: var(--color-text);
  margin-bottom: var(--space-2);
  font-size: var(--text-base);
  line-height: 1.6;
}

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

/* ---------- Section Title ---------- */
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  text-align: center;
  margin-bottom: var(--space-12);
  color: var(--color-text);
  letter-spacing: -0.02em;
}

/* ---------- How It Works Section ---------- */
.how-it-works {
  padding: var(--space-16) var(--space-6);
  background: var(--color-bg-elevated);
  margin: var(--space-12) 0;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
  }
}

.step {
  text-align: center;
  padding: var(--space-6);
  transition: all var(--duration-normal) var(--ease-smooth);
  position: relative;
}

.step.visible {
  opacity: 1;
  transform: translateY(0);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--color-surface);
  color: var(--color-text-secondary);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  position: static;
  transform: none;
}

.step-icon {
  font-size: 40px;
  display: block;
  margin-bottom: var(--space-4);
}

.step-title {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.step-description {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ---------- FAQ Section ---------- */
.faq-section {
  padding: var(--space-16) 0;
  margin: var(--space-12) 0;
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-3);
  overflow: hidden;
  transition: all var(--duration-fast) var(--ease-smooth);
}

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

.faq-question {
  width: 100%;
  padding: var(--space-5) var(--space-6);
  text-align: left;
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  transition: color var(--duration-fast) var(--ease-smooth);
}

.faq-question:hover {
  color: var(--color-accent);
}

.faq-icon {
  font-size: var(--text-xl);
  font-weight: 300;
  color: var(--color-text-muted);
  flex-shrink: 0;
  transition: transform var(--duration-fast) var(--ease-smooth);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-item[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-normal) var(--ease-smooth), padding var(--duration-normal) var(--ease-smooth);
  padding: 0 var(--space-6);
}

.faq-item[aria-expanded="true"] .faq-answer {
  max-height: 500px;
  padding: 0 var(--space-6) var(--space-5);
}

.faq-answer p {
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* ---------- Filter Bar ---------- */
.filter-bar {
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-8);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  margin-bottom: var(--space-4);
}

.filter-row:last-child {
  margin-bottom: 0;
}

.filter-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-right: var(--space-2);
}

/* ---------- Category Pills ---------- */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-smooth);
}

/* Category Colors */
.category-pill[data-category="growth"] {
  --pill-color: var(--color-growth);
}

.category-pill[data-category="copy"] {
  --pill-color: var(--color-copy);
}

.category-pill[data-category="tech"] {
  --pill-color: var(--color-tech);
}

.category-pill[data-category="career"] {
  --pill-color: var(--color-career);
}

.category-pill[data-category="productivity"] {
  --pill-color: var(--color-productivity);
}

.category-pill[data-category="all"] {
  --pill-color: var(--color-primary);
}

.category-pill:hover {
  border-color: var(--pill-color, var(--color-text));
  color: var(--pill-color, var(--color-text));
  background: rgba(var(--pill-color), 0.1);
  /* This might not work if vars are hex */
}

/* Fallback hover if can't use rgba with hex vars easily without modification, keeping simple opacity or just border */
.category-pill:hover {
  border-color: var(--pill-color, var(--color-text));
  color: var(--pill-color, var(--color-text));
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.category-pill.active {
  color: #FFFFFF;
  /* Always white text for vibrant pill colors looks best usually, or stick to inverse */
  color: var(--color-text-inverse);
  /* Let's trust the system first */
  background: var(--pill-color, var(--color-primary));
  border-color: var(--pill-color, var(--color-primary));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Specific text color override for All in dark mode if needed, but generic approach fits system. */
[data-theme="dark"] .category-pill.active[data-category="all"] {
  color: var(--color-text-inverse);
  /* Black on White */
}

/* For colored pills in dark mode, we might want white text if the colors are bright? 
   Pink/Blue/Purple usually support white text. 
   Yellow might need black. 
   Let's force white text for colored pills (not 'all') to be safe, 
   or just let the user see.
   Actually 'text-inverse' in dark mode is Dark (18181B).
   Pink background + Dark Gray text might look muddy.
   White text is usually safer for these vibrant accent colors.
*/
.category-pill.active:not([data-category="all"]) {
  color: #FFFFFF;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ---------- Tag Chips ---------- */
.tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tag-chip {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.tag-chip:hover {
  background: var(--color-border);
  color: var(--color-text);
}

.tag-chip.active {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

/* ---------- Filter Controls ---------- */
.filter-controls {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  align-items: center;
}

.filter-select {
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-smooth);
}

.filter-select:focus {
  border-color: var(--color-accent);
}

/* ---------- Prompt Grid ---------- */
.prompts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  padding-bottom: var(--space-16);
}

@media (min-width: 768px) {
  .prompts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .prompts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
}

/* ---------- Prompt Card ---------- */
.prompt-card {
  position: relative;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-smooth);
}

.prompt-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.prompt-card {
  opacity: 0;
  transform: translateY(16px);
}

.prompt-card.visible {
  opacity: 1;
  animation: fade-in-up 0.4s var(--ease-out) forwards;
}

/* Category color accents for cards */
.prompt-card[data-category="growth"] {
  --category-color: var(--color-growth);
}

.prompt-card[data-category="copy"] {
  --category-color: var(--color-copy);
}

.prompt-card[data-category="tech"] {
  --category-color: var(--color-tech);
}

.prompt-card[data-category="career"] {
  --category-color: var(--color-career);
}

.prompt-card[data-category="productivity"] {
  --category-color: var(--color-productivity);
}

/* Colored accent bar on left side of card */
.prompt-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--category-color, var(--color-primary));
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  opacity: 0.8;
  transition: opacity var(--duration-fast) var(--ease-smooth);
}

.prompt-card:hover .prompt-card-accent {
  opacity: 1;
}

.prompt-card-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-6) var(--space-4);
}

.prompt-category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 22px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.prompt-card-info {
  flex: 1;
  min-width: 0;
}

.prompt-card-title {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.prompt-card-description {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.prompt-card-actions {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
}

/* ---------- Favorite Button ---------- */
.btn-favorite {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--color-text-muted);
  transition: all var(--duration-fast) var(--ease-smooth);
}

.btn-favorite:hover {
  background: var(--color-surface);
  color: var(--color-text);
}

.btn-favorite.active {
  color: var(--color-accent);
}

.btn-favorite.active .heart-icon {
  fill: var(--color-accent);
}

.btn-favorite.pop {
  animation: heart-pop var(--duration-normal) var(--ease-smooth);
}

@keyframes heart-pop {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

/* ---------- Premium Badge ---------- */
.badge-premium {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  background: var(--color-accent-subtle);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
  animation: premium-glow 2s ease-in-out infinite alternate;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.badge-premium:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.badge-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
  animation: badge-shimmer 3s infinite;
}

@keyframes badge-shimmer {
  0% {
    left: -100%;
  }

  50% {
    left: 100%;
  }

  100% {
    left: 100%;
  }
}

@keyframes premium-glow {
  0% {
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.2);
  }

  100% {
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.4);
  }
}

/* ---------- Prompt Content ---------- */
.prompt-card-body {
  padding: 0 var(--space-6) var(--space-4);
}

.prompt-content {
  position: relative;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-surface);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  max-height: 200px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.prompt-content::-webkit-scrollbar {
  width: 6px;
}

.prompt-content::-webkit-scrollbar-track {
  background: transparent;
}

.prompt-content::-webkit-scrollbar-thumb {
  background: var(--color-border-strong);
  border-radius: 3px;
}

/* Locked/Premium Content */
.prompt-content.locked {
  max-height: 150px;
  overflow: hidden;
}

.prompt-content.locked::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent 0%, var(--color-surface) 70%);
  pointer-events: none;
}

.prompt-blur-overlay {
  filter: blur(4px);
  user-select: none;
}

/* ---------- Variables Form ---------- */
.variables-form {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.variable-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.variable-field label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.variable-field label .required {
  color: var(--color-error);
}

.variable-field input {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.variable-field input::placeholder {
  color: var(--color-text-muted);
  font-style: italic;
}

.variable-field input:focus {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-focus);
}

/* ---------- Prompt Card Footer ---------- */
.prompt-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6) var(--space-6);
}

.prompt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.prompt-tag {
  padding: var(--space-1) var(--space-2);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border-radius: var(--radius-sm);
}

/* ---------- Copy Button ---------- */
/* ---------- Copy Buttons ---------- */
.btn-group {
  display: flex;
  gap: var(--space-2);
}

.btn-copy,
.btn-unlock,
.btn-copy-md {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border: none;
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.btn-copy-md {
  padding: var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}

.btn-copy-md:hover {
  background: var(--color-bg-elevated);
  color: var(--color-text);
  border-color: var(--color-border-hover);
}

.btn-copy {
  flex: 1;
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

cursor: pointer;
transition: all var(--duration-fast) var(--ease-smooth);
position: relative;
overflow: hidden;
}

.btn-copy:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(24, 24, 27, 0.2);
}

.btn-copy:active {
  transform: translateY(0) scale(0.98);
}

.btn-copy.copied {
  background: var(--color-success);
}

.btn-copy .icon {
  font-size: 1em;
  transition: transform var(--duration-fast) var(--ease-smooth);
}

.btn-copy:hover .icon {
  transform: scale(1.1);
}

/* Copy success celebration animation */
.btn-copy.celebrating {
  animation: copy-celebrate 0.6s var(--ease-out);
}

.btn-copy.celebrating::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.4) 0%, transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  animation: copy-burst 0.6s var(--ease-out);
}

@keyframes copy-celebrate {

  0%,
  100% {
    transform: scale(1);
  }

  30% {
    transform: scale(1.1);
  }

  60% {
    transform: scale(0.95);
  }
}

@keyframes copy-burst {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
  }
}

/* Confetti particles */
.copy-confetti {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
}

.confetti-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  --x: 0px;
  animation: confetti-fall 1s var(--ease-out) forwards;
}

@keyframes confetti-fall {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 1;
  }

  100% {
    transform: translate(var(--x), -80px) rotate(720deg) scale(0);
    opacity: 0;
  }
}

/* ---------- Unlock Button (Premium) ---------- */
.btn-unlock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-4) var(--space-6);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--color-text-inverse);
  background: var(--color-accent);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-smooth);
  text-decoration: none;
}

.btn-unlock:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--color-text-inverse);
}

/* Search Highlighting */
mark {
  background-color: rgba(255, 215, 0, 0.25);
  /* Subtle gold */
  color: inherit;
  border-radius: 2px;
  padding: 0 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Toast styles moved to Enhanced Toast Notifications section below */

/* ---------- Premium Upsell Banner ---------- */
.premium-banner {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-12);
  text-align: center;
  margin: var(--space-8) 0;
}

.premium-banner-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.premium-banner-subtitle {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
}

.premium-banner-price {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: var(--space-8);
}

.premium-banner-features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.premium-feature {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.premium-feature .check {
  color: var(--color-success);
}

/* ---------- Empty State ---------- */
.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-4);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: var(--space-4);
  opacity: 0.5;
}

.empty-state-title {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.empty-state-description {
  color: var(--color-text-secondary);
}

/* ---------- Footer ---------- */
.footer {
  padding: var(--space-12) 0;
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-16);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
}

.footer-links {
  display: flex;
  gap: var(--space-6);
}

.footer-link {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

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

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

/* ---------- Skeleton Loading ---------- */
.skeleton-card {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  min-height: 280px;
}

.skeleton-header {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.skeleton-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  animation: skeleton-shimmer 1.5s infinite;
}

.skeleton-text {
  flex: 1;
}

.skeleton-title {
  height: 20px;
  width: 70%;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-2);
  animation: skeleton-shimmer 1.5s infinite;
}

.skeleton-desc {
  height: 14px;
  width: 90%;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  animation: skeleton-shimmer 1.5s infinite 0.1s;
}

.skeleton-body {
  height: 120px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  animation: skeleton-shimmer 1.5s infinite 0.2s;
}

.skeleton-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skeleton-tags {
  display: flex;
  gap: var(--space-2);
}

.skeleton-tag {
  width: 60px;
  height: 24px;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  animation: skeleton-shimmer 1.5s infinite 0.3s;
}

.skeleton-btn {
  width: 120px;
  height: 40px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  animation: skeleton-shimmer 1.5s infinite 0.4s;
}

@keyframes skeleton-shimmer {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}

/* ---------- Dark Mode Toggle ---------- */
.btn-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-smooth);
  color: var(--color-text);
}

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

.btn-theme-toggle svg {
  width: 20px;
  height: 20px;
  transition: transform var(--duration-normal) var(--ease-smooth);
}

.btn-theme-toggle:hover svg {
  transform: rotate(15deg);
}

.theme-icon-sun,
.theme-icon-moon {
  display: none;
}

[data-theme="light"] .theme-icon-moon,
:root:not([data-theme]) .theme-icon-moon {
  display: block;
}

[data-theme="dark"] .theme-icon-sun {
  display: block;
}

/* ---------- Filter Reset Button ---------- */
.btn-filter-reset {
  display: none;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.btn-filter-reset.visible {
  display: inline-flex;
}

.btn-filter-reset:hover {
  color: var(--color-error);
  border-color: var(--color-error);
  background: rgba(239, 68, 68, 0.05);
}

.btn-filter-reset svg {
  width: 14px;
  height: 14px;
}

/* ---------- Results Count ---------- */
.results-count {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  padding: var(--space-4) 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.results-count-number {
  font-weight: 600;
  color: var(--color-text);
}

/* ---------- Keyboard Navigation Focus ---------- */
.prompt-card.keyboard-focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  box-shadow: var(--shadow-lg), 0 0 0 4px rgba(212, 175, 55, 0.1);
}

/* ---------- Enhanced Toast Notifications ---------- */
.toast-container {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  left: auto;
  transform: none;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  background: var(--color-text);
  color: var(--color-text-inverse);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  animation: toast-slide-in var(--duration-normal) var(--ease-out);
  pointer-events: auto;
  max-width: 400px;
}

.toast.exiting {
  animation: toast-slide-out var(--duration-fast) var(--ease-smooth) forwards;
}

.toast-success {
  background: var(--color-success);
}

.toast-error {
  background: var(--color-error);
}

.toast-undo-btn {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-inverse);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-left: auto;
  transition: background var(--duration-fast) var(--ease-smooth);
}

.toast-undo-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.toast-icon {
  font-size: 1.25em;
}

.toast-content {
  display: flex;
  flex-direction: column;
}

.toast-message {
  font-weight: 500;
}

.toast-hint {
  font-size: var(--text-sm);
  opacity: 0.7;
}

@keyframes toast-slide-in {
  0% {
    opacity: 0;
    transform: translateX(100%);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toast-slide-out {
  0% {
    opacity: 1;
    transform: translateX(0);
  }

  100% {
    opacity: 0;
    transform: translateX(100%);
  }
}

/* ---------- Hero Enhancements ---------- */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  background: linear-gradient(180deg, transparent 0%, var(--color-surface) 100%);
  opacity: 0.5;
  overflow: hidden;
}

.hero-shape {
  display: block;
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  animation: hero-float 20s ease-in-out infinite;
}

.hero-shape-1 {
  width: 400px;
  height: 400px;
  background: var(--color-accent);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.hero-shape-2 {
  width: 300px;
  height: 300px;
  background: var(--color-growth);
  bottom: -50px;
  left: -50px;
  animation-delay: -5s;
}

.hero-shape-3 {
  width: 200px;
  height: 200px;
  background: var(--color-tech);
  top: 30%;
  left: 10%;
  animation-delay: -10s;
}

.hero-shape-4 {
  width: 250px;
  height: 250px;
  background: var(--color-copy);
  bottom: 20%;
  right: 15%;
  animation-delay: -15s;
}

@keyframes hero-float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(30px, -30px) scale(1.1);
  }

  50% {
    transform: translate(-20px, 20px) scale(0.95);
  }

  75% {
    transform: translate(20px, 10px) scale(1.05);
  }
}

.hero-preview-card {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-xl);
  text-align: left;
  transition: all var(--duration-normal) var(--ease-smooth);
  animation: hero-card-float 6s ease-in-out infinite;
}

@keyframes hero-card-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* Enhanced Hero CTA buttons */
.btn-hero-primary {
  color: var(--color-text-inverse);
  background: var(--color-primary);
  position: relative;
  overflow: hidden;
}

.btn-hero-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s var(--ease-smooth);
}

.btn-hero-primary:hover::before {
  left: 100%;
}

.btn-hero-primary:hover {
  background: var(--color-primary-light);
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(24, 24, 27, 0.15);
}

/* ---------- Staggered Card Animation ---------- */
.prompt-card {
  --stagger-delay: 0ms;
}

.prompt-card:nth-child(1) {
  --stagger-delay: 0ms;
}

.prompt-card:nth-child(2) {
  --stagger-delay: 50ms;
}

.prompt-card:nth-child(3) {
  --stagger-delay: 100ms;
}

.prompt-card:nth-child(4) {
  --stagger-delay: 150ms;
}

.prompt-card:nth-child(5) {
  --stagger-delay: 200ms;
}

.prompt-card:nth-child(6) {
  --stagger-delay: 250ms;
}

.prompt-card.visible {
  animation-delay: var(--stagger-delay);
}

/* ---------- Animations ---------- */
@keyframes fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ---------- Mobile Styles ---------- */
@media (max-width: 767px) {
  .header-inner {
    flex-wrap: wrap;
    padding: var(--space-3) 0;
    height: auto;
  }

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

  .search-container {
    order: 3;
    max-width: 100%;
    flex-basis: 100%;
    margin-top: var(--space-3);
  }

  .search-shortcut {
    display: none;
  }

  /* Dark mode toggle mobile */
  .btn-theme-toggle {
    width: 36px;
    height: 36px;
  }

  .hero {
    padding: var(--space-12) 0 var(--space-8);
    min-height: auto;
  }

  .hero-stats {
    gap: var(--space-8);
  }

  /* Hide hero shapes on mobile for performance */
  .hero-shape {
    display: none;
  }

  .filter-bar {
    padding: var(--space-4) 0;
  }

  .category-pills {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: var(--space-2);
    -webkit-overflow-scrolling: touch;
  }

  .category-pill {
    flex-shrink: 0;
  }

  /* Filter controls stack on mobile */
  .filter-controls {
    flex-wrap: wrap;
    gap: var(--space-2);
  }

  .btn-filter-reset {
    width: 100%;
    justify-content: center;
    margin-top: var(--space-2);
  }

  /* Results count mobile */
  .results-count {
    padding: var(--space-2) 0;
    font-size: var(--text-xs);
  }

  .prompt-card-header {
    flex-direction: column;
    gap: var(--space-3);
  }

  .prompt-card-actions {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
  }

  .prompt-card-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-copy {
    width: 100%;
  }

  /* Toast mobile - full width at bottom */
  .toast-container {
    right: var(--space-4);
    left: var(--space-4);
    bottom: var(--space-4);
  }

  .toast {
    max-width: 100%;
  }
}

/* ---------- Hero Tabs ---------- */
.hero-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  /* Increased spacing to move tabs "higher" relative to card */
  transform: translateY(-10px);
  /* Move tabs slightly up */
}

.hero-tab {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-smooth);
  backdrop-filter: blur(8px);
}

.hero-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text);
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-tab.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-inverse);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* Hero Preview Card transitions */
.hero-preview-card {
  transition: transform var(--duration-normal) var(--ease-bounce), opacity var(--duration-fast);
}

.hero-preview-card.switching {
  transform: scale(0.98);
  opacity: 0.8;
}

/* ---------- Print Styles ---------- */
@media print {

  .header,
  .hero-section,
  .how-it-works,
  .filter-bar,
  .premium-upsell,
  .btn-unlock,
  .newsletter-modal,
  .footer {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .prompts-grid {
    display: block;
  }

  .prompt-card {
    border: 1px solid #ccc;
    break-inside: avoid;
    margin-bottom: 2rem;
    box-shadow: none;
    background: white;
  }

  .prompt-card-header {
    border-bottom: 1px solid #eee;
  }

  .prompt-content {
    background: #f9f9f9;
    color: black;
    border: 1px solid #eee;
    max-height: none;
  }

  .prompt-card-actions,
  .btn-group {
    display: none;
  }
}

/* ---------- Simulator Modal ---------- */
.simulator-window {
  background: var(--color-bg);
  width: 90%;
  max-width: 800px;
  height: 80vh;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  border: 1px solid var(--color-border);
  position: relative;
  transform: translateY(20px);
  transition: all var(--duration-normal) var(--ease-out);
}

.simulator-header {
  padding: var(--space-4);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.simulator-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  color: var(--color-text);
}

.simulator-chat {
  flex: 1;
  padding: var(--space-6);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  background: var(--color-bg);
}

.chat-message {
  display: flex;
  gap: var(--space-4);
  max-width: 85%;
  animation: slideUpFade 0.3s ease-out;
}

.chat-message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-message .avatar {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border-radius: var(--radius-full);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.chat-message.user .avatar {
  background: var(--color-primary);
}

.chat-message .message-content {
  padding: var(--space-4);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border-top-left-radius: 0;
  line-height: 1.6;
  font-size: var(--text-base);
  color: var(--color-text);
}

.chat-message.user .message-content {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-radius: var(--radius-lg);
  border-top-right-radius: 0;
}

.simulator-controls {
  padding: var(--space-4);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.simulator-input-area {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.simulator-prompt-preview {
  flex: 1;
  max-height: 100px;
  overflow-y: auto;
  padding: var(--space-3);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
}

.btn-run-sim {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: var(--color-accent);
  color: var(--color-bg);
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-fast);
}

.btn-run-sim:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

/* Test Button in Card */
.btn-test {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-accent);
  /* distinct border */
  color: var(--color-accent);
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  cursor: pointer;
}

.btn-test:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) var(--ease-smooth);
}

.modal-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 480px;
  position: relative;
  transform: translateY(20px);
  transition: all var(--duration-normal) var(--ease-out);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.modal-overlay.visible .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  padding: var(--space-2);
  line-height: 1;
  transition: color var(--duration-fast);
}

.modal-close:hover {
  color: var(--color-text);
}

.modal-body {
  padding: var(--space-8) var(--space-8);
  text-align: center;
}

.modal-icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
  animation: bounce-soft 2s infinite;
}

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

.modal-description {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
  line-height: 1.5;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.input-email {
  width: 100%;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  transition: border-color var(--duration-fast);
}

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

.btn-submit {
  width: 100%;
  padding: var(--space-3);
  border: none;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-weight: 600;
  font-size: var(--text-base);
  cursor: pointer;
  transition: all var(--duration-fast);
}

.btn-submit:hover {
  background: var(--color-primary-light);
  transform: translateY(-1px);
}

.form-footer {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

.newsletter-success {
  text-align: center;
  padding: var(--space-4) 0;
}

.success-icon {
  font-size: 3rem;
  margin-bottom: var(--space-2);
}

@keyframes bounce-soft {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@media print {

  .header,
  .filter-bar,
  .btn-copy,
  .btn-favorite,
  .btn-unlock,
  .premium-banner,
  .footer {
    display: none !important;
  }

  .prompt-card {
    break-inside: avoid;
    border: 1px solid #ccc;
    box-shadow: none;
  }

  .prompt-content {
    max-height: none;
    overflow: visible;
  }
}