/* FONTS: Poppins for headings, Inter for body */

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
  --void: #08060f;
  --void-deep: #050311;
  --surface: #110e1d;
  --surface-raised: #1a1528;
  --surface-glass: rgba(18, 14, 35, 0.65);
  --border-subtle: rgba(139, 92, 246, 0.12);
  --border-glow: rgba(167, 119, 255, 0.3);

  --purple: #a855f7;
  --purple-light: #c084fc;
  --purple-dark: #7c3aed;
  --purple-glow: rgba(168, 85, 247, 0.4);
  --purple-deep: #6d28d9;

  --gold: #d4a843;
  --gold-light: #f0d68a;
  --gold-dim: rgba(212, 168, 67, 0.15);

  --text: #e8e4f0;
  --text-secondary: #a9a3b8;
  --text-muted: #6b6580;

  --success: #34d399;
  --success-glow: rgba(52, 211, 153, 0.4);

  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Fira Code', monospace;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 30px rgba(168, 85, 247, 0.15);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--purple-dark) var(--void);
}

body {
  font-family: var(--font-body);
  background: var(--void);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb {
  background: var(--purple-dark);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--purple); }

::selection {
  background: rgba(168, 85, 247, 0.35);
  color: var(--text);
}

/* ========================================
   NOISE TEXTURE OVERLAY
   ======================================== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ========================================
   AMBIENT BACKGROUND ORBS
   ======================================== */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--purple-dark), transparent 70%);
  top: -10%;
  right: -5%;
  animation-duration: 25s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(109, 40, 217, 0.6), transparent 70%);
  bottom: 10%;
  left: -8%;
  animation-duration: 30s;
  animation-delay: -10s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(212, 168, 67, 0.2), transparent 70%);
  top: 40%;
  left: 50%;
  animation-duration: 35s;
  animation-delay: -5s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(40px, -30px) scale(1.1); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(30px, 40px) scale(1.05); }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 100px 24px 50px;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
}

.sigil {
  font-size: 32px;
  color: var(--gold);
  margin-bottom: 24px;
  opacity: 0.8;
  animation: sigilPulse 4s ease-in-out infinite;
}

@keyframes sigilPulse {
  0%, 100% { opacity: 0.5; text-shadow: 0 0 10px rgba(212, 168, 67, 0.3); }
  50% { opacity: 1; text-shadow: 0 0 30px rgba(212, 168, 67, 0.6), 0 0 60px rgba(212, 168, 67, 0.2); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
  animation: titleReveal 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero h1 .magic {
  background: linear-gradient(135deg, var(--purple-light), var(--gold-light), var(--purple-light));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 5s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

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

.tagline {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 14px;
  animation: fadeUp 0.8s 0.2s both;
}

.subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
  animation: fadeUp 0.8s 0.35s both;
}

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

/* Hero prompt count */
.hero-count {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.4vw, 0.95rem);
  color: var(--text-muted);
  margin-top: 18px;
  animation: fadeUp 0.8s 0.45s both;
}

.hero-count span {
  color: var(--purple-light);
  font-weight: 700;
}

/* Hero CTA button */
.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  padding: 14px 32px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #fff;
  background: linear-gradient(135deg, var(--purple-dark), var(--purple));
  border: none;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.8s 0.55s both;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 24px var(--purple-glow);
  background: linear-gradient(135deg, var(--purple), #9333ea);
}

/* ========================================
   CONTROLS — SEARCH & FILTERS
   ======================================== */
.controls {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 24px 10px;
}

.search-container {
  position: relative;
  margin-bottom: 24px;
  animation: fadeUp 0.8s 0.55s both;
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
  pointer-events: none;
  transition: color var(--transition);
}

#search {
  width: 100%;
  padding: 16px 20px 16px 50px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  outline: none;
  transition: all var(--transition);
}

#search::placeholder {
  color: var(--text-muted);
  font-style: italic;
}

#search:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15), var(--shadow-glow);
  background: var(--surface-raised);
}

#search:focus ~ .search-icon {
  color: var(--purple-light);
}

/* Categories */
.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
  animation: fadeUp 0.8s 0.6s both;
}

.category-pill {
  padding: 8px 18px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
  white-space: nowrap;
}

.category-pill:hover {
  color: var(--text);
  border-color: var(--border-glow);
  background: var(--surface-raised);
  transform: translateY(-1px);
}

.category-pill.active {
  color: #fff;
  background: linear-gradient(135deg, var(--purple-dark), var(--purple));
  border-color: var(--purple);
  box-shadow: 0 0 16px var(--purple-glow);
}

/* Prompt counter */
.prompt-count {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  animation: fadeUp 0.8s 0.65s both;
}

.prompt-count span {
  color: var(--purple-light);
  font-weight: 600;
}

/* ========================================
   PROMPTS GRID
   ======================================== */
.prompts-grid {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

/* ========================================
   PROMPT CARD
   ======================================== */
.prompt-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition);
  animation: cardEnter 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.prompt-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple), var(--gold), var(--purple), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

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

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

.prompt-card:hover .card-arrow {
  opacity: 1;
  transform: translateX(0);
}

@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Card header */
.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  flex: 1;
}

.card-category {
  flex-shrink: 0;
  padding: 4px 12px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid rgba(212, 168, 67, 0.2);
  border-radius: 100px;
}

/* Description */
.card-description {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

/* Card footer */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(139, 92, 246, 0.08);
}

.card-cta {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--purple-light);
  letter-spacing: 0.02em;
}

.card-arrow {
  color: var(--purple-light);
  opacity: 0;
  transform: translateX(-6px);
  transition: all var(--transition);
}

/* ========================================
   COPY BUTTON (used on detail page)
   ======================================== */
.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #fff;
  background: linear-gradient(135deg, var(--purple-dark), var(--purple));
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.copy-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--purple), #9333ea);
  opacity: 0;
  transition: opacity var(--transition);
}

.copy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--purple-glow);
}

.copy-btn:hover::before {
  opacity: 1;
}

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

.copy-btn .btn-text {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.copy-btn.copied {
  background: linear-gradient(135deg, #059669, var(--success));
  box-shadow: 0 4px 20px var(--success-glow);
}

.copy-btn.copied .btn-text .icon {
  animation: checkPop 0.3s ease-out;
}

@keyframes checkPop {
  0% { transform: scale(0); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* ========================================
   DETAIL PAGE
   ======================================== */
.detail-page {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* Top bar */
.detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 20px;
  animation: fadeUp 0.5s both;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition);
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid transparent;
}

.back-link:hover {
  color: var(--purple-light);
  background: var(--surface);
  border-color: var(--border-subtle);
}

.detail-prompt-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--surface);
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border-subtle);
}

/* Hero banner */
.detail-hero {
  position: relative;
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 48px 40px 44px;
  margin-bottom: 24px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: cardEnter 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.detail-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple-dark), var(--purple), var(--gold), var(--purple), var(--purple-dark));
}

.detail-hero-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.12), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.detail-category {
  display: inline-block;
  padding: 5px 14px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid rgba(212, 168, 67, 0.2);
  border-radius: 100px;
  margin-bottom: 18px;
}

.detail-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 16px;
}

.detail-description {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 620px;
}

/* Sections */
.detail-section {
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: cardEnter 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.detail-section-method {
  animation-delay: 0.1s;
}

.detail-section-prompt {
  animation-delay: 0.15s;
}

.detail-section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-section-label h2 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--purple-light);
  flex: 1;
}

.detail-section-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: 10px;
  color: var(--purple-light);
  flex-shrink: 0;
}

/* Method content */
.detail-method-content {
  padding: 20px 22px;
  background: rgba(5, 3, 17, 0.35);
  border: 1px solid rgba(139, 92, 246, 0.06);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--purple-dark);
}

.detail-method-content p {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* Inline copy button */
.detail-copy-inline {
  flex-shrink: 0;
  padding: 7px 16px;
  font-size: 0.75rem;
  border-radius: 100px;
}

/* Prompt wrapper */
.detail-prompt-wrapper {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.detail-prompt-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--purple), var(--gold), var(--purple));
  z-index: 1;
}

.detail-prompt {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--text-secondary);
  background: rgba(5, 3, 17, 0.5);
  border: 1px solid rgba(139, 92, 246, 0.06);
  border-radius: var(--radius-sm);
  padding: 24px 24px 24px 20px;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--purple-dark) transparent;
}

.detail-prompt::-webkit-scrollbar { width: 5px; }
.detail-prompt::-webkit-scrollbar-track { background: transparent; }
.detail-prompt::-webkit-scrollbar-thumb {
  background: var(--purple-dark);
  border-radius: 3px;
}

/* Action buttons container */
.detail-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  animation: cardEnter 0.6s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Big CTA copy button */
.detail-copy-cta {
  flex: 1;
  padding: 18px;
  font-size: 1rem;
  border-radius: var(--radius);
  margin-bottom: 0;
}

/* Share / Copy Link button */
.detail-share-btn {
  padding: 18px 24px;
  font-size: 0.9rem;
  border-radius: var(--radius);
  background: transparent;
  border: 1px solid var(--purple);
  color: var(--purple-light);
}

.detail-share-btn::before {
  display: none;
}

.detail-share-btn:hover {
  background: rgba(168, 85, 247, 0.1);
  border-color: var(--purple-light);
}

/* Prompt navigation */
.detail-nav-footer {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  animation: fadeUp 0.6s 0.25s both;
}

.detail-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  transition: all var(--transition);
  max-width: 48%;
}

.detail-nav-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-nav-btn:hover {
  color: var(--purple-light);
  border-color: var(--border-glow);
  background: var(--surface-raised);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.detail-nav-next {
  margin-left: auto;
  text-align: right;
}

.detail-error {
  text-align: center;
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 60px 24px;
}

/* ========================================
   EMPTY STATE
   ======================================== */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
}

.empty-state .empty-sigil {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-state p {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
  position: relative;
  z-index: 1;
  padding: 0 24px;
  margin-top: 40px;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 50px 0 36px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}

.footer-brand {
  flex: 1;
  max-width: 340px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-sigil {
  color: var(--gold);
  font-size: 20px;
  opacity: 0.6;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.footer-links {
  display: flex;
  gap: 56px;
}

.footer-col {
  min-width: 0;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--purple-light);
  margin-bottom: 12px;
}

.footer-note {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Newsletter form */
.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  max-width: 360px;
}

.newsletter-input {
  flex: 1;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  outline: none;
  transition: var(--transition);
  min-width: 0;
}

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

.newsletter-input:focus {
  border-color: var(--border-glow);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.15);
}

.newsletter-btn {
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: var(--purple);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.newsletter-btn:hover {
  background: var(--purple-light);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

/* Ad container */
.ad-container {
  width: 100%;
  max-width: 728px;
  margin: 32px auto;
  min-height: 90px;
  text-align: center;
}

.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  transition: var(--transition);
}

.footer-email:hover {
  color: var(--purple-light);
  border-color: var(--border-glow);
  background: var(--surface-raised);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.1);
}

.footer-email svg {
  opacity: 0.6;
  flex-shrink: 0;
}

.footer-email:hover svg {
  opacity: 1;
}

.footer-bottom {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 0 32px;
  border-top: 1px solid rgba(139, 92, 246, 0.08);
}

.copyright {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
  text-align: center;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 840px) {
  .prompts-grid {
    grid-template-columns: 1fr;
    padding: 20px 16px 60px;
  }

  .hero {
    padding: 80px 20px 40px;
  }

  .controls {
    padding: 16px 16px 8px;
  }

  .detail-hero {
    padding: 32px 24px 28px;
  }

  .detail-section {
    padding: 22px 20px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 32px;
    padding: 40px 0 28px;
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-links {
    flex-direction: column;
    gap: 28px;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.7rem;
  }

  .tagline {
    font-size: 0.85rem;
  }

  .prompt-card {
    padding: 20px;
  }

  .card-title {
    font-size: 1.05rem;
  }

  .categories {
    gap: 6px;
  }

  .category-pill {
    padding: 6px 14px;
    font-size: 0.72rem;
  }

  .detail-section-label {
    flex-wrap: wrap;
  }

  .detail-copy-inline {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
  }

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

  .detail-nav-footer {
    flex-direction: column;
  }

  .detail-nav-btn {
    max-width: 100%;
  }
}

/* ========================================
   STAGGER ANIMATION UTILITY
   ======================================== */
.prompt-card:nth-child(1) { animation-delay: 0.05s; }
.prompt-card:nth-child(2) { animation-delay: 0.08s; }
.prompt-card:nth-child(3) { animation-delay: 0.11s; }
.prompt-card:nth-child(4) { animation-delay: 0.14s; }
.prompt-card:nth-child(5) { animation-delay: 0.17s; }
.prompt-card:nth-child(6) { animation-delay: 0.2s; }
.prompt-card:nth-child(7) { animation-delay: 0.23s; }
.prompt-card:nth-child(8) { animation-delay: 0.26s; }
.prompt-card:nth-child(9) { animation-delay: 0.29s; }
.prompt-card:nth-child(10) { animation-delay: 0.32s; }
.prompt-card:nth-child(11) { animation-delay: 0.35s; }
.prompt-card:nth-child(12) { animation-delay: 0.38s; }

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 100;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--purple-dark);
  border: 1px solid var(--border-glow);
  border-radius: 50%;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

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

.back-to-top:hover {
  background: var(--purple);
  box-shadow: 0 4px 24px var(--purple-glow);
  transform: translateY(-2px);
}

/* ========================================
   BREADCRUMB NAVIGATION
   ======================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  margin: 0 auto 8px;
  max-width: 840px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

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

.breadcrumb a:hover {
  color: var(--purple-light);
}

.breadcrumb-sep {
  opacity: 0.4;
}

.breadcrumb-current {
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 300px;
}

/* ========================================
   RELATED PROMPTS
   ======================================== */
.related-prompts {
  max-width: 840px;
  margin: 48px auto 0;
  padding: 0 24px;
}

.related-heading {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 640px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

.related-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all var(--transition);
}

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

.related-card-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.related-card-desc {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.related-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--purple-light);
}

/* ========================================
   SECTION HEADING (Homepage)
   ======================================== */
.section-heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin: 0 auto 8px;
  padding: 0 24px;
  max-width: 1200px;
}

/* ========================================
   SR-ONLY (screen-reader-only utility)
   ======================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
   NOSCRIPT PROMPTS (fallback for crawlers)
   ======================================== */
.noscript-prompts {
  padding: 24px;
  max-width: 840px;
  margin: 0 auto;
}

.noscript-prompts h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 16px;
}

.noscript-prompts ul {
  list-style: none;
  padding: 0;
  columns: 2;
  column-gap: 24px;
}

@media (max-width: 640px) {
  .noscript-prompts ul {
    columns: 1;
  }
}

.noscript-prompts li {
  margin-bottom: 8px;
  break-inside: avoid;
}

.noscript-prompts a {
  color: var(--purple-light);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.noscript-prompts a:hover {
  color: var(--text);
}

/* ========================================
   FOOTER LEGAL LINKS
   ======================================== */
.footer-legal-links {
  text-align: center;
  padding: 14px 0 0;
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 0.78rem;
}

.footer-legal-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-legal-links a:hover {
  color: var(--purple-light);
}

.footer-legal-links .divider {
  color: rgba(107, 101, 128, 0.4);
  margin: 0 10px;
}

/* ========================================
   CONTENT PAGE (About, Privacy, Terms, Contact)
   ======================================== */
.content-page {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 24px 80px;
}

.content-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.2;
}

.content-page .last-updated {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.content-page h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 40px;
  margin-bottom: 14px;
}

.content-page h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 28px;
  margin-bottom: 10px;
}

.content-page p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.content-page ul,
.content-page ol {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
  padding-left: 24px;
}

.content-page li {
  margin-bottom: 8px;
}

.content-page a {
  color: var(--purple-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.content-page a:hover {
  color: var(--text);
}

.content-page strong {
  color: var(--text);
  font-weight: 600;
}

.content-page .contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  font-size: 1.05rem;
  text-decoration: none;
  margin: 8px 0 24px;
  transition: all var(--transition);
}

.content-page .contact-email:hover {
  border-color: var(--border-glow);
  background: var(--surface-raised);
  box-shadow: var(--shadow-glow);
}

/* ========================================
   BLOG GRID & CARDS
   ======================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
}

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

.blog-card-meta {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  gap: 14px;
}

.blog-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.35;
}

.blog-card-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.blog-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--purple-light);
}

@media (max-width: 480px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   PRO TIPS SECTION (detail pages)
   ======================================== */
.tips-section {
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: cardEnter 0.6s 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tips-section .detail-section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tips-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  border-bottom: 1px solid rgba(139, 92, 246, 0.06);
}

.tips-list li:last-child {
  border-bottom: none;
}

.tips-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--gold);
  font-size: 0.75rem;
  opacity: 0.7;
}

/* ========================================
   DETAIL AUTHOR ATTRIBUTION
   ======================================== */
.detail-author {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 14px;
}

/* ========================================
   BLOG ARTICLE PAGE
   ======================================== */
.content-page .article-hero {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.content-page .article-meta {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.content-page .article-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--purple-dark), var(--purple));
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition);
}

.content-page .article-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 24px var(--purple-glow);
  color: #fff;
}

@media (max-width: 840px) {
  .content-page {
    padding: 60px 16px 60px;
  }

  .tips-section {
    padding: 22px 20px;
  }
}
