/* Resumos Study — cores vivas, texto branco e destaques fortes */

.study-resumo-formatado,
.study-resumo-formatado p,
.study-resumo-formatado li,
.study-resumo-formatado div,
.study-resumo-formatado span {
  color: #ffffff !important;
}

.study-resumo-formatado {
  font-size: 16.5px !important;
  line-height: 1.82 !important;
  font-weight: 600 !important;
}

/* Títulos principais */
.study-resumo-formatado .srf-h3 {
  color: #ffffff !important;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 45%, #2563eb 100%) !important;
  border: 1px solid rgba(251,146,60,.85) !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 14px 36px rgba(249,115,22,.22) !important;
  font-size: 19px !important;
  text-transform: uppercase;
}

.study-resumo-formatado .srf-h3::before {
  color: #fff7ed !important;
}

/* Primeira chamada do resumo */
.study-resumo-formatado .srf-topline {
  color: #ffffff !important;
  background: linear-gradient(135deg, rgba(249,115,22,.28), rgba(15,23,42,.65)) !important;
  border-left: 5px solid #fb923c !important;
  border-top: 1px solid rgba(251,146,60,.35) !important;
  border-bottom: 1px solid rgba(251,146,60,.22) !important;
  font-weight: 800 !important;
}

/* Parágrafos */
.study-resumo-formatado p {
  color: #ffffff !important;
  background: rgba(255,255,255,.025);
  border-radius: 10px;
}

/* Listas */
.study-resumo-formatado .srf-ul li,
.study-resumo-formatado .srf-ol li {
  color: #ffffff !important;
  font-weight: 650 !important;
}

.study-resumo-formatado .srf-ul li::marker,
.study-resumo-formatado .srf-ol li::marker {
  color: #fb923c !important;
}

/* Destaques inline */
.study-resumo-formatado .srf-mark {
  color: #020617 !important;
  font-weight: 950 !important;
  padding: 3px 8px !important;
  border-radius: 8px !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18);
}

/* Laranja: memorizar, exemplo, checklist */
.study-resumo-formatado .srf-mark-memo {
  background: #fb923c !important;
  color: #111827 !important;
}

/* Verde: prioridade, mais cai, revisão */
.study-resumo-formatado .srf-mark-prova {
  background: #22c55e !important;
  color: #052e16 !important;
}

/* Azul: IDECAN, banca, edital */
.study-resumo-formatado .srf-mark-banca {
  background: #38bdf8 !important;
  color: #082f49 !important;
}

/* Vermelho: pegadinha, cuidado, atenção */
.study-resumo-formatado .srf-mark-alerta {
  background: #f87171 !important;
  color: #450a0a !important;
}

/* Roxo: CTB, lei, JARI, CONTRAN */
.study-resumo-formatado .srf-mark-lei {
  background: #c084fc !important;
  color: #2e1065 !important;
}

/* Caixas de destaque */
.study-resumo-formatado .srf-box {
  color: #ffffff !important;
  border-radius: 16px !important;
  padding: 18px 20px !important;
  margin: 18px 0 !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.20);
}

.study-resumo-formatado .srf-box-title {
  color: #ffffff !important;
  font-size: 15px !important;
  letter-spacing: .04em;
}

/* Caixa verde */
.study-resumo-formatado .srf-box.prova {
  background: linear-gradient(135deg, rgba(22,163,74,.30), rgba(20,83,45,.38)) !important;
  border: 1px solid rgba(74,222,128,.55) !important;
}

/* Caixa vermelha */
.study-resumo-formatado .srf-box.alerta {
  background: linear-gradient(135deg, rgba(220,38,38,.32), rgba(127,29,29,.45)) !important;
  border: 1px solid rgba(248,113,113,.65) !important;
}

/* Caixa azul */
.study-resumo-formatado .srf-box.banca {
  background: linear-gradient(135deg, rgba(2,132,199,.32), rgba(12,74,110,.45)) !important;
  border: 1px solid rgba(56,189,248,.65) !important;
}

/* Callouts antigos */
.study-resumo-formatado .srf-callout {
  color: #ffffff !important;
  border-radius: 16px !important;
  font-weight: 800 !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

.study-resumo-formatado .srf-callout.mem {
  background: linear-gradient(135deg, rgba(249,115,22,.35), rgba(154,52,18,.45)) !important;
  border-color: rgba(251,146,60,.70) !important;
}

.study-resumo-formatado .srf-callout.ex {
  background: linear-gradient(135deg, rgba(34,197,94,.30), rgba(22,101,52,.45)) !important;
  border-color: rgba(74,222,128,.65) !important;
}

.study-resumo-formatado .srf-callout.warn {
  background: linear-gradient(135deg, rgba(239,68,68,.35), rgba(127,29,29,.45)) !important;
  border-color: rgba(248,113,113,.70) !important;
}

.study-resumo-formatado .srf-callout.info {
  background: linear-gradient(135deg, rgba(59,130,246,.32), rgba(30,64,175,.45)) !important;
  border-color: rgba(96,165,250,.70) !important;
}

/* Cards/área do resumo dentro do Study */
body:has(.study-resumo-formatado) article,
body:has(.study-resumo-formatado) section,
body:has(.study-resumo-formatado) main {
  color: #ffffff !important;
}

/* Texto cinza do card vira branco */
body:has(.study-resumo-formatado) .text-slate-300,
body:has(.study-resumo-formatado) .text-slate-400,
body:has(.study-resumo-formatado) .text-slate-500,
body:has(.study-resumo-formatado) .muted,
body:has(.study-resumo-formatado) small {
  color: #ffffff !important;
  opacity: 1 !important;
}

/* Badges mais vibrantes */
body:has(.study-resumo-formatado) .badge,
body:has(.study-resumo-formatado) .tag,
body:has(.study-resumo-formatado) .pill {
  color: #ffffff !important;
  font-weight: 900 !important;
  border-radius: 999px !important;
}

/* Botões com laranja */
body:has(.study-resumo-formatado) button {
  font-weight: 900 !important;
}

body:has(.study-resumo-formatado) button:hover {
  filter: brightness(1.12) saturate(1.15);
}

/* Divisórias */
.study-resumo-formatado .srf-divider {
  background: linear-gradient(90deg, #fb923c, rgba(59,130,246,.6), transparent) !important;
  height: 2px !important;
  margin: 24px 0 !important;
}

/* Exemplos de pegadinha em formato de questão */
.study-resumo-formatado .srf-h3 {
  scroll-margin-top: 110px;
}

.study-resumo-formatado .srf-h3:nth-of-type(n) {
  color: #ffffff !important;
}

.study-resumo-formatado p:has(.srf-mark-alerta),
.study-resumo-formatado li:has(.srf-mark-alerta) {
  border-left: 4px solid #fb7185 !important;
}

.study-resumo-formatado p:has(.srf-mark-memo),
.study-resumo-formatado li:has(.srf-mark-memo) {
  border-left: 4px solid #fb923c !important;
}

.study-resumo-formatado p:has(.srf-mark-banca),
.study-resumo-formatado li:has(.srf-mark-banca) {
  border-left: 4px solid #38bdf8 !important;
}

.study-resumo-formatado p strong {
  color: #ffffff !important;
  background: linear-gradient(90deg, rgba(249,115,22,.85), rgba(37,99,235,.75));
  padding: 2px 7px;
  border-radius: 8px;
}

/* Artigo literal mais cobrado */
.study-resumo-formatado .srf-h3 {
  color: #ffffff !important;
}

.study-resumo-formatado p:has(.srf-mark-lei),
.study-resumo-formatado li:has(.srf-mark-lei) {
  background: linear-gradient(135deg, rgba(124,58,237,.28), rgba(30,64,175,.22)) !important;
  border-left: 5px solid #c084fc !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
}

.study-resumo-formatado p:has(.srf-mark-alerta),
.study-resumo-formatado li:has(.srf-mark-alerta) {
  background: linear-gradient(135deg, rgba(239,68,68,.25), rgba(127,29,29,.24)) !important;
}

.study-resumo-formatado p:has(.srf-mark-memo),
.study-resumo-formatado li:has(.srf-mark-memo) {
  background: linear-gradient(135deg, rgba(249,115,22,.28), rgba(154,52,18,.22)) !important;
}

.study-resumo-formatado p strong {
  color: #ffffff !important;
}

/* Bloco de Resoluções CONTRAN/SENATRAN */
.study-resumo-formatado p:has(.srf-mark-lei),
.study-resumo-formatado li:has(.srf-mark-lei) {
  background: linear-gradient(135deg, rgba(124,58,237,.30), rgba(249,115,22,.20)) !important;
  border-left: 5px solid #f97316 !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
}

.study-resumo-formatado p:has(.srf-mark-banca),
.study-resumo-formatado li:has(.srf-mark-banca) {
  background: linear-gradient(135deg, rgba(14,165,233,.28), rgba(37,99,235,.22)) !important;
  border-left: 5px solid #38bdf8 !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
}

.study-resumo-formatado p strong {
  color: #ffffff !important;
}
