/* gptimage25prompts.com — site styles */
:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --ink: #1c1917;
  --muted: #6b6560;
  --line: #e8e5e1;
  --soft: #f4f2ef;
  --accent: #5b21b6;
  --accent-dark: #4c1d95;
  --accent-soft: #f3efff;
  --radius: 14px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { vertical-align: middle; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 249, 247, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 700; letter-spacing: -.01em; font-size: 1.02rem; }
.brand:hover { text-decoration: none; }
.brand svg { color: var(--accent); flex: none; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav a { color: var(--muted); font-size: .93rem; font-weight: 500; }
.nav a:hover { color: var(--ink); text-decoration: none; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 36px; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 18px; max-width: 16em; }
.lede { font-size: 1.13rem; color: var(--muted); max-width: 46rem; margin: 0 0 26px; }
.hero-note { font-size: .88rem; color: var(--muted); margin: 14px 0 0; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 0 0 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s, transform .1s;
}
.btn:hover { text-decoration: none; border-color: #d6d2cd; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); border-color: transparent; }
.btn-lg { padding: 14px 26px; font-size: 1.02rem; }

/* ---------- sections ---------- */
.section { margin: 52px auto; }
.section h2 { font-size: 1.5rem; letter-spacing: -.02em; margin: 0 0 18px; }
.section-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section-head-row h2 { margin-bottom: 18px; }
.text-link { font-weight: 600; font-size: .95rem; }
.more-link { margin-top: 18px; }

.page-head { padding: 44px 0 8px; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); letter-spacing: -.025em; line-height: 1.12; margin: 10px 0 14px; }
.crumbs { font-size: .85rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { margin: 0 2px; }

/* ---------- category grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.cat-card {
  display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.cat-card:hover { text-decoration: none; border-color: #cfc9f0; box-shadow: 0 6px 20px rgba(28, 25, 23, .06); }
.cat-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.cat-card p { margin: 0 0 14px; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.cat-count { font-size: .82rem; font-weight: 700; color: var(--accent); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .95rem;
  margin-bottom: 10px;
}
.step h3 { margin: 0 0 6px; font-size: 1.02rem; }
.step p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------- prompt cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.prompt-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px;
}
.pc-top { margin-bottom: 12px; }
.badge {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}
.badge:hover { text-decoration: none; background: #e9e2ff; }
.pc-top h3 { margin: 9px 0 0; font-size: 1.06rem; letter-spacing: -.01em; }
.prompt-text {
  margin: 0 0 12px; padding: 12px 14px;
  background: var(--soft); border-radius: 10px;
  font-size: .93rem; line-height: 1.62; color: #292524;
}
.pc-why { margin: 0 0 14px; font-size: .86rem; color: var(--muted); line-height: 1.55; }
.pc-why strong { color: var(--ink); font-weight: 600; }
.pc-actions { margin-top: auto; }
.copy-btn {
  padding: 8px 16px; border-radius: 10px;
  border: 1px solid var(--accent); background: transparent; color: var(--accent);
  font-weight: 600; font-size: .88rem; cursor: pointer;
  transition: background .15s, color .15s;
}
.copy-btn:hover { background: var(--accent-soft); }
.copy-btn.copied { background: var(--accent); color: #fff; }
.copy-btn.copy-fail { border-color: #b45309; color: #b45309; }

/* ---------- library controls ---------- */
.library-controls { margin-bottom: 26px; }
#prompt-search {
  width: 100%; padding: 13px 16px; font-size: 1rem;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink);
}
#prompt-search:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.chip {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--muted); font-size: .86rem; font-weight: 600; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.chip:hover { border-color: #cfc9f0; color: var(--accent); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.count { font-size: .86rem; color: var(--muted); margin: 10px 0 0; }
.no-results { margin: 26px 0; color: var(--muted); }

/* ---------- pills ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.pill {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font-size: .88rem; font-weight: 600;
}
.pill:hover { text-decoration: none; border-color: #cfc9f0; color: var(--accent); }
.also-browse { margin-top: 52px; }

/* ---------- promo (two-col) ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.promo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.promo h2 { margin-top: 0; }
.promo p { color: var(--muted); margin-bottom: 18px; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0; }
.faq-item summary { padding: 15px 18px; cursor: pointer; font-weight: 600; font-size: .98rem; }
.faq-item summary:hover { color: var(--accent); }
.faq-a { padding: 0 18px 16px; color: var(--muted); font-size: .94rem; line-height: 1.65; }

/* ---------- prose ---------- */
.prose { max-width: 780px; margin-left: auto; margin-right: auto; }
.prose p { line-height: 1.72; }
.prose h2 { font-size: 1.38rem; margin: 2.3rem 0 .9rem; letter-spacing: -.015em; }
.prose h3 { font-size: 1.12rem; margin: 1.8rem 0 .6rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: .45rem 0; line-height: 1.65; }
.guide-list li { margin: .55rem 0; }
code { background: var(--soft); padding: 2px 6px; border-radius: 6px; font-size: .88em; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
pre.code { background: #1c1917; color: #e7e5e4; padding: 18px; border-radius: 12px; overflow-x: auto; font-size: .84rem; line-height: 1.6; }
pre.code code { background: transparent; padding: 0; color: inherit; }
.source-note { font-size: .84rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 34px; }
.section-narrow { margin-top: 44px; }
.example-box { background: var(--soft); border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; padding: 16px 20px; margin: 16px 0; }
.ex-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 8px 0 4px; }
.ex-text { margin: 0 0 8px; font-size: .95rem; }

/* ---------- tables ---------- */
table.cmp { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .92rem; }
table.cmp th, table.cmp td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
table.cmp th { background: var(--soft); font-weight: 700; }
table.cmp td { background: var(--surface); }

/* ---------- generator ---------- */
.generator { max-width: 780px; margin: 0 auto; }
.gen-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); font-size: .84rem; }
.field select, .field input[type="text"], .field textarea {
  width: 100%; padding: 11px 13px; font-size: .95rem; font-family: inherit;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink);
}
.field textarea { resize: vertical; }
.field select:focus, .field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gen-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.gen-output { margin-top: 22px; background: var(--surface); border: 1px solid #cfc9f0; border-radius: var(--radius); padding: 22px; }
.gen-output-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.gen-output-title { margin: 0; font-weight: 700; }
.gen-hint { font-size: .86rem; color: var(--muted); margin: 10px 0 0; }

/* ---------- footer ---------- */
.site-footer { margin-top: 80px; background: #1c1917; color: #a8a29e; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; padding: 44px 20px 30px; }
.footer-brand { color: #fff; font-weight: 700; margin: 0 0 10px; }
.footer-note { font-size: .87rem; line-height: 1.6; margin: 0; max-width: 30rem; }
.footer-h { color: #fff; font-weight: 600; font-size: .88rem; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .06em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 7px 0; }
.site-footer a { color: #a8a29e; font-size: .9rem; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid #292524; padding: 16px 20px 26px; }
.footer-bottom p { margin: 0; font-size: .82rem; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .hero { padding-top: 44px; }
  .nav { gap: 12px; }
  .nav a { font-size: .88rem; }
  table.cmp { display: block; overflow-x: auto; }
}
