/* ══════════════════════════════════════════════════════════════════════════════
   CustomFunForge — Public Site Styles
   ══════════════════════════════════════════════════════════════════════════════ */

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

:root {
  /* Colors */
  --bg:          #0a0a0a;
  --surface:     #141414;
  --surface2:    #1c1c1c;
  --border:      #2a2a2a;
  --border-h:    #444;
  --orange:      #f97316;
  --orange-d:    #c2600e;
  --orange-glow: rgba(249, 115, 22, 0.15);
  --text:        #e8e8e8;
  --text-muted:  #888;
  --text-dim:    #555;
  --ok:          #22c55e;

  /* Typography */
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Courier New', monospace;

  /* Layout */
  --max-w:  1200px;
  --radius: 12px;
  --radius-sm: 6px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon {
  font-size: 1.75rem;
  filter: drop-shadow(0 0 8px var(--orange));
}

.logo-wordmark {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.logo-name span { color: var(--orange); }

.logo-tag {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Hero ────────────────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 5rem 1.5rem 3.5rem;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(249,115,22,0.08) 0%, transparent 70%);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 30%, var(--orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--ok);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ── Generator Grid ──────────────────────────────────────────────────────────── */
.generators-section {
  flex: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
  width: 100%;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

/* ── Generator Card ──────────────────────────────────────────────────────────── */
.gen-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  text-decoration: none;
  color: inherit;
}

.gen-card:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(249, 115, 22, 0.12);
}

/* Thumbnail */
.card-thumb {
  aspect-ratio: 16 / 10;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}

.gen-card:hover .card-thumb img { transform: scale(1.04); }

.thumb-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.8rem;
  width: 100%;
  height: 100%;
}

.thumb-placeholder svg {
  width: 40px;
  height: 40px;
  opacity: 0.4;
}

/* Card body */
.card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.card-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  align-self: flex-start;
  transition: background .2s, gap .2s;
}

.card-btn:hover { background: var(--orange-d); gap: 0.6rem; }

/* Card with no URL */
.gen-card.no-url { opacity: 0.6; cursor: default; }
.gen-card.no-url:hover { border-color: var(--border); transform: none; box-shadow: none; }

.coming-soon-badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  color: var(--text-muted);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-dim);
  grid-column: 1 / -1;
}

.empty-state svg {
  width: 48px;
  height: 48px;
  opacity: 0.3;
  margin-bottom: 1rem;
}

.empty-state p { font-size: 0.9rem; }

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
}

.site-footer a { color: var(--text-dim); text-decoration: none; }
.site-footer a:hover { color: var(--orange); }

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero { padding: 3rem 1rem 2rem; }
  .generators-section { padding: 1rem 1rem 3rem; }
  .card-grid { grid-template-columns: 1fr; }
}
