/* ═════════════════════════════════════════════════════════════════════════════
   SEO Specialist — CSS Específico
   Estende o Design System Universal (post-guide.css)
   Apenas customizações visuais específicas deste post
   ═════════════════════════════════════════════════════════════════════════════ */

/* ── VARIÁVEIS ESPECÍFICAS — Dark Mode ────────────────────────────────────── */
.post-guide {
  --sg-clay: #D45628;
  --sg-clay-d: #B8471E;
  --sg-olive: #6B8C4E;
  --sg-oat: #212124;
  --sg-slate: #FFFFFF;
  --sg-ivory: #000000;
  --sg-paper: #0C0C0D;
  --sg-g100: #161618;
  --sg-g200: #18181B;
  --sg-g300: #27272A;
  --sg-g500: #71717A;
  --sg-g700: #A1A1AA;
}

html.light-mode .post-guide {
  --sg-clay: #D45628;
  --sg-clay-d: #B8471E;
  --sg-olive: #6B8C4E;
  --sg-oat: #E7E5E4;
  --sg-slate: #141413;
  --sg-ivory: #FAF9F6;
  --sg-paper: #F2F0EA;
  --sg-g100: #FFFFFF;
  --sg-g200: #F2F0EA;
  --sg-g300: #C9C5BF;
  --sg-g500: #B5B4B0;
  --sg-g700: #87867F;
}

/* ── SUMMARY STRIP ────────────────────────────────────────────────────────── */
.post-guide .summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 0 32px;
  padding: 20px 24px;
  border: 1px dashed var(--sg-g300);
  border-radius: 4px;
  background: var(--sg-paper);
}

.post-guide .summary-strip .sum-cell {
  flex: 1 1 120px;
  min-width: 120px;
}

.post-guide .summary-strip .k {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sg-g500);
  margin-bottom: 4px;
}

.post-guide .summary-strip .v {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--sg-slate);
}

.post-guide .summary-strip .v.accent {
  color: var(--sg-clay);
}

/* ── STEPS / BADGES ───────────────────────────────────────────────────────── */
.post-guide .step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--sg-g500);
  margin-bottom: 8px;
}

.post-guide .step::before {
  content: attr(data-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sg-clay);
  color: var(--sg-ivory);
  font-size: 11px;
  font-weight: 700;
}

.post-guide .badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 2px;
  background: var(--sg-g100);
  color: var(--sg-g700);
  border: 1px solid var(--sg-g200);
}

.post-guide .badge.clay {
  background: var(--sg-clay);
  color: var(--sg-ivory);
  border-color: var(--sg-clay);
}

.post-guide .badge.olive {
  background: var(--sg-olive);
  color: var(--sg-ivory);
  border-color: var(--sg-olive);
}

/* ── MILESTONES ───────────────────────────────────────────────────────────── */
.post-guide .milestone {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 24px 0;
  padding: 20px;
  border: 1px dashed var(--sg-g300);
  border-radius: 4px;
  background: var(--sg-paper);
}

.post-guide .milestone .milestone-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sg-clay);
  flex-shrink: 0;
  margin-top: 4px;
}

.post-guide .milestone .milestone-content h4 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 18px;
}

.post-guide .milestone .milestone-content p {
  margin: 0;
  font-size: 15px;
  color: var(--sg-g700);
}

/* ── GAUGE / METRIC GRID ──────────────────────────────────────────────────── */
.post-guide .metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.post-guide .metric-card {
  padding: 20px;
  border: 1px dashed var(--sg-g300);
  border-radius: 4px;
  background: var(--sg-paper);
  text-align: center;
}

.post-guide .metric-card .metric-value {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--sg-slate);
  line-height: 1;
  margin-bottom: 8px;
}

.post-guide .metric-card .metric-value.good {
  color: var(--sg-olive);
}

.post-guide .metric-card .metric-value.warn {
  color: #C9A84C;
}

.post-guide .metric-card .metric-value.bad {
  color: var(--sg-clay);
}

.post-guide .metric-card .metric-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sg-g500);
}

/* ── PROGRESS NAV (template-level, mas estilizado aqui) ───────────────────── */
.post-guide .progress-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sg-g300);
  padding: 12px 0;
  margin: 0 0 24px;
}

.post-guide .progress-nav-inner {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 24px;
  scrollbar-width: none;
}

.post-guide .progress-nav-inner::-webkit-scrollbar {
  display: none;
}

.post-guide .progress-nav a {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--sg-g500);
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.post-guide .progress-nav a:hover,
.post-guide .progress-nav a.active {
  background: var(--sg-g100);
  color: var(--sg-slate);
}

/* ── TABS ─────────────────────────────────────────────────────────────────── */
.post-guide .tabs {
  margin: 24px 0;
  border: 1px dashed var(--sg-g300);
  border-radius: 4px;
  overflow: hidden;
  background: var(--sg-paper);
}

.post-guide .tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 1.5px solid var(--sg-g300);
  background: var(--sg-g100);
}

.post-guide .tab-nav button {
  flex: 1;
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--sg-g500);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
  margin-bottom: -1.5px;
}

.post-guide .tab-nav button:hover {
  color: var(--sg-slate);
  background: var(--sg-g200);
}

.post-guide .tab-nav button.active {
  color: var(--sg-clay);
  border-bottom-color: var(--sg-clay);
  background: var(--sg-paper);
}

.post-guide .tab-panel {
  display: none;
  padding: 20px;
}

.post-guide .tab-panel.active {
  display: block;
}

/* ── REPORT MOCK ──────────────────────────────────────────────────────────── */
.post-guide .report-mock {
  margin: 24px 0;
  border: 1px dashed var(--sg-g300);
  border-radius: 4px;
  background: var(--sg-paper);
  overflow: hidden;
}

.post-guide .report-mock-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--sg-g100);
  border-bottom: 1.5px solid var(--sg-g300);
}

.post-guide .report-mock-header .report-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.post-guide .report-mock-header .report-dot.red { background: var(--sg-clay); }
.post-guide .report-mock-header .report-dot.yellow { background: #C9A84C; }
.post-guide .report-mock-header .report-dot.green { background: var(--sg-olive); }

.post-guide .report-mock-header .report-title {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--sg-slate);
}

.post-guide .report-mock-body {
  padding: 20px;
}

.post-guide .report-mock-body pre {
  margin: 0;
  background: transparent;
  color: var(--sg-slate);
  font-size: 13px;
  padding: 0;
}

/* ── RISK TABLE ───────────────────────────────────────────────────────────── */
.post-guide .risk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.post-guide .risk-table th {
  text-align: left;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sg-g500);
  padding: 12px 16px;
  background: var(--sg-g100);
  border-bottom: 1.5px solid var(--sg-g300);
}

.post-guide .risk-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--sg-g200);
}

.post-guide .risk-table .risk-high {
  color: var(--sg-clay);
  font-weight: 600;
}

.post-guide .risk-table .risk-medium {
  color: #C9A84C;
  font-weight: 600;
}

.post-guide .risk-table .risk-low {
  color: var(--sg-olive);
  font-weight: 600;
}

/* ── MOBILE ───────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .post-guide .summary-strip {
    padding: 16px;
    gap: 12px;
  }

  .post-guide .summary-strip .sum-cell {
    flex: 1 1 100px;
    min-width: 100px;
  }

  .post-guide .summary-strip .v {
    font-size: 18px;
  }

  .post-guide .metric-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .post-guide .metric-card {
    padding: 16px;
  }

  .post-guide .metric-card .metric-value {
    font-size: 24px;
  }

  .post-guide .milestone {
    padding: 16px;
  }

  .post-guide .tab-nav button {
    font-size: 12px;
    padding: 10px 12px;
  }

  .post-guide .progress-nav-inner {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .post-guide .metric-grid {
    grid-template-columns: 1fr;
  }

  .post-guide .summary-strip .sum-cell {
    flex: 1 1 100%;
  }
}
