/* ══════════════════════════════════════════════════════════════════
   CLUBE CLAUDE. DESIGN SYSTEM v1
   Fonte única de verdade. Sempre que algo mudar aqui, cascata pra
   todas as páginas que linkam este arquivo.

   Arquivo linkado em: index, mentoria, sobre, blog/index, blog/posts/*
   Docs: /DESIGN_SYSTEM.md na raiz do projeto.

   Autor: Clube Claude / Hibra
   Última revisão: 22/04/2026
   ══════════════════════════════════════════════════════════════════ */

/* ─── TOKENS ───────────────────────────────────────────────────── */
:root {
  /* Paleta base — Editorial Magazine */
  --cream: #F5F0E1;
  --cream-deep: #EDE7D4;
  --sand: #D4C4A8;
  --sand-soft: rgba(212,196,168,.25);
  --terracotta: #C67B5C;
  --terracotta-deep: #A8613F;
  --terracotta-glow: rgba(198,123,92,.12);
  --terracotta-soft: rgba(198,123,92,.08);
  --olive: #6B7B3C;
  --olive-soft: rgba(107,123,60,.08);
  --charcoal: #2C2418;
  --charcoal-soft: #4A3F30;

  /* Acentos auxiliares (usar com parcimônia) */
  --violet: #6d6cf6;
  --violet-soft: rgba(109,108,246,.08);
  --green: #13795b;
  --green-soft: rgba(19,121,91,.08);
  --gold: #b8860b;

  /* Alias semânticos — preferir estes no código de componente */
  --brand: var(--terracotta);
  --brand-deep: var(--terracotta-deep);
  --brand-glow: var(--terracotta-glow);
  --brand-soft: var(--terracotta-soft);

  /* Superfícies */
  --bg: #FAF7F0;
  --bg-warm: #F5F0E1;
  --surface: rgba(255,255,255,.68);
  --surface-strong: #ffffff;
  --line: rgba(44,36,24,.08);
  --line-warm: rgba(198,123,92,.18);

  /* Texto */
  --text: #2C2418;
  --text-soft: #6B6054;
  --text-faint: #9B9285;

  /* Sombras */
  --shadow: 0 12px 48px rgba(44,36,24,.08);
  --shadow-soft: 0 4px 20px rgba(44,36,24,.04);
  --shadow-card: 0 2px 12px rgba(44,36,24,.06);
  --shadow-brand: 0 6px 14px rgba(198,123,92,.28);

  /* Raios */
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;

  /* Tipografia */
  --head: "Fraunces", Georgia, serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", monospace;

  /* Larguras máximas */
  --max-site: 1080px;
  --max-post: 740px;
  --max-nav: 960px;

  /* Transições padrão */
  --t-fast: .15s;
  --t-base: .18s ease;
  --t-slow: .3s ease;
}

/* ─── RESET MÍNIMO ─────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: rgba(198,123,92,.2); }

/* ─── CONTAINER ────────────────────────────────────────────────── */
.ds-container,
.container { width: min(var(--max-site), calc(100% - 40px)); margin: 0 auto; }
.ds-container-post { width: min(var(--max-post), calc(100% - 32px)); margin: 0 auto; }

/* ─── GLASS ────────────────────────────────────────────────────── */
.glass {
  background: var(--surface);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: var(--shadow-card);
}

/* ─── DIVIDER EDITORIAL ────────────────────────────────────────── */
.divider {
  display: flex; align-items: center; gap: 16px;
  margin: 0 auto; max-width: 200px; padding: 48px 0;
}
.divider::before, .divider::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--sand), transparent);
}
.divider-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
}

/* ─── BUTTONS ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border: 0; cursor: pointer; border-radius: 999px;
  font-weight: 700; letter-spacing: -.01em;
  transition: transform var(--t-base), box-shadow var(--t-base);
  white-space: nowrap; text-decoration: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--charcoal); color: #fff;
  padding: 11px 22px; font-size: 13.5px;
  box-shadow: 0 6px 20px rgba(44,36,24,.14);
}
.btn-terra,
.btn-brand {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff; padding: 16px 32px; font-size: 15px;
  box-shadow: 0 10px 28px rgba(198,123,92,.22);
}
.btn-terra:hover,
.btn-brand:hover { box-shadow: 0 14px 36px rgba(198,123,92,.3); }
.btn-ghost {
  background: rgba(255,255,255,.5); border: 1px solid var(--sand);
  color: var(--text); padding: 14px 24px; font-size: 14px;
}
.btn-sm { padding: 11px 20px; font-size: 13px; }
.btn-full { width: 100%; }

/* ─── NAV ──────────────────────────────────────────────────────── */
.nav-wrap { position: sticky; top: 0; z-index: 60; padding-top: 16px; }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 10px 12px 10px 20px;
  border-radius: 999px; max-width: var(--max-nav); margin: 0 auto;
  background: rgba(250,247,240,.85);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(212,196,168,.35);
  box-shadow: 0 4px 24px rgba(44,36,24,.06);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 36px; height: 36px; flex: 0 0 auto; }
.brand-title { font-weight: 800; letter-spacing: -.02em; line-height: 1; font-size: 15px; }
.brand-sub { font-size: 11px; color: var(--text-faint); margin-top: 1px; line-height: 1; }
.nav-links { display: none; gap: 24px; align-items: center; font-size: 13.5px; font-weight: 500; color: var(--text-soft); }
.nav-links a { transition: color var(--t-fast); color: var(--text-soft); }
.nav-links a:hover { color: var(--brand); text-decoration: none; }

/* ─── SECTION HEADERS (Editorial) ──────────────────────────────── */
.section-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand);
  margin-bottom: 14px;
}
.section-tag::before {
  content: ""; width: 24px; height: 2px;
  background: var(--brand); border-radius: 2px;
}
.section-title {
  font-family: var(--head);
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  line-height: 1.05; letter-spacing: -.04em;
  font-weight: 800; margin-bottom: 14px;
}
.section-copy {
  font-size: 15.5px; line-height: 1.7;
  color: var(--text-soft); max-width: 560px;
}
.section-header { margin-bottom: 40px; }

/* ─── HERO PRIMITIVES ──────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brand);
  margin-bottom: 28px;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--olive);
  animation: ds-pulse-dot 2s infinite;
}
@keyframes ds-pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(107,123,60,.4); }
  50% { box-shadow: 0 0 0 6px rgba(107,123,60,0); }
}
.accent { color: var(--brand); font-style: italic; }

/* ─── CHIPS ────────────────────────────────────────────────────── */
.chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(212,196,168,.4);
  background: rgba(255,255,255,.5);
  font-size: 12.5px; font-weight: 500; color: var(--text-soft);
}
.chip-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
}

/* ─── CALLOUTS ─────────────────────────────────────────────────── */
.callout {
  border-radius: var(--radius-md);
  padding: 20px 24px; margin: 24px 0;
  font-size: 15px; line-height: 1.6;
}
.callout strong { display: block; margin-bottom: 4px; color: var(--text); }
.callout-tip  { background: var(--green-soft);  border-left: 3px solid var(--green);  color: var(--text); }
.callout-warn { background: rgba(184,134,11,.06); border-left: 3px solid var(--gold);   color: var(--text); }
.callout-info { background: var(--violet-soft); border-left: 3px solid var(--violet); color: var(--text); }
.callout-brand { background: var(--brand-soft); border-left: 3px solid var(--brand); color: var(--text); }

/* ─── POST META TAGS (blog) ────────────────────────────────────── */
.post-tag {
  padding: 4px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
}
.tag-iniciante     { background: var(--green-soft);   color: var(--green); }
.tag-intermediario { background: var(--violet-soft);  color: var(--violet); }
.tag-avancado      { background: var(--brand-soft);   color: var(--brand); }
.tag-todos         { background: rgba(44,36,24,.06);  color: var(--text-soft); }

/* ─── ICON BADGE (topics grid, blog cards) ─────────────────────── */
.icon-badge {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  display: grid; place-items: center;
  flex: 0 0 auto;
  box-shadow: 0 6px 14px rgba(198,123,92,.28), inset 0 1px 0 rgba(255,255,255,.18);
}
.icon-badge svg { width: 24px; height: 24px; stroke-width: 2.4; }

/* ─── CARD BASE ────────────────────────────────────────────────── */
.ds-card {
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  border: 1px solid rgba(212,196,168,.3);
  background: rgba(255,255,255,.55);
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.ds-card:hover {
  border-color: var(--brand);
  box-shadow: 0 8px 32px rgba(198,123,92,.08);
}

/* ─── PULSE (CTA attention) ────────────────────────────────────── */
@keyframes ds-pulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(198,123,92,.22); }
  50% { box-shadow: 0 10px 28px rgba(198,123,92,.22), 0 0 0 8px rgba(198,123,92,0); }
}
.pulse { animation: ds-pulse 2.5s infinite; }

/* ─── PROIBIÇÕES INTENCIONAIS ──────────────────────────────────── */
/*
  Este DS NÃO define:
  - .pull-quote (decisão editorial: quote de si mesmo é cringe)
  - emoji-heavy patterns
  - frases-de-efeito curtas em chips
  - background gradients com mais de 2 cores

  Se alguma seção precisar de algo fora disso, documentar em
  DESIGN_SYSTEM.md antes de adicionar token novo.
*/

/* ─── RESPONSIVO GLOBAL ────────────────────────────────────────── */
@media (min-width: 768px) {
  .nav-links { display: flex; }
}
