/* ===== CARD PAGE SHARED STYLES ===== */
:root {
  --bg: #000;
  --text: #fff;
  --text-muted: rgba(255,255,255,0.5);
  --text-body: rgba(255,255,255,0.78);
  --border: rgba(255,255,255,0.12);
  --gold: #c9a84c;
  --font-body: 'Source Serif 4', 'Georgia', serif;
  --font-heading: 'Inter', -apple-system, 'Helvetica Neue', sans-serif;
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --nav-height: 92px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ===== NAV ===== */
.nav-wrapper { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; }
.navbar { height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; background: #000; }
.nav-left { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.nav-logo { width: 22px; height: auto; filter: brightness(0) invert(1); }
.nav-title { font-family: var(--font-heading); font-size: 14px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: #fff; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-cta { font-family: var(--font-heading); font-size: 12px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: #000; text-decoration: none; padding: 6px 16px; background: #fff; border: 1px solid #fff; border-radius: 20px; transition: background 0.2s, color 0.2s, border-color 0.2s; cursor: pointer; }
.nav-cta:hover { background: rgba(255,255,255,0.85); color: #000; border-color: rgba(255,255,255,0.85); }
.nav-sub { height: 44px; display: flex; align-items: center; justify-content: center; gap: 32px; background: rgba(10,10,10,0.95); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,0.08); overflow-x: auto; scrollbar-width: none; }
.nav-sub::-webkit-scrollbar { display: none; }
.nav-sub a { font-family: var(--font-heading); font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.6); text-decoration: none; white-space: nowrap; letter-spacing: 0.5px; padding: 0 2px; position: relative; transition: color 0.2s; }
.nav-sub a:hover { color: #fff; }
.nav-sub a.active { color: #fff; }
.nav-sub a.active::after { content: ''; position: absolute; bottom: -7px; left: 0; right: 0; height: 1.5px; background: #c9a84c; }
.nav-sep { width: 1px; height: 16px; background: rgba(255,255,255,0.15); flex-shrink: 0; }
.nav-action { font-family: var(--font-heading); font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #c9a84c !important; padding: 4px 12px !important; border: 1px solid #c9a84c; border-radius: 20px; transition: all 0.2s; }
.nav-action:hover { background: #c9a84c; color: #000 !important; }

/* ===== CARD HERO ===== */
.card-hero {
  margin-top: var(--nav-height);
  padding: 100px 32px 72px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.card-meta {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--gold);
  margin-bottom: 40px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 300;
  line-height: 1.2;
  max-width: 780px;
  margin: 0 auto 28px;
}

.card-tldr {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
  font-style: italic;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== PRE/POST POLL ===== */
.poll-section {
  padding: 56px 32px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.poll-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.poll-label.gold { color: var(--gold); }

.poll-question {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 28px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.poll-options {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.poll-btn {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 10px 24px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.poll-btn:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.05); }
.poll-btn.selected { border-color: var(--gold); color: var(--gold); background: rgba(201,168,76,0.1); }
.poll-btn.dimmed { opacity: 0.35; cursor: default; }
.poll-btn-other { border-style: dashed; color: var(--text-muted); font-style: italic; }
.poll-btn-other:hover { color: #fff; }
.poll-go-deeper { color: var(--gold); text-decoration: none; }
.poll-go-deeper:hover { text-decoration: underline; }

.poll-note {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
}

/* ===== ARTICLE BODY ===== */
.article {
  max-width: 680px;
  margin: 0 auto;
  padding: 72px 32px;
}

.article p {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.85;
  color: var(--text-body);
  margin-bottom: 28px;
}

.article .highlight {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: #e8dcc8;
  margin: 48px 0;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

/* ===== INLINE COMPANION CHAT ===== */
.companion-inline {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 32px 64px;
}

.companion-divider {
  width: 60px;
  height: 1px;
  background: var(--border);
  margin: 0 auto 48px;
}

.companion-prompt {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.7);
}

.companion-subtitle {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.35);
  text-align: center;
  max-width: 480px;
  margin: 0 auto 28px;
}

.companion-chat {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.companion-input-row {
  display: flex;
  align-items: flex-end;
  gap: 0;
  border-bottom: 1px solid var(--border);
}

.companion-input {
  flex: 1;
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: #fff;
  background: rgba(255,255,255,0.03);
  border: none;
  resize: none;
  outline: none;
  min-height: 52px;
}

.companion-input::placeholder { color: rgba(255,255,255,0.25); }

.companion-send {
  width: 52px;
  height: 52px;
  background: transparent;
  border: none;
  border-left: 1px solid var(--border);
  color: var(--gold);
  font-size: 20px;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.companion-send:hover { background: rgba(255,255,255,0.05); }
.companion-send:disabled { opacity: 0.3; cursor: default; }

.companion-thread {
  max-height: 400px;
  overflow-y: auto;
}

.companion-msg {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.companion-msg:last-child { border-bottom: none; }

.companion-msg-user {
  background: rgba(255,255,255,0.03);
}

.companion-msg-ai {
  background: transparent;
}

.companion-msg-label {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.companion-msg-label.gold { color: var(--gold); }

.companion-msg-text {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-body);
}

.companion-typing {
  padding: 16px 20px;
  font-family: var(--font-heading);
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

/* ===== VOICES (previous responses) ===== */
.voices-section {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 32px 48px;
}
.voices-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--gold);
  margin-bottom: 20px;
  text-align: center;
}
.voices-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.voice-fragment {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
  font-style: italic;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  background: rgba(255,255,255,0.02);
  max-width: 300px;
}
.voices-count {
  font-family: var(--font-heading);
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  text-align: center;
  margin-top: 16px;
}

/* ===== DEEPER DIVE ===== */
.deeper-dive {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 32px 64px;
  text-align: center;
}

.deeper-divider {
  width: 60px;
  height: 1px;
  background: var(--border);
  margin: 0 auto 32px;
}

.deeper-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.deeper-link {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--gold);
  text-decoration: none;
  transition: opacity 0.2s;
}

.deeper-link:hover { opacity: 0.7; }

/* ===== POST-READ ===== */
.post-read {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 32px 80px;
  text-align: center;
}

.post-divider {
  width: 60px;
  height: 1px;
  background: var(--border);
  margin: 0 auto 48px;
}

/* ===== CARD NAV ===== */
.card-nav {
  border-top: 1px solid var(--border);
  padding: 40px 32px;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.card-nav a {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all 0.2s;
}

.card-nav a:hover { border-color: rgba(255,255,255,0.3); color: #fff; }

/* ===== CATEGORY COLORS (card-meta) ===== */
body[data-category="game"] .card-meta { color: #e8a838; }
body[data-category="recognition"] .card-meta { color: var(--gold); }
body[data-category="case"] .card-meta { color: #7eb8da; }
body[data-category="guardrail"] .card-meta { color: #d4756a; }
body[data-category="question"] .card-meta { color: #b8a9d4; }
body[data-category="evolution"] .card-meta { color: #7dc98a; }

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .card-hero { padding: 64px 24px 48px; }
  .card-title { font-size: 34px; }
  .card-tldr { font-size: 16px; }
  .article { padding: 48px 24px; }
  .article p { font-size: 16px; }
  .article .highlight { font-size: 22px; }
  .poll-question { font-size: 22px; }
  .poll-options { flex-direction: column; align-items: center; }
  .poll-btn { width: 240px; }
  .nav-sub { gap: 20px; padding: 0 16px; justify-content: flex-start; }
  .comment-widget { padding: 0 24px 48px; }
  .comment-prompt { font-size: 20px; }
  .comment-actions { justify-content: center; }
}
