/* =========================================================
   GANHOS NINJA — Design System
   Paleta: preto profundo, verde ninja (gráfico em alta) e osso.
   Tipografia: display condensada e impactante + corpo legível.
========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500&display=swap');

:root {
  --ink: #0c0f0d;
  --ink-soft: #141815;
  --panel: #1a1f1b;
  --line: #2a312c;
  --bone: #f3f1e7;
  --bone-dim: #cfcabb;
  --ninja-green: #34c759;
  --ninja-green-deep: #1c7a34;
  --ninja-green-glow: #7bffa0;
  --gold: #e8b84b;
  --danger: #ef5350;

  --font-display: 'Archivo Black', 'Arial Black', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--ninja-green); color: var(--ink); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--ninja-green-deep);
  font-weight: 600;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--ninja-green);
  color: var(--ink);
  box-shadow: 0 8px 24px -8px rgba(52, 199, 89, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(52, 199, 89, 0.7); }
.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--bone); }
.btn-ghost-light {
  background: transparent;
  border-color: rgba(243, 241, 231, 0.35);
  color: var(--bone);
}
.btn-ghost-light:hover { background: rgba(243, 241, 231, 0.12); }

/* ---------- Header ---------- */
.site-header {
  background: var(--ink);
  color: var(--bone);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 44px; width: 44px; object-fit: contain; }
.brand-text {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.02em;
  line-height: 1.05;
}
.brand-text span { display: block; color: var(--ninja-green); font-size: 12px; letter-spacing: 0.18em; font-family: var(--font-mono); font-weight: 500; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--bone-dim);
  transition: color 0.15s ease;
  position: relative;
}
.main-nav a:hover, .main-nav a.active { color: var(--ninja-green-glow); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--bone);
  font-size: 26px;
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(ellipse at top right, rgba(52, 199, 89, 0.16), transparent 55%), var(--ink);
  color: var(--bone);
  padding: 84px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(52, 199, 89, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(52, 199, 89, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  margin: 14px 0 18px;
}
.hero h1 em { font-style: normal; color: var(--ninja-green); }
.hero p.lead { font-size: 17.5px; color: var(--bone-dim); max-width: 46ch; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.hero-stat-card .stat-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.hero-stat-card .stat-row:last-child { border-bottom: none; }
.hero-stat-card .stat-label { font-size: 13px; color: var(--bone-dim); }
.hero-stat-card .stat-value { font-family: var(--font-mono); font-weight: 600; color: var(--ninja-green-glow); }

/* ---------- Sections ---------- */
.section { padding: 68px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 34px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(26px, 3vw, 36px); margin: 8px 0 0; }
.section-head p { color: #52584f; max-width: 52ch; }

/* ---------- Category pills ---------- */
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.pill {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
}
.pill.active, .pill:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }

/* ---------- Post cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card {
  background: #fff;
  border: 1px solid #e6e2d2;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card .thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 60%, var(--ninja-green-deep) 140%);
  position: relative;
  overflow: hidden;
}
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .thumb .cat-tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--ninja-green);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.post-card .body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card .meta { font-family: var(--font-mono); font-size: 11.5px; color: #8a8578; text-transform: uppercase; letter-spacing: 0.06em; }
.post-card h3 { font-size: 19px; line-height: 1.3; margin: 0; }
.post-card h3 a:hover { color: var(--ninja-green-deep); }
.post-card p.excerpt { color: #5a5647; font-size: 14.5px; margin: 0; flex: 1; }
.post-card .read-more { font-size: 13.5px; font-weight: 700; color: var(--ninja-green-deep); display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }

.post-card.featured { grid-column: span 2; }
.post-card.featured .thumb { aspect-ratio: 16/8; }
.post-card.featured h3 { font-size: 26px; }

.empty-state { text-align: center; padding: 60px 20px; color: #8a8578; }

/* ---------- Newsletter / CTA ---------- */
.cta-banner {
  background: var(--ink);
  color: var(--bone);
  border-radius: 20px;
  padding: 46px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-banner h3 { font-family: var(--font-display); font-size: 26px; margin: 0 0 8px; }
.cta-banner p { color: var(--bone-dim); margin: 0; max-width: 44ch; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input {
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--bone);
  min-width: 240px;
  font-size: 14.5px;
}
.newsletter-form input::placeholder { color: #7d8378; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--bone-dim); padding: 56px 0 26px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 34px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { height: 34px; width: 34px; }
.footer-brand span { font-family: var(--font-display); font-size: 16px; color: var(--bone); }
.footer-grid h4 { color: var(--bone); font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a:hover { color: var(--ninja-green-glow); }
.footer-bottom { padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; }
.footer-disclaimer { font-size: 12.5px; color: #6c7166; max-width: 720px; margin-top: 14px; }

/* ---------- Post page ---------- */
.post-header { background: var(--ink); color: var(--bone); padding: 54px 0 48px; }
.post-header .eyebrow { color: var(--ninja-green-glow); }
.post-header h1 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 44px); line-height: 1.15; margin: 14px 0 18px; max-width: 24ch; }
.post-header .post-meta-row { display: flex; gap: 18px; flex-wrap: wrap; color: var(--bone-dim); font-size: 14px; font-family: var(--font-mono); }
.post-cover { margin-top: -30px; }
.post-cover img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 21/9; object-fit: cover; }

.post-layout { display: grid; grid-template-columns: 1fr 280px; gap: 48px; padding: 50px 0 70px; }
.post-content { font-size: 17.5px; color: #262922; max-width: 68ch; }
.post-content h2 { font-family: var(--font-display); font-size: 24px; margin: 38px 0 14px; }
.post-content h3 { font-size: 20px; margin: 28px 0 12px; }
.post-content p { margin: 0 0 18px; }
.post-content ul, .post-content ol { margin: 0 0 18px; padding-left: 22px; }
.post-content li { margin-bottom: 8px; }
.post-content a { color: var(--ninja-green-deep); text-decoration: underline; }
.post-content blockquote { border-left: 4px solid var(--ninja-green); margin: 24px 0; padding: 4px 0 4px 20px; color: #4a4a3f; font-style: italic; }
.post-content img { border-radius: var(--radius-sm); margin: 20px 0; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 34px; }
.tag-chip { font-size: 12.5px; font-family: var(--font-mono); background: #eae6d6; padding: 6px 12px; border-radius: 999px; color: #524d3d; }

.sidebar-card { background: #fff; border: 1px solid #e6e2d2; border-radius: var(--radius); padding: 22px; margin-bottom: 22px; }
.sidebar-card h4 { font-family: var(--font-display); font-size: 15px; margin: 0 0 14px; }
.related-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid #ecebe0; }
.related-item:last-child { border-bottom: none; }
.related-item .thumb-sm { width: 56px; height: 56px; border-radius: 8px; background: var(--ink); flex-shrink: 0; overflow: hidden; }
.related-item .thumb-sm img { width: 100%; height: 100%; object-fit: cover; }
.related-item h5 { font-size: 13.5px; line-height: 1.35; margin: 0; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination button {
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid #e6e2d2; background: #fff; font-weight: 700; font-size: 14px;
}
.pagination button.active { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---------- Simple page (about/contact) ---------- */
.page-hero { background: var(--ink); color: var(--bone); padding: 60px 0; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 44px); margin: 12px 0 0; }
.simple-page { padding: 54px 0; max-width: 74ch; margin: 0 auto; }
.simple-page h2 { font-family: var(--font-display); font-size: 22px; margin: 30px 0 12px; }
.contact-form { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.contact-form input, .contact-form textarea {
  padding: 13px 16px; border-radius: var(--radius-sm); border: 1.5px solid #ddd8c6; font-family: inherit; font-size: 15px;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 13px; color: #8a8578; }

/* ---------- Loading / skeleton ---------- */
.skeleton { background: linear-gradient(90deg, #ece8d9 25%, #f4f1e7 37%, #ece8d9 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: var(--radius); }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .post-card.featured { grid-column: span 2; }
  .post-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .main-nav { position: fixed; inset: 62px 0 0 0; background: var(--ink); flex-direction: column; padding: 26px 24px; gap: 18px; transform: translateX(100%); transition: transform 0.25s ease; }
  .main-nav.open { transform: translateX(0); }
  .nav-toggle { display: block; }
  .post-grid { grid-template-columns: 1fr; }
  .post-card.featured { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; align-items: flex-start; }
}
