/* ===== SHARED STYLES — TheBestPrompt ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-bg: #FAFAF8;
  --color-surface: #FFFFFF;
  --color-text: #1A1A1A;
  --color-text-secondary: #6B6B6B;
  --color-text-tertiary: #9A9A9A;
  --color-accent: #2563EB;
  --color-accent-hover: #1D4ED8;
  --color-accent-light: #EFF6FF;
  --color-border: #E8E8E4;
  --color-border-light: #F0F0EC;
  --color-success: #16A34A;
  --color-gold: #D97706;
  --color-gold-light: #FFFBEB;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Newsreader', Georgia, serif;
  --max-width: 780px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-weight: 800;
  font-size: 18px;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.nav-logo span { color: var(--color-accent); }

.nav-links { display: flex; gap: 8px; align-items: center; }

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.nav-links a:hover { color: var(--color-text); background: var(--color-border-light); }

.nav-cta {
  background: var(--color-text) !important;
  color: white !important;
  padding: 8px 16px !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  transition: opacity 0.15s ease !important;
}

.nav-cta:hover { opacity: 0.85; background: var(--color-text) !important; }

/* ===== HERO ===== */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px 60px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: pulse 2s ease infinite;
}

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

.hero h1 {
  font-size: clamp(36px, 6vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
  color: var(--color-text);
}

.hero h1 em {
  font-style: normal;
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--color-accent);
  font-style: italic;
}

.hero-sub {
  font-size: 18px;
  color: var(--color-text-secondary);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--color-border);
}

.hero-stat { text-align: center; }

.hero-stat strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-stat span {
  font-size: 13px;
  color: var(--color-text-tertiary);
  font-weight: 500;
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px 0;
  font-size: 13px;
  color: var(--color-text-tertiary);
}

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

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

.breadcrumbs span { margin: 0 6px; }

/* ===== TABLE OF CONTENTS ===== */
.toc {
  max-width: var(--max-width);
  margin: 0 auto 60px;
  padding: 0 24px;
}

.toc-inner {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 32px;
}

.toc-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-tertiary);
  margin-bottom: 16px;
}

.toc-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.toc-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.toc-list a:hover { background: var(--color-accent-light); color: var(--color-accent); }

.toc-list .toc-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-tertiary);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ===== SECTION ===== */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 72px;
}

.section-header { margin-bottom: 32px; }

.section-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.section h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 10px;
}

.section h3 { margin-top: 8px; }

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

/* ===== CONTENT PROSE ===== */
.prose {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 48px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.prose h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin: 48px 0 16px;
}

.prose h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  margin: 32px 0 12px;
}

.prose p { margin-bottom: 16px; }

.prose ul, .prose ol {
  margin: 0 0 16px 24px;
}

.prose li { margin-bottom: 8px; }

.prose strong { color: var(--color-text); }

.prose a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: rgba(37, 99, 235, 0.3);
  text-underline-offset: 2px;
}

.prose a:hover { text-decoration-color: var(--color-accent); }

/* ===== PROMPT CARDS ===== */
.prompt-list { display: flex; flex-direction: column; gap: 16px; }

.prompt-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.2s ease;
  position: relative;
}

.prompt-card:hover { border-color: #D0D0CC; box-shadow: var(--shadow-sm); }

.prompt-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.prompt-number {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-tertiary);
  background: var(--color-border-light);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.prompt-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  flex: 1;
  line-height: 1.35;
}

.prompt-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 100px;
  flex-shrink: 0;
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.prompt-tag.tag-money { background: #ECFDF5; color: #059669; }
.prompt-tag.tag-growth { background: #FEF3C7; color: #D97706; }
.prompt-tag.tag-business { background: #EDE9FE; color: #7C3AED; }
.prompt-tag.tag-beginner { background: #F0F9FF; color: #0284C7; }
.prompt-tag.tag-writing { background: #FFF1F2; color: #E11D48; }
.prompt-tag.tag-marketing { background: #FFF7ED; color: #EA580C; }
.prompt-tag.tag-productivity { background: #F0FDF4; color: #16A34A; }
.prompt-tag.tag-coding { background: #F5F3FF; color: #7C3AED; }
.prompt-tag.tag-student { background: #ECFEFF; color: #0891B2; }
.prompt-tag.tag-content { background: #FDF4FF; color: #C026D3; }
.prompt-tag.tag-claude { background: #FEF3C7; color: #B45309; }

.prompt-body {
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 14px;
  white-space: pre-wrap;
  font-family: var(--font-sans);
  border: 1px solid var(--color-border-light);
}

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

.prompt-meta {
  font-size: 13px;
  color: var(--color-text-tertiary);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--color-text);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-sans);
}

.copy-btn:hover { opacity: 0.85; }
.copy-btn.copied { background: var(--color-success); }
.copy-btn svg { width: 14px; height: 14px; }

/* ===== LOCKED PROMPTS ===== */
.prompt-card.locked { overflow: hidden; }

.prompt-card.locked .prompt-body {
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
  position: relative;
}

.prompt-card.locked .prompt-footer { display: none; }

.locked-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.95) 60%, rgba(255,255,255,1) 100%);
  z-index: 2;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 24px;
}

.prompt-card.locked .locked-overlay { display: flex; }
.prompt-card.locked { position: relative; }

.locked-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-sans);
  text-decoration: none;
  transition: all 0.15s ease;
}

.locked-cta-btn:hover { background: var(--color-accent-hover); }
.locked-cta-btn svg { width: 16px; height: 16px; }

/* ===== MIDPAGE CTA ===== */
.midpage-cta {
  max-width: var(--max-width);
  margin: 0 auto 72px;
  padding: 0 24px;
}

.midpage-cta-inner {
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  border-radius: 16px;
  padding: 56px 48px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.midpage-cta-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.midpage-cta h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  position: relative;
}

.midpage-cta p {
  font-size: 16px;
  opacity: 0.7;
  margin-bottom: 28px;
  position: relative;
}

.midpage-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: white;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
  position: relative;
}

.midpage-cta-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }

/* ===== INTERNAL LINKS GRID ===== */
.related-pages {
  max-width: var(--max-width);
  margin: 0 auto 72px;
  padding: 0 24px;
}

.related-pages h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.related-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.related-card:hover { border-color: var(--color-accent); box-shadow: var(--shadow-sm); }

.related-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}

.related-card p {
  font-size: 13px;
  color: var(--color-text-tertiary);
  line-height: 1.5;
}

/* ===== FAQ ===== */
.faq {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 80px;
}

.faq h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}

.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: var(--color-text-tertiary);
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ===== BOTTOM CTA ===== */
.bottom-cta {
  max-width: var(--max-width);
  margin: 0 auto 80px;
  padding: 0 24px;
}

.bottom-cta-inner {
  border: 2px solid var(--color-border);
  border-radius: 16px;
  padding: 48px;
  text-align: center;
  background: var(--color-surface);
}

.bottom-cta h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.bottom-cta p {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

.bottom-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--color-accent);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}

.bottom-cta-btn:hover { background: var(--color-accent-hover); transform: translateY(-1px); }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 40px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left {
  font-size: 13px;
  color: var(--color-text-tertiary);
}

.footer-left a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: 600;
}

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

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

.footer-links a {
  font-size: 13px;
  color: var(--color-text-tertiary);
  text-decoration: none;
  font-weight: 500;
}

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

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--color-text);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--color-accent);
  z-index: 200;
  transition: width 0.1s linear;
  width: 0%;
}

/* ===== MOBILE ===== */
@media (max-width: 640px) {
  .hero { padding: 56px 20px 48px; }
  .hero h1 { font-size: 32px; }
  .hero-sub { font-size: 16px; }
  .hero-stats { gap: 24px; }
  .hero-stat strong { font-size: 20px; }
  .toc-list { grid-template-columns: 1fr; }
  .toc-inner { padding: 20px; }
  .section h2 { font-size: 24px; }
  .prompt-card { padding: 18px; }
  .prompt-card-header { flex-wrap: wrap; }
  .prompt-tag { order: -1; }
  .midpage-cta-inner { padding: 40px 24px; }
  .midpage-cta h2 { font-size: 22px; }
  .bottom-cta-inner { padding: 36px 24px; }
  .bottom-cta h2 { font-size: 22px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
  .related-grid { grid-template-columns: 1fr; }
  .prose h2 { font-size: 22px; }
}