/* ===================== AI Prompt Collection ===================== */
:root {
  --bg-0: #060b18;
  --bg-1: #0a1224;
  --bg-2: #0f1c33;
  --card: rgba(18, 30, 52, 0.72);
  --card-solid: #101d33;
  --border: rgba(96, 130, 190, 0.18);
  --border-strong: rgba(96, 150, 240, 0.45);
  --accent: #2f7bff;
  --accent-2: #4f9bff;
  --accent-grad: linear-gradient(135deg, #2f7bff, #4f9bff);
  --text: #eaf1ff;
  --muted: #8ea3c8;
  --muted-2: #6c81a6;
  --success: #22c55e;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 50% -10%, #16264a 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
  min-height: 100vh;
  line-height: 1.55;
}

.hidden { display: none !important; }

.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;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Eye watermark */
.eye-watermark {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='90' height='90'><text x='10' y='45' font-size='34'>%F0%9F%91%81</text></svg>");
  background-size: 90px 90px;
}

/* Brand logo */
.brand-logo {
  font-weight: 800;
  font-style: italic;
  font-size: 34px;
  letter-spacing: 0.5px;
  color: var(--accent-2);
  text-shadow: 0 2px 10px rgba(47, 123, 255, 0.4);
}
.brand-logo span {
  color: #d7e4ff;
  margin-left: 4px;
  -webkit-text-stroke: 0.5px rgba(47, 123, 255, 0.6);
}
.brand-logo.small { font-size: 24px; }

/* ===================== Password gate ===================== */
.gate {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.gate-card {
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 40px 34px;
  text-align: center;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.gate-eyebrow {
  margin: 22px 0 6px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 700;
}
.gate-title { margin: 4px 0 10px; font-size: 30px; font-weight: 800; }
.gate-sub { margin: 0 0 26px; color: var(--muted); font-size: 15px; }
.gate-form { display: grid; gap: 14px; }
.gate-error { margin: 4px 0 0; color: #ff8a8a; font-size: 13px; min-height: 16px; }

input[type="password"],
input[type="text"],
input[type="search"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(6, 12, 26, 0.7);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px rgba(47, 123, 255, 0.18);
}
input::placeholder { color: var(--muted-2); }

/* Buttons */
.btn-primary {
  border: none;
  cursor: pointer;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: var(--accent-grad);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.4px;
  transition: transform 0.12s, box-shadow 0.15s, filter 0.15s;
  box-shadow: 0 10px 24px rgba(47, 123, 255, 0.35);
}
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary.wide { width: 100%; }

.btn-ghost {
  cursor: pointer;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  transition: background 0.15s, border-color 0.15s;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: var(--border-strong); }

/* ===================== App shell ===================== */
.app { position: relative; z-index: 1; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(6, 11, 24, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

/* Hero */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 46px 0 26px;
  flex-wrap: wrap;
}
.hero-eyebrow {
  margin: 0 0 6px;
  color: var(--accent-2);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 12px;
}
.hero h1 { margin: 0 0 10px; font-size: clamp(30px, 5vw, 46px); font-weight: 800; }
.hero-sub { margin: 0; color: var(--muted); font-size: 16px; max-width: 560px; }
.hero-badge {
  align-self: flex-start;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(47, 123, 255, 0.12);
  color: var(--accent-2);
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 13px;
  white-space: nowrap;
}

/* Step navigation */
.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 10px 0 30px;
}
.step-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
}
.step-tab:hover { transform: translateY(-1px); }
.step-tab.active {
  border-color: var(--border-strong);
  background: linear-gradient(135deg, rgba(47,123,255,0.16), rgba(47,123,255,0.05));
  box-shadow: 0 12px 30px rgba(47, 123, 255, 0.18);
}
.step-num {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-grad);
  color: #fff;
  font-weight: 800;
}
.step-tab:not(.active) .step-num { background: rgba(255,255,255,0.08); color: var(--muted); }

/* Step intro */
.step-intro { color: var(--muted); font-size: 15px; margin: 0 0 22px; }
.step-intro strong { color: var(--text); }

/* Filter box */
.filter-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 22px;
}
.filter-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 700;
  margin-bottom: 10px;
}
.filter-label, .field-label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0;
  font-weight: 600;
}
.filter-hint { color: var(--muted); font-weight: 600; margin: 20px 0 12px; }

.category-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.cat-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(6, 12, 26, 0.5);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
}
.cat-chip:hover { transform: translateY(-1px); border-color: var(--border-strong); }
.cat-chip.active {
  border-color: var(--border-strong);
  background: linear-gradient(135deg, rgba(47,123,255,0.18), rgba(47,123,255,0.05));
}
.cat-icon {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.05);
  font-size: 20px;
}
.cat-text { display: flex; flex-direction: column; }
.cat-name { font-weight: 700; font-size: 14px; }
.cat-count { font-size: 12px; color: var(--muted); }

/* Result bar */
.result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 18px;
  flex-wrap: wrap;
}
.result-bar strong { color: var(--accent-2); font-size: 20px; }
.result-hint { color: var(--muted); font-size: 14px; }

/* Prompt grid */
.prompt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.prompt-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  transition: border-color 0.15s, transform 0.12s;
}
.prompt-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.card-top { display: flex; align-items: center; justify-content: space-between; }
.card-cat {
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-2);
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(47, 123, 255, 0.1);
}
.card-num { font-weight: 800; color: var(--muted-2); font-size: 14px; }
.card-title { margin: 0; font-size: 19px; font-weight: 800; }
.card-prompt {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-prompt.expanded {
  -webkit-line-clamp: unset;
  overflow: visible;
  color: #d4e0f7;
}
.copy-btn {
  margin-top: auto;
  border: none;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent-grad);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.5px;
  transition: filter 0.15s, transform 0.12s;
}
.copy-btn:hover { filter: brightness(1.06); }
.copy-btn.copied { background: linear-gradient(135deg, #16a34a, #22c55e); }
.card-tools { display: flex; justify-content: flex-start; }
.toggle-full {
  background: none;
  border: none;
  color: var(--accent-2);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 2px 0;
}
.toggle-full:hover { text-decoration: underline; }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
}

/* Step 1 footer */
.step1-footer {
  margin-top: 30px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  text-align: center;
}
.footer-status { color: var(--muted); font-size: 14px; margin: 0 0 14px; }

/* Step 2 */
.master-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 20px;
}
.master-card h2 { margin: 6px 0 12px; font-size: 26px; font-weight: 800; }
.how-to {
  list-style: none;
  padding: 0;
  margin: 20px 0 24px;
  display: grid;
  gap: 12px;
}
.how-to li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(6, 12, 26, 0.5);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 15px;
}
.how-num {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-grad);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}
.master-tools { margin-top: 22px; }
.master-full {
  display: none;
  margin: 14px 0 0;
  padding: 18px;
  border-radius: var(--radius-sm);
  background: rgba(4, 9, 20, 0.85);
  border: 1px solid var(--border);
  color: #c6d5f0;
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  max-height: 340px;
  overflow-y: auto;
}
.master-full.open { display: block; }

#backToStep1 { margin-top: 4px; }

/* Footer */
.site-footer {
  margin-top: 50px;
  padding: 26px 0;
  border-top: 1px solid var(--border);
  color: var(--muted-2);
  font-size: 13px;
  text-align: center;
}

/* Responsive */
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; }
  .hero { padding: 30px 0 18px; }
  .prompt-grid { grid-template-columns: 1fr; }
  .category-list { grid-template-columns: 1fr; }
  .brand-logo { font-size: 28px; }
}
