/* =========================================================
   GEO.CSS - Generative Engine Optimization
   Blocos para LLMs e IA generativa (Answer Box, citações,
   datas visíveis, definições, "Sobre esta informação")
   ========================================================= */

/* ---------- ANSWER BOX (resposta direta no topo) ---------- */
.geo-answer-box {
  background: linear-gradient(135deg, #f0f7ff 0%, #fff8e8 100%);
  border-left: 5px solid var(--su-blue, #003C71);
  border-radius: 10px;
  padding: 22px 26px;
  margin: 24px 0 36px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 60, 113, 0.05);
}
.geo-answer-box::before {
  content: "Resposta rápida";
  position: absolute;
  top: -10px;
  left: 18px;
  background: var(--su-blue, #003C71);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}
.geo-answer-box p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #1f2937;
}
.geo-answer-box p + p { margin-top: 12px; }
.geo-answer-box strong { color: var(--su-blue, #003C71); }

/* ---------- UPDATE DATE (data visível "Atualizado em…") ---------- */
.geo-update-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 16px;
  padding: 6px 10px;
  background: #f3f4f6;
  border-radius: 6px;
}
.geo-update-date::before {
  content: "📅";
  font-size: 14px;
}
.geo-update-date time { color: #1f2937; font-weight: 600; }
.geo-update-date .geo-source { color: #4b5563; }
.geo-update-date .geo-source::before { content: " · "; }

/* ---------- DEFINITION LIST ---------- */
.geo-definitions {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px 24px;
  margin: 24px 0;
}
.geo-definitions h2,
.geo-definitions h3 {
  font-size: 1.1rem;
  margin: 0 0 14px;
  color: var(--su-blue, #003C71);
}
.geo-definitions dl { margin: 0; }
.geo-definitions dt {
  font-weight: 700;
  color: #1f2937;
  margin-top: 12px;
  font-size: 0.98rem;
}
.geo-definitions dt:first-of-type { margin-top: 0; }
.geo-definitions dd {
  margin: 4px 0 0;
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ---------- SOURCE CITATION (Sobre esta informação) ---------- */
.geo-source-citation {
  background: #fafafa;
  border: 1px dashed #d1d5db;
  border-radius: 10px;
  padding: 18px 22px;
  margin: 36px 0 20px;
  font-size: 0.92rem;
  color: #4b5563;
}
.geo-source-citation h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #1f2937;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.geo-source-citation h3::before {
  content: "ℹ";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--su-blue, #003C71);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}
.geo-source-citation ul {
  margin: 0;
  padding-left: 18px;
}
.geo-source-citation li { margin: 4px 0; }
.geo-source-citation a {
  color: var(--su-blue, #003C71);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.geo-source-citation a:hover { color: var(--su-orange, #ff6b35); }

/* ---------- KEY FACT GRID (números-chave para AI) ---------- */
.geo-key-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 24px 0;
}
.geo-key-fact {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px 18px;
  text-align: center;
}
.geo-key-fact .number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--su-blue, #003C71);
}
.geo-key-fact .label {
  display: block;
  font-size: 0.82rem;
  color: #6b7280;
  margin-top: 4px;
}

/* ---------- TABLE GEO (com TH scope) ---------- */
.geo-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
}
.geo-table thead {
  background: var(--su-blue, #003C71);
  color: #fff;
}
.geo-table th, .geo-table td {
  border: 1px solid #e5e7eb;
  padding: 12px 14px;
  text-align: left;
}
.geo-table th[scope="row"] {
  background: #f9fafb;
  font-weight: 700;
  color: #1f2937;
}
.geo-table tbody tr:nth-child(odd) { background: #fafafa; }
.geo-table caption {
  caption-side: bottom;
  margin-top: 10px;
  font-size: 0.85rem;
  color: #6b7280;
  text-align: left;
}
