/* ============================================================
   AI Terminology Scrambler — Shared Stylesheet
   Used by: guide, glossary, term pages, category pages
   ============================================================ */

:root {
  --bg: #f8f6f1;
  --bg2: #f0ece3;
  --bg3: #e8e2d6;
  --white: #ffffff;
  --ink: #1a1714;
  --ink2: #3d3730;
  --ink3: #7a6f65;
  --ink4: #b0a598;
  --ink5: #d8d0c6;
  --lime: #7ec820;
  --lime2: #629d18;
  --lime-bg: #f2fce0;
  --lime-border: #b8e870;
  --orange: #f07820;
  --orange-bg: #fff4ec;
  --blue: #2060e0;
  --blue-bg: #eef4ff;
  --purple: #7040c0;
  --purple-bg: #f4f0ff;
  --red: #d03030;
  --red-bg: #fff0f0;
  --serif: 'Lora', Georgia, serif;
  --display: 'Syne', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --shadow-sm: 0 1px 4px rgba(26,23,20,0.07);
  --shadow: 0 3px 14px rgba(26,23,20,0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--serif); background: var(--bg); color: var(--ink); line-height: 1.75; }

/* ── NAV ── */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 58px;
  background: rgba(248,246,241,0.97);
  border-bottom: 1px solid var(--ink5);
  position: sticky; top: 0; z-index: 100;
}
.logo {
  font-family: var(--display); font-size: 17px; font-weight: 800;
  color: var(--ink); text-decoration: none; letter-spacing: -0.5px;
  display: flex; align-items: center; gap: 8px;
}
.logo-sq {
  width: 24px; height: 24px; background: var(--ink); border-radius: 6px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.logo-sq svg { width: 13px; height: 13px; fill: var(--bg); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-link {
  font-family: var(--display); font-size: 13px; font-weight: 600;
  color: var(--ink3); text-decoration: none; padding: 6px 12px;
  border-radius: 8px; transition: color 0.15s;
}
.nav-link:hover { color: var(--ink); }
.nav-cta {
  font-family: var(--display); font-size: 13px; font-weight: 700;
  background: var(--ink); color: var(--bg); padding: 8px 20px;
  border-radius: 999px; text-decoration: none; transition: opacity 0.15s;
}
.nav-cta:hover { opacity: 0.85; }

/* ── LAYOUT ── */
.page-wrap { max-width: 860px; margin: 0 auto; padding: 3rem 1.5rem 6rem; }

/* ── BREADCRUMB ── */
.breadcrumb { font-family: var(--mono); font-size: 12px; color: var(--ink4); margin-bottom: 2.5rem; }
.breadcrumb a { color: var(--lime2); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ── TYPE ── */
.eyebrow {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px; color: var(--lime2);
  margin-bottom: 0.75rem;
}
h1, .h1 {
  font-family: var(--display); font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800; letter-spacing: -1.5px; line-height: 1.0; margin-bottom: 1rem;
}
h2, .h2 {
  font-family: var(--display); font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800; letter-spacing: -0.8px; line-height: 1.1; margin-bottom: 0.75rem;
}
h3, .h3 {
  font-family: var(--display); font-size: 1.1rem;
  font-weight: 700; letter-spacing: -0.3px; margin-bottom: 0.5rem;
}
p { font-size: 16px; color: var(--ink2); margin-bottom: 1rem; line-height: 1.75; }
.subtitle { font-size: 18px; color: var(--ink3); max-width: 600px; margin-bottom: 2.5rem; line-height: 1.7; }
.section-label {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; color: var(--lime2);
  margin-bottom: 0.5rem;
}
.divider { height: 1px; background: var(--ink5); margin: 3.5rem 0; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block; font-family: var(--display); font-size: 15px;
  font-weight: 800; background: var(--ink); color: var(--bg);
  padding: 13px 28px; border-radius: 999px; text-decoration: none;
  transition: opacity 0.15s, transform 0.12s; letter-spacing: -0.3px;
}
.btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }
.btn-outline {
  display: inline-block; font-family: var(--display); font-size: 15px;
  font-weight: 600; background: var(--white); color: var(--ink);
  padding: 13px 28px; border-radius: 999px; text-decoration: none;
  border: 1.5px solid var(--ink5); transition: border-color 0.15s, transform 0.12s;
  letter-spacing: -0.3px;
}
.btn-outline:hover { border-color: var(--ink3); transform: translateY(-1px); }

/* ── CARDS ── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 12px; margin-top: 1.5rem; }
.card-grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 12px; margin-top: 1.5rem; }
.term-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 10px; margin-top: 1.5rem; }

.model-card {
  background: var(--white); border: 1px solid var(--ink5);
  border-radius: var(--r-lg); padding: 1.5rem;
  transition: border-color 0.15s, transform 0.15s; box-shadow: var(--shadow-sm);
}
.model-card:hover { border-color: var(--lime); transform: translateY(-2px); }
.model-card .mc-name { font-family: var(--display); font-size: 16px; font-weight: 800; letter-spacing: -0.3px; margin-bottom: 6px; }
.model-card .mc-tag {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px; padding: 3px 9px;
  border-radius: 999px; display: inline-block; margin-bottom: 10px;
}
.mc-tag.general { background: var(--blue-bg); color: var(--blue); }
.mc-tag.search { background: var(--orange-bg); color: var(--orange); }
.mc-tag.creative { background: var(--purple-bg); color: var(--purple); }
.mc-tag.local { background: var(--lime-bg); color: var(--lime2); }
.mc-tag.agent { background: var(--red-bg); color: var(--red); }
.model-card .mc-desc { font-size: 13px; color: var(--ink3); line-height: 1.6; }

.term-card {
  background: var(--white); border: 1px solid var(--ink5);
  border-radius: var(--r-lg); padding: 1rem 1.25rem; text-decoration: none;
  display: block; transition: border-color 0.15s;
}
.term-card:hover { border-color: var(--lime); }
.term-card .tc-term { font-family: var(--display); font-size: 15px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.term-card .tc-def { font-size: 12px; color: var(--ink3); line-height: 1.5; }

/* ── TERM PAGE SPECIFIC ── */
.def-card {
  background: var(--white); border: 1px solid var(--ink5);
  border-radius: var(--r-xl); padding: 2rem; margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.def-card .term-name { font-family: var(--display); font-size: 2.2rem; font-weight: 800; letter-spacing: -1.5px; margin-bottom: 0.25rem; }
.def-card .term-full { font-family: var(--mono); font-size: 12px; color: var(--lime2); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 1rem; }
.def-card .definition { font-size: 16px; color: var(--ink2); line-height: 1.75; margin-bottom: 1rem; }
.example-box {
  background: var(--bg); border-radius: var(--r); border-left: 3px solid var(--lime);
  padding: 1rem 1.25rem; font-size: 14px; font-style: italic;
  color: var(--ink3); margin-bottom: 1rem; line-height: 1.65;
}
.related-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 1rem; }
.tag {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  padding: 4px 12px; border-radius: 999px;
  background: var(--lime-bg); color: var(--lime2);
  border: 1px solid var(--lime-border); text-decoration: none;
}
.tag:hover { background: #d8f8a0; }
.play-cta {
  background: var(--ink); color: var(--bg); border: none;
  padding: 13px 28px; border-radius: 999px;
  font-family: var(--display); font-size: 15px; font-weight: 800;
  cursor: pointer; text-decoration: none; display: inline-block;
  margin-top: 1.5rem; letter-spacing: -0.3px; transition: opacity 0.15s;
}
.play-cta:hover { opacity: 0.85; }

/* ── GUIDE PAGE SPECIFIC ── */
.guide-section { margin-bottom: 4rem; }
.guide-h1 {
  font-family: var(--display); font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 800; letter-spacing: -2px; line-height: 1.0; margin-bottom: 1.25rem;
}
.guide-sub { font-size: 18px; color: var(--ink3); line-height: 1.7; max-width: 640px; margin-bottom: 2rem; }
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 1.5rem; }
.disclaimer-note {
  font-family: var(--mono); font-size: 11px; color: var(--ink4);
  line-height: 1.6; padding: 10px 14px; background: var(--bg2);
  border-radius: var(--r); border-left: 3px solid var(--ink5);
}
.explainer { background: var(--white); border: 1px solid var(--ink5); border-radius: var(--r-xl); padding: 2rem; margin-top: 1.5rem; box-shadow: var(--shadow-sm); }
.explainer .vs-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.25rem; }
.vs-col { padding: 1rem; border-radius: var(--r); }
.vs-col.left { background: var(--blue-bg); }
.vs-col.right { background: var(--lime-bg); }
.vs-col .vs-label { font-family: var(--mono); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 6px; }
.vs-col.left .vs-label { color: var(--blue); }
.vs-col.right .vs-label { color: var(--lime2); }
.vs-col .vs-title { font-family: var(--display); font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.vs-col .vs-desc { font-size: 13px; color: var(--ink3); line-height: 1.55; }
.tradeoff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1.5rem; }
.tradeoff-col { background: var(--white); border: 1px solid var(--ink5); border-radius: var(--r-lg); padding: 1.5rem; }
.tradeoff-col h3 { font-family: var(--display); font-size: 15px; font-weight: 800; margin-bottom: 1rem; }
.tradeoff-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.tradeoff-col li { font-size: 14px; color: var(--ink2); line-height: 1.55; display: flex; align-items: flex-start; gap: 8px; }
.tradeoff-col li::before { flex-shrink: 0; margin-top: 2px; font-size: 12px; }
.tradeoff-col.pros li::before { content: '✓'; color: var(--lime2); font-weight: 700; }
.tradeoff-col.cons li::before { content: '→'; color: var(--ink4); }
.decision-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; border: 1px solid var(--ink5); border-radius: var(--r-lg); overflow: hidden; }
.decision-table thead tr { background: var(--ink); }
.decision-table thead th { font-family: var(--mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--bg); padding: 12px 16px; text-align: left; }
.decision-table tbody tr { border-bottom: 1px solid var(--ink5); background: var(--white); transition: background 0.15s; }
.decision-table tbody tr:last-child { border-bottom: none; }
.decision-table tbody tr:hover { background: var(--bg); }
.decision-table tbody td { padding: 12px 16px; font-size: 14px; color: var(--ink2); line-height: 1.5; vertical-align: top; }
.decision-table tbody td:first-child { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--ink); }
.use-tag { display: inline-block; font-family: var(--mono); font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--lime-bg); color: var(--lime2); border: 1px solid var(--lime-border); }
.warning-box { background: #fff8ec; border: 1.5px solid #f0d090; border-radius: var(--r-lg); padding: 1.25rem 1.5rem; display: flex; gap: 12px; align-items: flex-start; margin-top: 1.5rem; }
.warning-box .wi { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.warning-box p { font-size: 14px; color: var(--ink2); line-height: 1.65; margin: 0; }
.warning-box strong { font-family: var(--display); font-size: 14px; display: block; margin-bottom: 4px; }
.term-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 1.25rem; }
.term-chip {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  padding: 6px 14px; border-radius: 999px; background: var(--lime-bg);
  color: var(--lime2); border: 1px solid var(--lime-border);
  text-decoration: none; transition: background 0.15s;
}
.term-chip:hover { background: #d8f8a0; }
.cta-section { background: var(--ink); border-radius: var(--r-xl); padding: 2.5rem; text-align: center; margin-top: 3rem; }
.cta-section .cta-eyebrow { font-family: var(--mono); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: var(--lime); margin-bottom: 0.75rem; }
.cta-section h2 { font-family: var(--display); font-size: 2rem; font-weight: 800; letter-spacing: -1px; color: var(--bg); margin-bottom: 0.75rem; }
.cta-section p { font-size: 15px; color: rgba(248,246,241,0.6); line-height: 1.65; max-width: 480px; margin: 0 auto 2rem; }
.cta-btn-light { display: inline-block; font-family: var(--display); font-size: 15px; font-weight: 800; background: var(--lime); color: var(--ink); padding: 13px 28px; border-radius: 999px; text-decoration: none; letter-spacing: -0.3px; transition: opacity 0.15s; }
.cta-btn-light:hover { opacity: 0.85; }
.cta-btn-ghost { display: inline-block; font-family: var(--display); font-size: 14px; font-weight: 600; background: transparent; color: rgba(248,246,241,0.7); padding: 13px 28px; border-radius: 999px; text-decoration: none; border: 1px solid rgba(248,246,241,0.2); letter-spacing: -0.3px; margin-left: 8px; transition: border-color 0.15s; }
.cta-btn-ghost:hover { border-color: rgba(248,246,241,0.5); color: var(--bg); }

/* ── FOOTER ── */
footer {
  background: var(--ink); padding: 2rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.foot-logo { font-family: var(--display); font-size: 17px; font-weight: 800; color: var(--bg); }
.foot-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.foot-link { font-size: 13px; color: var(--ink4); text-decoration: none; transition: color 0.15s; }
.foot-link:hover { color: var(--bg3); }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  nav { padding: 0 1rem; }
  .page-wrap { padding: 2rem 1rem 4rem; }
  .guide-h1 { letter-spacing: -1px; }
  .explainer .vs-row { grid-template-columns: 1fr; }
  .tradeoff-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .decision-table tbody td:first-child { white-space: normal; }
  .cta-btn-ghost { margin-left: 0; margin-top: 8px; }
}
