/* ============================================
   AI Prompt Directory & Library — Stylesheet
   Clean, fast, high-converting. No frameworks.
   ============================================ */

:root {
  --bg: #f6fbf9;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #0d9488;
  --accent-dark: #0f766e;
  --accent-soft: rgba(13, 148, 136, 0.12);
  --accent2: #c4693d;
  --accent2-soft: rgba(196, 105, 61, 0.12);
  --border: rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --max-w: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav-links a:hover, .nav-links a.active { color: var(--accent); }

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: var(--accent-dark); transform: translateY(-1px); color: #fff !important; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: 0.3s;
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(13, 148, 136, 0.25);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); color: #fff; }

.btn-secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.hero-stat { text-align: center; }
.hero-stat .num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  display: block;
}
.hero-stat .label {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Search Bar ---------- */
.search-section { padding: 0 0 48px; }
.search-box {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}
.search-box input {
  width: 100%;
  padding: 18px 24px 18px 56px;
  border: 2px solid var(--border);
  border-radius: 100px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--card);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.search-box .search-icon {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head {
  text-align: center;
  margin-bottom: 40px;
}
.section-head .eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-head p { color: var(--muted); max-width: 560px; margin: 0 auto; }

/* ---------- Category Grid ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.category-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: all 0.25s;
  cursor: pointer;
  display: block;
  color: var(--text);
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  color: var(--text);
}
.category-card .cat-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.category-card:nth-child(2) .cat-icon { background: var(--accent2-soft); color: var(--accent2); }
.category-card:nth-child(3) .cat-icon { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.category-card:nth-child(4) .cat-icon { background: rgba(168, 85, 247, 0.12); color: #a855f7; }
.category-card:nth-child(5) .cat-icon { background: rgba(236, 72, 153, 0.12); color: #ec4899; }
.category-card:nth-child(6) .cat-icon { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }

.category-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.category-card p { font-size: 0.85rem; color: var(--muted); }

/* ---------- Prompt Cards ---------- */
.prompt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.prompt-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s;
}
.prompt-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.prompt-card-header {
  padding: 20px 20px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.prompt-card-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}
.prompt-badge {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  white-space: nowrap;
}
.prompt-badge.orange { background: var(--accent2-soft); color: var(--accent2); }
.prompt-badge.blue { background: rgba(59, 130, 246, 0.12); color: #2563eb; }
.prompt-badge.purple { background: rgba(168, 85, 247, 0.12); color: #9333ea; }

.prompt-card-body {
  padding: 0 20px;
  flex: 1;
}
.prompt-text {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #334155;
  font-family: 'SFMono-Regular', Consolas, monospace;
  white-space: pre-wrap;
  max-height: 140px;
  overflow: hidden;
  position: relative;
}
.prompt-text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(transparent, #f8fafc);
  pointer-events: none;
}

.prompt-card-footer {
  padding: 16px 20px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.prompt-meta { font-size: 0.78rem; color: var(--muted); }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.copy-btn:hover { background: var(--accent-dark); }
.copy-btn.copied { background: #16a34a; }

/* ---------- Tool Cards (Affiliate) ---------- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.tool-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s;
  position: relative;
}
.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.tool-card.featured {
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.tool-card .featured-tag {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tool-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.tool-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  flex-shrink: 0;
}
.tool-head h3 { font-size: 1.1rem; font-weight: 700; }
.tool-head .tool-cat { font-size: 0.78rem; color: var(--muted); }

.tool-desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 16px;
  flex: 1;
  line-height: 1.55;
}

.tool-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 0.85rem;
}
.stars { color: #f59e0b; letter-spacing: 1px; }
.rating-num { font-weight: 700; }
.rating-count { color: var(--muted); font-size: 0.8rem; }

.tool-cta {
  display: flex;
  gap: 10px;
}
.tool-cta .btn { flex: 1; justify-content: center; padding: 10px 16px; font-size: 0.9rem; }
.btn-affiliate {
  background: var(--accent2);
  color: #fff;
}
.btn-affiliate:hover { background: #a8552e; color: #fff; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Filter Tabs ---------- */
.filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}
.filter-tab {
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.filter-tab:hover { border-color: var(--accent); color: var(--accent); }
.filter-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ---------- Guide / Article Cards ---------- */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.guide-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s;
  display: block;
  color: var(--text);
}
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: var(--text); }
.guide-thumb {
  height: 160px;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent2-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.guide-card:nth-child(2) .guide-thumb { background: linear-gradient(135deg, rgba(59,130,246,.12), rgba(168,85,247,.12)); color: #3b82f6; }
.guide-card:nth-child(3) .guide-thumb { background: linear-gradient(135deg, rgba(245,158,11,.12), rgba(236,72,153,.12)); color: #f59e0b; }
.guide-body { padding: 20px; }
.guide-body .cat-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 8px;
}
.guide-body h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.guide-body p { font-size: 0.88rem; color: var(--muted); line-height: 1.55; }
.guide-meta { margin-top: 14px; font-size: 0.78rem; color: var(--muted); display: flex; gap: 14px; }

/* ---------- Newsletter / CTA ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  border-radius: 20px;
  padding: 56px 40px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.cta-band::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 12px; position: relative; }
.cta-band p { opacity: 0.9; max-width: 520px; margin: 0 auto 28px; position: relative; }
.cta-band .btn-primary {
  background: #fff;
  color: var(--accent-dark);
  position: relative;
}
.cta-band .btn-primary:hover { background: #f0fdfa; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 56px 0 28px;
  margin-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand { color: #fff; font-weight: 700; font-size: 1.2rem; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.footer-brand .brand-mark { width: 32px; height: 32px; font-size: 0.9rem; }
.footer-desc { font-size: 0.9rem; line-height: 1.6; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 0.95rem; font-weight: 700; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #94a3b8; font-size: 0.9rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}
.footer-disclosure {
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.78rem;
  margin-bottom: 24px;
  line-height: 1.55;
}

/* ---------- Page Header (inner pages) ---------- */
.page-header {
  padding: 56px 0 40px;
  text-align: center;
}
.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.page-header p { color: var(--muted); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* ---------- Content Page (about/privacy) ---------- */
.content-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.content-page h1 { font-size: 2rem; font-weight: 800; margin-bottom: 24px; letter-spacing: -0.02em; }
.content-page h2 { font-size: 1.35rem; font-weight: 700; margin: 32px 0 12px; }
.content-page p { margin-bottom: 16px; color: #334155; line-height: 1.75; }
.content-page ul { margin: 0 0 16px 24px; color: #334155; }
.content-page li { margin-bottom: 8px; line-height: 1.65; }
.content-page a { color: var(--accent-dark); font-weight: 500; }

/* ---------- Ad Placeholder ---------- */
.ad-slot {
  background: repeating-linear-gradient(45deg, #f1f5f9, #f1f5f9 10px, #e2e8f0 10px, #e2e8f0 20px);
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 32px 0;
}
.ad-slot.leaderboard { height: 90px; }
.ad-slot.rectangle { height: 250px; max-width: 300px; margin: 32px auto; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
  z-index: 1000;
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- No Results ---------- */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  display: none;
}
.no-results.show { display: block; }
.no-results h3 { color: var(--text); margin-bottom: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--card);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }
  .hero { padding: 48px 0 40px; }
  .hero-stats { gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .cta-band { padding: 40px 24px; }
  .section { padding: 40px 0; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .prompt-grid, .tool-grid, .guide-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
