/* ==========================================================================
   AI PROMPT LIBRARY - MODERN DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

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

/* --- COLOR PALETTE & DESIGN TOKENS --- */
:root {
  /* Brand Gradients & Accents */
  --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  --accent-glow: rgba(99, 102, 241, 0.15);
  
  /* Light Theme Defaults */
  --bg-body: #f8fafc;
  --bg-header: rgba(255, 255, 255, 0.85);
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-code: #f1f5f9;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --code-text: #1e293b;

  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  --glass-border: rgba(226, 232, 240, 0.8);
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 12px -2px rgba(0,0,0,0.08), 0 2px 6px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 32px -4px rgba(0,0,0,0.12), 0 4px 12px -2px rgba(0,0,0,0.06);

  --mark-bg: rgba(99, 102, 241, 0.12);
  --mark-text: #4338ca;
  --mark-border: rgba(99, 102, 241, 0.3);
}

[data-theme="dark"] {
  --bg-body: #090d16;
  --bg-header: rgba(15, 23, 42, 0.85);
  --bg-card: #131b2e;
  --bg-card-hover: #182239;
  --bg-subtle: #1e293b;
  --bg-code: #070a12;
  
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-light: #94a3b8;
  --code-text: #f1f5f9;

  --border-color: #1e293b;
  --border-hover: #334155;
  --glass-border: rgba(255, 255, 255, 0.08);

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.6);

  --mark-bg: rgba(129, 140, 248, 0.25);
  --mark-text: #818cf8;
  --mark-border: rgba(129, 140, 248, 0.5);
}

/* --- BASE RESET --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- STICKY HEADER & NAVBAR --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.85rem 2rem;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.logo-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 500;
}

.btn-release-notes {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-release-notes:hover {
  background: var(--bg-subtle);
  border-color: #6366f1;
  color: #6366f1;
}

/* Search Input in Header */
.search-box {
  position: relative;
  flex: 1;
  max-width: 480px;
}

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

.search-input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.6rem;
  font-size: 0.92rem;
  font-family: inherit;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: #6366f1;
  background: var(--bg-card);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
  border-color: var(--border-hover);
}

/* --- HERO SECTION --- */
.hero-section {
  padding: 3rem 2rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #6366f1;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

[data-theme="dark"] .hero-badge {
  color: #818cf8;
  background: rgba(129, 140, 248, 0.12);
  border-color: rgba(129, 140, 248, 0.25);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2rem;
}

/* --- CONTROLS & FILTER BAR --- */
.filter-container {
  max-width: 1400px;
  margin: 0 auto 2rem;
  padding: 0 2rem;
}

/* Tier 1: Main Domain Tabs */
.domain-tabs-wrapper {
  margin-bottom: 1rem;
}

.domain-tabs {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-card);
  padding: 0.45rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.domain-tab {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.25rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.domain-tab:hover {
  color: var(--text-main);
  background: var(--bg-subtle);
}

.domain-tab.active {
  background: var(--bg-subtle);
  color: var(--text-main);
  border-color: var(--border-hover);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.domain-tab.active[data-domain="all"] {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
  border-color: #6366f1;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.domain-tab.active[data-domain="general"] {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #ffffff;
  border-color: #8b5cf6;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}

.domain-tab.active[data-domain="tech"] {
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: #ffffff;
  border-color: #0d9488;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

.domain-tab.active[data-domain="favorites"] {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  border-color: #f59e0b;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.domain-tab-count {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  background: var(--bg-subtle);
  color: var(--text-light);
  transition: all 0.2s ease;
}

.domain-tab.active .domain-tab-count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* Tier 2: Subcategory Filters */
.subcategories-wrapper {
  transition: all 0.3s ease;
  margin-bottom: 0.5rem;
}

.subcategories-wrapper.hidden {
  display: none;
}

.categories-scroll {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.3rem 0;
  scrollbar-width: thin;
}

.subcat-pill {
  padding: 0.48rem 0.95rem;
  border-radius: 24px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.subcat-pill:hover {
  border-color: var(--border-hover);
  color: var(--text-main);
  background: var(--bg-subtle);
  transform: translateY(-1px);
}

.subcat-pill.active {
  background: #6366f1;
  color: #ffffff !important;
  border-color: #6366f1;
  box-shadow: 0 3px 12px rgba(99, 102, 241, 0.35);
}

[data-active-domain="general"] .subcat-pill.active {
  background: #8b5cf6;
  color: #ffffff !important;
  border-color: #8b5cf6;
  box-shadow: 0 3px 12px rgba(139, 92, 246, 0.35);
}

[data-active-domain="tech"] .subcat-pill.active {
  background: #0d9488;
  color: #ffffff !important;
  border-color: #0d9488;
  box-shadow: 0 3px 12px rgba(13, 148, 136, 0.35);
}

.subcat-pill.active span {
  color: #ffffff !important;
}

.subcat-pill-count {
  font-size: 0.72rem;
  padding: 0.1rem 0.4rem;
  border-radius: 8px;
  background: var(--bg-subtle);
  color: var(--text-light);
}

.subcat-pill.active .subcat-pill-count {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  font-weight: 700;
}

/* Level Filters & Sorting row */
.filter-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.level-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.level-btn {
  padding: 0.3rem 0.8rem;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-light);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.level-btn:hover {
  color: var(--text-main);
}

.level-btn.active {
  background: var(--bg-subtle);
  color: var(--text-main);
  border-color: var(--border-color);
}

.results-stats {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
}

/* --- CARDS GRID --- */
.main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.prompts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 1.5rem;
}

/* Prompt Card Component */
.prompt-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.prompt-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

/* Card Top Bar */
.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.card-title-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.num-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
  color: #ffffff;
  flex-shrink: 0;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
}

.card-usecase {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  line-height: 1.45;
}

.btn-bookmark {
  background: transparent;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.2rem;
  transition: color 0.2s, transform 0.2s;
}

.btn-bookmark:hover {
  color: #f59e0b;
  transform: scale(1.15);
}

.btn-bookmark.bookmarked {
  color: #f59e0b;
  fill: #f59e0b;
}

/* Level & Category Metadata Tags */
.card-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tag-beginner {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.tag-intermediate {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
}

.tag-advanced {
  background: rgba(139, 92, 246, 0.12);
  color: #8b5cf6;
}

.domain-badge {
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  border-radius: 6px;
}

.domain-badge.domain-general {
  background: rgba(139, 92, 246, 0.14);
  color: #8b5cf6;
  border: 1px solid rgba(139, 92, 246, 0.28);
}

.domain-badge.domain-tech {
  background: rgba(13, 148, 136, 0.14);
  color: #0d9488;
  border: 1px solid rgba(13, 148, 136, 0.28);
}

.subcat-badge {
  font-weight: 600;
  font-size: 0.74rem;
  border-radius: 6px;
}

/* Code Snippet Box */
.code-container {
  background: var(--bg-code);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  position: relative;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.code-content {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.83rem;
  line-height: 1.6;
  color: var(--code-text);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 220px;
  overflow-y: auto;
  scrollbar-width: thin;
  padding-right: 0.5rem;
}

/* Style <mark> placeholder tags inside prompts */
.code-content mark {
  background: var(--mark-bg);
  color: var(--mark-text);
  border: 1px solid var(--mark-border);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-weight: 600;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  background: var(--primary-gradient);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
  transition: all 0.2s ease;
}

.btn-copy:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}

.btn-copy:active {
  transform: scale(0.97);
}

.btn-expand {
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

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

/* Pro Tip footer */
.card-protip {
  margin-top: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: var(--bg-subtle);
  font-size: 0.8rem;
  color: var(--text-light);
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.protip-title {
  font-weight: 700;
  color: var(--text-muted);
}

/* --- MODAL DIALOG --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-card {
  transform: scale(1);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
}

.modal-code {
  max-height: none;
  font-size: 0.9rem;
}

/* --- FLOATING TOAST NOTIFICATION --- */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: #0f172a;
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.15);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-light);
  grid-column: 1 / -1;
}

.empty-state svg {
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* --- EXPORT DROPDOWN & CONTROL ACTIONS --- */
.export-dropdown {
  position: relative;
  display: inline-block;
}

.btn-export {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-export:hover {
  background: var(--bg-subtle);
  border-color: var(--border-hover);
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 300;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  min-width: 190px;
  padding: 0.4rem;
  display: none;
  flex-direction: column;
  gap: 0.2rem;
}

.dropdown-menu.show {
  display: flex;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background 0.15s;
}

.dropdown-item:hover {
  background: var(--bg-subtle);
}

/* --- AI LAUNCH BUTTONS & DROPDOWN --- */
.launch-dropdown {
  position: relative;
  display: inline-block;
}

.btn-ai-launch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-ai-launch:hover {
  border-color: #6366f1;
  background: var(--bg-card);
  color: #6366f1;
}

.launch-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  z-index: 400;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  min-width: 170px;
  padding: 0.4rem;
  display: none;
  flex-direction: column;
  gap: 0.2rem;
}

.modal-card .launch-menu {
  top: calc(100% + 6px);
  bottom: auto;
}

.launch-menu.show {
  display: flex;
}

.launch-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background 0.15s;
}

.launch-item:hover {
  background: var(--bg-subtle);
}

/* --- VARIABLE CUSTOMIZER FORM --- */
.customizer-box {
  margin-top: 1.25rem;
  padding: 1.1rem;
  border-radius: 14px;
  background: var(--bg-subtle);
  border: 1px dashed var(--border-hover);
}

.customizer-title {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-main);
}

.customizer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.field-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.field-input {
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s;
}

.field-input:focus {
  border-color: #6366f1;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 768px) {
  .site-header {
    padding: 0.75rem 1rem;
  }
  .header-inner {
    flex-wrap: wrap;
  }
  .search-box {
    order: 3;
    max-width: 100%;
  }
  .hero-title {
    font-size: 1.8rem;
  }
  .prompts-grid {
    grid-template-columns: 1fr;
  }
  .filter-container, .main-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .filter-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
}

/* --- RELEASE NOTES LANDING PAGE STYLES --- */
.release-page-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem 1.5rem;
}

.release-header {
  margin-bottom: 3rem;
  text-align: left;
}

.release-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #6366f1;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

[data-theme="dark"] .release-badge {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
  color: #818cf8;
}

.release-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.release-lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 720px;
}

/* Timeline Layout */
.timeline-container {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  bottom: 1.5rem;
  left: 20px;
  width: 2px;
  background: var(--border-color);
}

.timeline-entry {
  position: relative;
  padding-left: 55px;
}

.timeline-marker {
  position: absolute;
  left: 10px;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-body);
  border: 3px solid #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.timeline-entry.v1 .timeline-marker {
  border-color: #64748b;
  box-shadow: 0 0 0 4px rgba(100, 116, 139, 0.15);
}

.version-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.version-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.version-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.version-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.version-tag {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
}

.version-status {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.version-status.legacy {
  background: rgba(100, 116, 139, 0.12);
  color: #64748b;
  border-color: rgba(100, 116, 139, 0.25);
}

.version-date {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
}

.version-summary {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.change-category {
  margin-top: 1.5rem;
}

.change-category-title {
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6366f1;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

[data-theme="dark"] .change-category-title {
  color: #818cf8;
}

.change-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.change-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-main);
}

.change-bullet {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6366f1;
  margin-top: 0.55rem;
}

.timeline-entry.v1 .change-bullet {
  background: #64748b;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-back:hover {
  background: var(--bg-subtle);
  border-color: #6366f1;
  color: #6366f1;
}

/* --- USER GUIDE ("HOW TO USE") STYLES --- */
.guide-page-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 6rem 1.5rem;
}

.guide-hero {
  margin-bottom: 2.5rem;
  text-align: left;
}

.guide-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #6366f1;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

[data-theme="dark"] .guide-badge {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
  color: #818cf8;
}

.guide-title {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
  color: var(--text-main);
  line-height: 1.15;
}

.guide-lead {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 780px;
}

.guide-meta-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--text-light);
  flex-wrap: wrap;
}

.guide-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Quick Jump / TOC */
.guide-toc-nav {
  position: sticky;
  top: 72px;
  z-index: 50;
  margin-bottom: 3rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.guide-toc-nav::-webkit-scrollbar {
  display: none;
}

.guide-toc-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  padding: 0 0.5rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border-right: 1px solid var(--border-color);
}

.guide-toc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.18s ease;
}

.guide-toc-link:hover {
  background: var(--bg-subtle);
  color: #6366f1;
}

[data-theme="dark"] .guide-toc-link:hover {
  color: #818cf8;
}

/* Sections */
.guide-section {
  margin-bottom: 4rem;
  scroll-margin-top: 130px;
}

.guide-section-header {
  margin-bottom: 1.5rem;
}

.guide-section-tag {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6366f1;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

[data-theme="dark"] .guide-section-tag {
  color: #818cf8;
}

.guide-section-title {
  font-size: 1.75rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.guide-section-desc {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* Content Cards */
.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.guide-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.guide-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.guide-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.guide-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

/* Step Walkthrough Cards */
.step-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.step-number {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  flex-shrink: 0;
}

.step-title-wrap h3 {
  font-size: 1.25rem;
  font-weight: 750;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.step-title-wrap p {
  font-size: 0.88rem;
  color: var(--text-light);
}

.step-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* Visual Interactive / Demo Mockup */
.mockup-container {
  margin-top: 1.25rem;
  border-radius: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
}

.mockup-field-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.mockup-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #6366f1;
  font-family: 'JetBrains Mono', monospace;
}

[data-theme="dark"] .mockup-label {
  color: #818cf8;
}

.mockup-input {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 0.88rem;
  font-family: 'Inter', sans-serif;
}

.mockup-code-preview {
  margin-top: 0.75rem;
  padding: 1rem;
  border-radius: 8px;
  background: var(--bg-code);
  color: var(--code-text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.6;
  white-space: pre-wrap;
  border: 1px solid var(--border-color);
}

/* Callout Boxes */
.guide-callout {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  margin: 1.5rem 0;
  font-size: 0.92rem;
  line-height: 1.65;
}

.guide-callout.tip {
  background: rgba(16, 185, 129, 0.08);
  border-left: 4px solid #10b981;
  color: var(--text-main);
}

.guide-callout.info {
  background: rgba(99, 102, 241, 0.08);
  border-left: 4px solid #6366f1;
  color: var(--text-main);
}

.guide-callout.warning {
  background: rgba(245, 158, 11, 0.08);
  border-left: 4px solid #f59e0b;
  color: var(--text-main);
}

.guide-callout-icon {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}

/* AI Model Cards */
.model-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.2s ease;
}

.model-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.model-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.model-card-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
}

.model-card-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  margin-left: auto;
}

.model-card-desc {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.model-card-best {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light);
  border-top: 1px dashed var(--border-color);
  padding-top: 0.5rem;
}

/* Guide CTA */
.guide-cta-card {
  text-align: center;
  padding: 3rem 2rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(236, 72, 153, 0.08) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  margin-top: 4rem;
}

.guide-cta-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.guide-cta-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 1.75rem;
  line-height: 1.6;
}

.guide-cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  background: var(--primary-gradient);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  transition: all 0.2s ease;
}

.btn-primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

@media (max-width: 768px) {
  .guide-title {
    font-size: 2rem;
  }
  .guide-section-title {
    font-size: 1.4rem;
  }
  .guide-toc-nav {
    top: 60px;
  }
  .step-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
