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

:root {
  --bg: #0d0d14;
  --bg2: #13131f;
  --bg3: #1a1a2e;
  --card-bg: rgba(255,255,255,0.04);
  --card-border: rgba(255,255,255,0.08);
  --card-border-hover: rgba(124,58,237,0.5);
  --primary: #7c3aed;
  --primary-light: #9d5cf6;
  --primary-dim: rgba(124,58,237,0.15);
  --secondary: #06b6d4;
  --gold: #f59e0b;
  --green: #10b981;
  --text: #f8fafc;
  --muted: #94a3b8;
  --code: #e2e8f0;
  --chatgpt: #10a37f;
  --claude: #c4956a;
  --gemini: #4285f4;
  --midjourney: #f56565;
  --universal: #7c3aed;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 20px rgba(124,58,237,0.25);
  --transition: all 0.2s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.4); border-radius: 3px; }

/* ===== HEADER ===== */

/* Shared base: homepage (.header) and category pages (.site-header) */
.header,
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 20, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* Homepage header layout */
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo — new horizontal pill layout */
.header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon { font-size: 20px; line-height: 1; }
.logo-text { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.logo-name { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.logo-craft { color: #f8fafc; }
.logo-asia { color: #06b6d4; }
.logo-tagline { font-size: 10px; color: #475569; font-weight: 400; white-space: nowrap; }

/* Nav — centered */
.nav { flex: 1; display: flex; justify-content: center; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.15s;
  white-space: nowrap;
}
.nav-link:hover { color: #f1f5f9; background: rgba(255, 255, 255, 0.06); }
.nav-link.active { color: #f1f5f9; }
.nav-submit {
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: #a78bfa !important;
  margin-left: 8px;
}
.nav-submit:hover { background: rgba(124, 58, 237, 0.25) !important; border-color: rgba(124, 58, 237, 0.5); }

/* Header search — compact pill (right side) */
.header .header-search { position: relative; flex-shrink: 0; }
.header .header-search input {
  width: 200px;
  padding: 8px 14px 8px 36px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  font-size: 13px;
  color: #f1f5f9;
  outline: none;
  transition: all 0.2s;
  font-family: inherit;
}
.header .header-search input::placeholder { color: #475569; }
.header .header-search input:focus { width: 240px; border-color: rgba(124, 58, 237, 0.5); background: rgba(124, 58, 237, 0.08); }
.header-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  pointer-events: none;
  line-height: 1;
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
  margin-left: auto;
  line-height: 1;
}

/* Mobile dropdown */
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 12px 24px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  gap: 4px;
}
.mobile-menu a {
  display: block;
  padding: 10px 12px;
  font-size: 15px;
  color: #94a3b8;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.15s;
}
.mobile-menu a:hover { color: #f1f5f9; background: rgba(255, 255, 255, 0.06); }
.mobile-menu.open { display: flex; }

/* Homepage header responsive */
@media (max-width: 768px) {
  .header .nav { display: none; }
  .header .header-search { display: none; }
  .mobile-menu-btn { display: block; }
}
@media (max-width: 480px) {
  .header-inner { padding: 0 16px; gap: 12px; }
}

/* === Category pages (site-header — legacy structure) === */
.site-header { padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.header-left { display: flex; align-items: center; gap: 32px; }
.site-header .logo { display: flex; flex-direction: column; line-height: 1.1; white-space: nowrap; }
.logo-main { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em; }
.logo-sub { font-size: 0.625rem; color: var(--muted); letter-spacing: 0.04em; display: none; }
@media (min-width: 768px) { .logo-sub { display: block; } }
.header-nav { display: none; align-items: center; gap: 4px; }
@media (min-width: 768px) { .header-nav { display: flex; } }
.header-right { display: flex; align-items: center; gap: 12px; }
.site-header .header-search {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  width: 220px;
  transition: var(--transition);
}
@media (min-width: 1024px) { .site-header .header-search { display: flex; } }
.site-header .header-search input { background: none; border: none; outline: none; color: var(--text); font-size: 0.875rem; width: 100%; }
.site-header .header-search input::placeholder { color: var(--muted); }
.site-header .header-search svg { color: var(--muted); flex-shrink: 0; }

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 60px;
  text-align: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(124,58,237,0.15) 0%, rgba(6,182,212,0.08) 50%, transparent 70%);
  filter: blur(40px);
  animation: blobPulse 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes blobPulse {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.05); }
}

.hero-label {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a78bfa;
  background: rgba(124,58,237,0.2);
  border: 1px solid rgba(124,58,237,0.4);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.hero-search-wrap {
  max-width: 600px;
  margin: 0 auto 28px;
  position: relative;
}

.hero-search {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 16px 60px 16px 52px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}
.hero-search:focus { border-color: var(--primary); background: rgba(124,58,237,0.06); box-shadow: 0 0 0 3px rgba(124,58,237,0.12); }
.hero-search::placeholder { color: var(--muted); }

.hero-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.hero-search-clear {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  cursor: pointer;
  opacity: 0;
  transition: var(--transition);
}
.hero-search-clear.visible { opacity: 1; }
.hero-search-clear:hover { background: rgba(255,255,255,0.15); color: var(--text); }

.trust-badges {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 24px auto;
  max-width: 600px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #f1f5f9;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 8px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

/* ===== CATEGORY PILLS ===== */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 0 24px 48px;
  max-width: 900px;
  margin: 0 auto;
}

.cat-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  transition: var(--transition);
  cursor: pointer;
}
.cat-pill:hover, .cat-pill.active {
  color: var(--text);
  border-color: var(--primary);
  background: var(--primary-dim);
  transform: translateY(-1px);
}

/* ===== PROMPT OF THE DAY ===== */
.potd-section {
  padding: 0 24px 48px;
  max-width: 900px;
  margin: 0 auto;
}

.potd-card {
  background: linear-gradient(135deg, rgba(124,58,237,0.12) 0%, rgba(6,182,212,0.06) 100%);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.potd-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.potd-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }

.potd-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.potd-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.potd-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 16px; }

.prompt-text-display {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  line-height: 1.8;
  color: var(--code);
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 16px;
}

.prompt-var { color: var(--primary-light); font-weight: 600; }

.variable-fields { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }

.var-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.var-field label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-light);
}
.var-field input, .var-field textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.875rem;
  outline: none;
  transition: var(--transition);
  resize: vertical;
}
.var-field input:focus, .var-field textarea:focus { border-color: var(--primary); background: rgba(124,58,237,0.06); }

.copy-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-light); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(124,58,237,0.35); }

.btn-secondary {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--muted);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--text); background: var(--primary-dim); }

.btn-chatgpt { background: rgba(16,163,127,0.15); border: 1px solid rgba(16,163,127,0.3); color: #10a37f; }
.btn-chatgpt:hover { background: rgba(16,163,127,0.25); }

.btn-claude { background: rgba(196,149,106,0.15); border: 1px solid rgba(196,149,106,0.3); color: #c4956a; }
.btn-claude:hover { background: rgba(196,149,106,0.25); }

.btn-gemini { background: rgba(66,133,244,0.15); border: 1px solid rgba(66,133,244,0.3); color: #4285f4; }
.btn-gemini:hover { background: rgba(66,133,244,0.25); }

.btn.copied { background: rgba(16,185,129,0.2) !important; border-color: rgba(16,185,129,0.4) !important; color: var(--green) !important; }

/* ===== CONFETTI ===== */
.confetti-container { position: fixed; pointer-events: none; z-index: 9999; }
.confetti-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: confettiFly 0.6s ease-out forwards;
}
@keyframes confettiFly {
  0% { transform: translate(0,0) scale(1); opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}

/* ===== FILTER BAR ===== */
.filter-section {
  position: sticky;
  top: 64px;
  z-index: 90;
  background: rgba(13,13,20,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  padding: 12px 24px;
}

.filter-bar {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.filter-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.filter-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.filter-select {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.8125rem;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}
.filter-select:focus { border-color: var(--primary); }

.filter-btn {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--muted);
  transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active { border-color: var(--primary); color: var(--text); background: var(--primary-dim); }
.filter-btn.sea-active { border-color: var(--green); color: var(--green); background: rgba(16,185,129,0.1); }

.filter-divider { width: 1px; height: 24px; background: var(--card-border); margin: 0 4px; }

.results-count {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-left: auto;
  white-space: nowrap;
}

/* ===== PROMPT GRID ===== */
.prompts-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.prompt-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) { .prompt-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .prompt-grid { grid-template-columns: repeat(3, 1fr); } }

/* Inject ad slot between rows */
.ad-slot-grid {
  grid-column: 1 / -1;
  display: none;
  justify-content: center;
  padding: 12px 0;
}

.prompt-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
  position: relative;
}
.prompt-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124,58,237,0.4);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px rgba(124,58,237,0.15);
}

.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.card-badges { display: flex; flex-wrap: wrap; gap: 5px; flex: 1; }

.badge-cat {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.badge-model {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.badge-sea {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--green);
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.25);
  padding: 3px 9px;
  border-radius: 999px;
}

.stars { display: flex; gap: 2px; flex-shrink: 0; }
.star { font-size: 0.75rem; }
.star.filled { color: var(--gold); }
.star.empty { color: rgba(255,255,255,0.15); }

.card-title { font-size: 0.9375rem; font-weight: 600; line-height: 1.3; }

.card-preview {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }

.card-actions { display: flex; gap: 8px; margin-top: auto; }
.card-actions .btn { flex: 1; justify-content: center; padding: 8px 14px; font-size: 0.8125rem; }

/* ===== EXPANDED CARD ===== */
.prompt-card.expanded {
  grid-column: 1 / -1;
  background: rgba(255,255,255,0.05);
  border-color: rgba(124,58,237,0.35);
}

.card-expand-content { display: none; flex-direction: column; gap: 14px; }
.prompt-card.expanded .card-expand-content { display: flex; }
.prompt-card.expanded .card-preview { display: none; }

.expand-prompt-wrap {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.tips-box {
  background: rgba(245,158,11,0.07);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.8125rem;
  color: #fbbf24;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.related-title { font-size: 0.875rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.related-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 12px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.8125rem;
}
.related-card:hover { border-color: var(--primary); background: var(--primary-dim); }
.related-card-title { font-weight: 600; margin-bottom: 4px; }
.related-card-cat { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* ===== LOADING ===== */
.loading-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  flex-direction: column;
  gap: 16px;
}
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--card-border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 0.875rem; color: var(--muted); }

.empty-state {
  text-align: center;
  padding: 80px 24px;
  display: none;
}
.empty-state-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 8px; }
.empty-state p { color: var(--muted); font-size: 0.875rem; }
.empty-state.visible { display: block; }

/* ===== CATEGORIES SECTION ===== */
.categories-section {
  padding: 0 24px 64px;
  max-width: 1200px;
  margin: 0 auto;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(5, 1fr); } }

.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 24px 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  cursor: pointer;
}
.cat-card:hover {
  border-color: var(--primary);
  background: var(--primary-dim);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}
.cat-card-emoji { font-size: 2.5rem; line-height: 1; }
.cat-card-name { font-size: 0.875rem; font-weight: 600; }
.cat-card-count { font-size: 0.75rem; color: var(--muted); }

/* ===== SEA SPOTLIGHT ===== */
.sea-section {
  background: linear-gradient(135deg, rgba(124,58,237,0.12) 0%, rgba(6,182,212,0.06) 100%);
  border-top: 1px solid rgba(124,58,237,0.2);
  border-bottom: 1px solid rgba(124,58,237,0.2);
  padding: 64px 24px;
  text-align: center;
}

.sea-section-inner { max-width: 900px; margin: 0 auto; }

.sea-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.sea-section h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; }
.sea-section p { color: var(--muted); max-width: 520px; margin: 0 auto 32px; line-height: 1.7; }

.sea-mini-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 28px;
  text-align: left;
}
@media (min-width: 640px) { .sea-mini-grid { grid-template-columns: repeat(3, 1fr); } }

.sea-mini-card {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: var(--radius);
  padding: 16px;
}
.sea-mini-title { font-size: 0.875rem; font-weight: 600; margin-bottom: 6px; }
.sea-mini-preview { font-size: 0.75rem; color: var(--muted); font-family: 'JetBrains Mono', monospace; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== RECENTLY USED ===== */
.recent-section {
  padding: 0 24px 48px;
  max-width: 900px;
  margin: 0 auto;
  display: none;
}
.recent-section.has-items { display: block; }
.recent-list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}
.recent-title { font-weight: 500; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-meta { font-size: 0.75rem; color: var(--muted); white-space: nowrap; }

/* ===== BLOG PAGE ===== */
.page-hero {
  padding: 64px 24px 48px;
  max-width: 900px;
  margin: 0 auto;
}
.page-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 14px;
}
.page-hero h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 16px; }
.page-hero p { color: var(--muted); font-size: 1.0625rem; line-height: 1.7; max-width: 560px; }

.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.page-content h2 { font-size: 1.375rem; font-weight: 700; margin: 36px 0 14px; letter-spacing: -0.02em; }
.page-content h3 { font-size: 1.0625rem; font-weight: 600; margin: 24px 0 10px; }
.page-content p { color: var(--muted); line-height: 1.8; margin-bottom: 14px; }
.page-content ul, .page-content ol { color: var(--muted); line-height: 1.8; margin-bottom: 14px; padding-left: 20px; }
.page-content li { margin-bottom: 6px; }
.page-content strong { color: var(--text); }
.page-content code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
  background: rgba(124,58,237,0.15);
  color: #c4b5fd;
  padding: 2px 6px;
  border-radius: 4px;
}
.page-content pre {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  overflow-x: auto;
  margin: 16px 0;
}
.page-content pre code { background: none; padding: 0; color: var(--code); }
.page-content blockquote {
  border-left: 3px solid var(--primary);
  padding: 4px 20px;
  margin: 20px 0;
  color: var(--code);
  font-style: italic;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 64px;
}
@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }

.blog-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: var(--transition);
}
.blog-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.blog-meta { font-size: 0.75rem; color: var(--muted); display: flex; gap: 8px; }
.blog-card h3 { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.blog-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; flex: 1; }
.blog-read-more { font-size: 0.8125rem; color: var(--primary-light); font-weight: 500; display: flex; align-items: center; gap: 4px; }

/* ===== CATEGORY PAGE ===== */
.cat-page-hero {
  padding: 56px 24px 40px;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.cat-page-emoji { font-size: 3.5rem; line-height: 1; flex-shrink: 0; }
.cat-page-info { flex: 1; min-width: 200px; }
.cat-page-info h1 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 700; margin-bottom: 8px; letter-spacing: -0.025em; }
.cat-page-info p { color: var(--muted); line-height: 1.7; }
.cat-page-count { font-size: 0.8125rem; color: var(--primary-light); font-weight: 600; margin-top: 6px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--muted);
  padding: 20px 24px 0;
  transition: var(--transition);
}
.back-link:hover { color: var(--text); }

/* ===== FORMS ===== */
.form-wrap {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-label { font-size: 0.875rem; font-weight: 600; }
.form-input, .form-textarea, .form-select {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9375rem;
  outline: none;
  transition: var(--transition);
  width: 100%;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--primary); background: rgba(124,58,237,0.04); }
.form-textarea { resize: vertical; min-height: 160px; }
.form-hint { font-size: 0.75rem; color: var(--muted); }
.form-success {
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: var(--radius);
  padding: 20px 24px;
  color: var(--green);
  font-weight: 500;
  display: none;
  text-align: center;
}
.form-success.visible { display: block; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--card-border);
  padding: 48px 24px 24px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 640px) { .footer-inner { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-brand .logo-main { font-size: 1.25rem; margin-bottom: 10px; }
.footer-brand p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.footer-tools p { font-size: 0.75rem; color: var(--muted); margin-bottom: 8px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-tools a { font-size: 0.8125rem; color: var(--secondary); display: block; margin-bottom: 4px; transition: var(--transition); }
.footer-tools a:hover { color: var(--text); }

.footer-col h4 { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 0.875rem; color: var(--muted); margin-bottom: 8px; transition: var(--transition); }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--card-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ===== AD PLACEHOLDERS ===== */
.ad-below-hero, .ad-right-sidebar, .ad-mobile-bottom { display: none; }

/* ===== UTILITY ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-muted { color: var(--muted); }
.text-primary { color: var(--primary-light); }
.text-green { color: var(--green); }
.text-gold { color: var(--gold); }
.mt-auto { margin-top: auto; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.font-mono { font-family: 'JetBrains Mono', monospace; }

/* ===== MODEL BADGE COLORS ===== */
.model-chatgpt { background: rgba(16,163,127,0.12); color: #10a37f; border: 1px solid rgba(16,163,127,0.25); }
.model-claude { background: rgba(196,149,106,0.12); color: #c4956a; border: 1px solid rgba(196,149,106,0.25); }
.model-gemini { background: rgba(66,133,244,0.12); color: #4285f4; border: 1px solid rgba(66,133,244,0.25); }
.model-midjourney { background: rgba(245,101,101,0.12); color: #f56565; border: 1px solid rgba(245,101,101,0.25); }
.model-universal { background: rgba(124,58,237,0.12); color: #a78bfa; border: 1px solid rgba(124,58,237,0.25); }

/* ===== CATEGORY BADGE COLORS ===== */
.cat-writing { background: rgba(139,92,246,0.12); color: #a78bfa; border: 1px solid rgba(139,92,246,0.2); }
.cat-business { background: rgba(245,158,11,0.12); color: #fbbf24; border: 1px solid rgba(245,158,11,0.2); }
.cat-coding { background: rgba(6,182,212,0.12); color: #22d3ee; border: 1px solid rgba(6,182,212,0.2); }
.cat-education { background: rgba(16,185,129,0.12); color: #34d399; border: 1px solid rgba(16,185,129,0.2); }
.cat-career { background: rgba(249,115,22,0.12); color: #fb923c; border: 1px solid rgba(249,115,22,0.2); }
.cat-social-media { background: rgba(236,72,153,0.12); color: #f472b6; border: 1px solid rgba(236,72,153,0.2); }
.cat-email { background: rgba(59,130,246,0.12); color: #60a5fa; border: 1px solid rgba(59,130,246,0.2); }
.cat-sea-business { background: rgba(16,185,129,0.12); color: #34d399; border: 1px solid rgba(16,185,129,0.2); }
.cat-image-generation { background: rgba(245,101,101,0.12); color: #fc8181; border: 1px solid rgba(245,101,101,0.2); }

/* ===== MOBILE ADJUSTMENTS ===== */
@media (max-width: 640px) {
  .hero { padding: 60px 16px 48px; min-height: 70vh; }
  .potd-section, .categories-section, .prompts-section, .recent-section { padding-left: 16px; padding-right: 16px; }
  .filter-section { padding: 10px 16px; overflow-x: auto; }
  .filter-bar { flex-wrap: nowrap; min-width: max-content; }
  .card-actions { flex-wrap: wrap; }
}

/* ===== LOAD MORE ===== */
.load-more-wrap { display: flex; justify-content: center; padding: 8px 0 32px; }
.btn-load-more {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 10px 28px;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: var(--transition);
}
.btn-load-more:hover { border-color: var(--primary); background: var(--primary-dim); }
.btn-load-more:disabled { opacity: 0.4; cursor: not-allowed; }
