@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg-primary: #0a0a0b;
  --bg-secondary: #111113;
  --bg-card: #18181b;
  --bg-card-hover: #1f1f23;
  --border: #27272a;
  --border-hover: #3f3f46;
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent: #8b5cf6;
  --accent-hover: #7c3aed;
  --accent-light: rgba(139, 92, 246, 0.12);
  --green: #22c55e;
  --blue: #3b82f6;
  --orange: #f97316;
  --pink: #ec4899;
  --cyan: #06b6d4;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Category colors */
.cat-writing { --cat: #3b82f6; }
.cat-coding { --cat: #22c55e; }
.cat-marketing { --cat: #f97316; }
.cat-design { --cat: #ec4899; }
.cat-business { --cat: #8b5cf6; }

.cat-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 500;
  background: color-mix(in srgb, var(--cat) 12%, transparent);
  color: var(--cat); text-transform: capitalize;
}

.tier-badge {
  padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; text-transform: uppercase;
}
.tier-free { background: rgba(34, 197, 94, 0.12); color: #4ade80; }
.tier-pro { background: rgba(139, 92, 246, 0.12); color: #a78bfa; }

/* Nav */
.nav { border-bottom: 1px solid var(--border); padding: 16px 0; position: sticky; top: 0; z-index: 50; background: rgba(10, 10, 11, 0.9); backdrop-filter: blur(12px); }
.nav-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 20px; font-weight: 700; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { font-size: 14px; color: var(--text-secondary); transition: color 0.15s; }
.nav-links a:hover { color: var(--text-primary); }
.btn-primary { background: var(--accent); color: white; padding: 8px 20px; border-radius: 10px; font-weight: 500; font-size: 14px; border: none; cursor: pointer; transition: background 0.15s; }
.btn-primary:hover { background: var(--accent-hover); }

/* Hero */
.hero { text-align: center; padding: 80px 0 48px; }
.hero h1 { font-size: 56px; font-weight: 800; line-height: 1.1; margin-bottom: 16px; }
.hero h1 span { background: linear-gradient(135deg, var(--accent), var(--pink), var(--orange)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 18px; color: var(--text-secondary); max-width: 560px; margin: 0 auto 32px; }
.hero-stats { display: flex; justify-content: center; gap: 48px; margin-top: 32px; }
.hero-stats div { text-align: center; }
.hero-stats .num { font-size: 28px; font-weight: 700; }
.hero-stats .label { font-size: 13px; color: var(--text-muted); }

/* Search & Filter */
.search-bar { max-width: 800px; margin: 0 auto 32px; }
.search-input { width: 100%; padding: 14px 20px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 12px; color: var(--text-primary); font-size: 15px; outline: none; transition: border-color 0.15s; }
.search-input:focus { border-color: var(--accent); }
.search-input::placeholder { color: var(--text-muted); }

.filters { display: flex; justify-content: center; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.filter-btn { padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 500; border: 1px solid var(--border); background: transparent; color: var(--text-secondary); cursor: pointer; transition: all 0.15s; }
.filter-btn:hover { border-color: var(--border-hover); color: var(--text-primary); }
.filter-btn.active { background: var(--accent-light); border-color: var(--accent); color: var(--accent); }
.filter-btn .count { margin-left: 4px; font-size: 11px; opacity: 0.7; }

.tier-filters { display: flex; justify-content: center; gap: 8px; margin-bottom: 32px; }

/* Grid */
.prompts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; padding-bottom: 80px; }
.prompt-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 20px; cursor: pointer; transition: all 0.15s; }
.prompt-card:hover { background: var(--bg-card-hover); border-color: var(--border-hover); transform: translateY(-2px); }
.card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.card-title { font-size: 15px; font-weight: 600; flex: 1; }
.card-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tag { padding: 3px 8px; border-radius: 4px; font-size: 11px; background: var(--bg-secondary); color: var(--text-muted); }
.card-footer { display: flex; justify-content: space-between; align-items: center; }
.card-model { font-size: 12px; color: var(--text-muted); }
.card-upvote { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-muted); padding: 4px 8px; border-radius: 6px; border: none; background: transparent; cursor: pointer; transition: all 0.15s; }
.card-upvote:hover { background: var(--accent-light); color: var(--accent); }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; z-index: 100; backdrop-filter: blur(4px); }
.modal { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; max-width: 640px; width: 90%; max-height: 80vh; overflow-y: auto; padding: 28px; }
.modal-close { float: right; background: none; border: none; color: var(--text-muted); font-size: 20px; cursor: pointer; }
.modal-close:hover { color: var(--text-primary); }
.modal h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; padding-right: 32px; }
.modal-prompt { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 10px; padding: 16px; margin: 16px 0; font-size: 14px; line-height: 1.7; color: var(--text-secondary); white-space: pre-wrap; word-break: break-word; }
.copy-btn { padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 500; background: var(--accent); color: white; border: none; cursor: pointer; transition: background 0.15s; }
.copy-btn:hover { background: var(--accent-hover); }

/* Pricing Section */
.pricing { padding: 64px 0; border-top: 1px solid var(--border); }
.pricing h2 { text-align: center; font-size: 32px; font-weight: 700; margin-bottom: 8px; }
.pricing p { text-align: center; color: var(--text-secondary); margin-bottom: 40px; }
.pricing-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; max-width: 700px; margin: 0 auto; }
.pricing-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 28px; }
.pricing-card.featured { border-color: var(--accent); }
.pricing-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.pricing-card .price { font-size: 36px; font-weight: 800; margin: 8px 0; }
.pricing-card .price span { font-size: 14px; font-weight: 400; color: var(--text-muted); }
.pricing-card ul { list-style: none; margin: 20px 0; }
.pricing-card li { padding: 6px 0; font-size: 14px; color: var(--text-secondary); }
.pricing-card li::before { content: "\\2713 "; color: var(--green); margin-right: 8px; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 32px 0; text-align: center; color: var(--text-muted); font-size: 13px; }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 36px; }
  .hero-stats { gap: 24px; }
  .prompts-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 12px; }
}

/* Empty state */
.empty-state { text-align: center; padding: 80px 20px; color: var(--text-muted); }
.empty-state p { font-size: 15px; }

/* Prompt count */
.results-count { text-align: center; color: var(--text-muted); font-size: 13px; margin-bottom: 16px; }
