/* ============================================================
 * homebrew_catalog.css
 * Author:   Steven J. Cook
 * Date:     2026-05-08
 * Time:     08:55 UTC
 * Model:    Claude Opus 4.7 (1M context)
 * Project:  Abyssal Engine
 * Revision: 1.0.0
 *
 * Styles for the Pass 2 homebrew catalog cogs:
 *   webapp/abyssal-engine/cogs/magiseed_homebrew.js
 *   webapp/abyssal-engine/cogs/hoplosphere_homebrew.js
 *   webapp/abyssal-engine/cogs/mnemosphere_homebrew.js
 *
 * Each renders a card grid where every card holds a name, theme,
 * flavor, and a tier ladder of effects.
 * ============================================================ */

.codex-section {
  padding: 1em 1.25em;
  max-width: 1400px;
  margin: 0 auto;
}

.codex-section > h2 {
  font-family: var(--font-display, 'Cinzel', serif);
  color: var(--accent, #d4af37);
  margin: 0 0 0.5em 0;
  letter-spacing: 0.04em;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1em;
  margin-top: 1em;
}

.codex-card {
  background: var(--surface-1, #1f1f24);
  border: 1px solid var(--border-thin, #3a3a42);
  border-radius: 6px;
  padding: 1em 1.1em;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.codex-card h3 {
  margin: 0;
  font-family: var(--font-display, 'Cinzel', serif);
  font-size: 1.1em;
  color: var(--accent-amber, #d4af37);
}

.card-tagline {
  font-size: 0.82em;
  color: var(--text-muted, #a0a0a8);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}

.card-flavor {
  font-size: 0.92em;
  color: var(--text-soft, #b8b8c0);
  margin: 0.2em 0 0.4em 0;
  line-height: 1.4;
}

.tier-ladder {
  display: flex;
  flex-direction: column;
  gap: 0.45em;
  margin-top: 0.3em;
}

.tier-row {
  display: grid;
  grid-template-columns: 4.5em 1fr;
  gap: 0.6em;
  align-items: start;
  font-size: 0.9em;
  line-height: 1.45;
  padding: 0.4em 0;
  border-top: 1px dashed var(--border-thin, #3a3a42);
}

.tier-row:first-child {
  border-top: none;
}

.tier-label {
  font-weight: 600;
  color: var(--accent-cyan, #4ec0e0);
  font-family: var(--font-display, 'Cinzel', serif);
  font-size: 0.85em;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.tier-effect {
  color: var(--text, #d8d8e0);
}
