/* Melhorias visuais só para a aba Resumos do Study */

.study-resumo-formatado {
  line-height: 1.72;
  font-size: 16px;
  color: #e5eefc !important;
}

.study-resumo-formatado .srf-h3 {
  margin: 22px 0 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(59,130,246,.12);
  border: 1px solid rgba(96,165,250,.22);
  color: #ffffff !important;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .01em;
}

.study-resumo-formatado p {
  margin: 0 0 14px;
  color: #dbe7fb !important;
  font-weight: 500;
}

.study-resumo-formatado strong {
  color: #ffffff !important;
  font-weight: 900;
}

.study-resumo-formatado .srf-ul,
.study-resumo-formatado .srf-ol {
  margin: 10px 0 18px 18px;
  padding-left: 18px;
}

.study-resumo-formatado .srf-ul li,
.study-resumo-formatado .srf-ol li {
  margin: 7px 0;
  color: #dbe7fb !important;
}

.study-resumo-formatado .srf-callout {
  margin: 14px 0;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid transparent;
}

.study-resumo-formatado .srf-callout.mem {
  background: rgba(14,116,144,.18);
  border-color: rgba(34,211,238,.22);
  color: #d5f5ff !important;
}

.study-resumo-formatado .srf-callout.ex {
  background: rgba(21,128,61,.16);
  border-color: rgba(74,222,128,.20);
  color: #dcfce7 !important;
}

.study-resumo-formatado .srf-callout.warn {
  background: rgba(153,27,27,.18);
  border-color: rgba(248,113,113,.24);
  color: #fecaca !important;
}

.study-resumo-formatado .srf-callout.info {
  background: rgba(234,88,12,.18);
  border-color: rgba(251,146,60,.24);
  color: #ffedd5 !important;
}

.study-resumo-formatado .srf-topline {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  border-left: 4px solid #60a5fa;
  color: #f8fbff !important;
  font-weight: 700;
}

.study-resumo-formatado .srf-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(96,165,250,.35), rgba(96,165,250,0));
  margin: 18px 0;
}

.study-resumo-formatado br {
  line-height: 1.7;
}

/* melhora os cards sem mudar layout */
.study-chip,
.study-pill,
.badge,
.tag {
  font-weight: 800 !important;
}

.study-resumos-enhanced-card {
  border-radius: 18px;
}

/* Destaques premium dentro dos resumos do Study */

.study-resumo-formatado {
  max-width: 100%;
}

.study-resumo-formatado .srf-h3 {
  position: relative;
  background: linear-gradient(135deg, rgba(37,99,235,.22), rgba(14,165,233,.10)) !important;
  border: 1px solid rgba(96,165,250,.35) !important;
  box-shadow: 0 10px 24px rgba(15,23,42,.18);
}

.study-resumo-formatado .srf-h3::before {
  content: "◆";
  color: #38bdf8;
  margin-right: 8px;
}

.study-resumo-formatado .srf-mark {
  display: inline;
  padding: 2px 6px;
  border-radius: 7px;
  font-weight: 900;
  line-height: 1.8;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.study-resumo-formatado .srf-mark-prova {
  color: #052e16 !important;
  background: #86efac !important;
}

.study-resumo-formatado .srf-mark-banca {
  color: #082f49 !important;
  background: #7dd3fc !important;
}

.study-resumo-formatado .srf-mark-alerta {
  color: #450a0a !important;
  background: #fca5a5 !important;
}

.study-resumo-formatado .srf-mark-lei {
  color: #312e81 !important;
  background: #c4b5fd !important;
}

.study-resumo-formatado .srf-mark-memo {
  color: #431407 !important;
  background: #fdba74 !important;
}

.study-resumo-formatado .srf-box {
  margin: 16px 0;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,.28);
  background: rgba(15,23,42,.34);
}

.study-resumo-formatado .srf-box-title {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.study-resumo-formatado .srf-box.prova {
  border-color: rgba(34,197,94,.34);
  background: rgba(22,101,52,.18);
}

.study-resumo-formatado .srf-box.prova .srf-box-title {
  color: #86efac !important;
}

.study-resumo-formatado .srf-box.alerta {
  border-color: rgba(248,113,113,.38);
  background: rgba(127,29,29,.20);
}

.study-resumo-formatado .srf-box.alerta .srf-box-title {
  color: #fca5a5 !important;
}

.study-resumo-formatado .srf-box.banca {
  border-color: rgba(56,189,248,.38);
  background: rgba(12,74,110,.22);
}

.study-resumo-formatado .srf-box.banca .srf-box-title {
  color: #7dd3fc !important;
}

.study-resumo-formatado .srf-ul li::marker,
.study-resumo-formatado .srf-ol li::marker {
  color: #38bdf8;
  font-weight: 900;
}

.study-resumo-formatado .srf-ul li,
.study-resumo-formatado .srf-ol li {
  padding-left: 4px;
}

.study-resumo-formatado p {
  padding: 2px 0;
}

.study-resumo-formatado p:has(.srf-mark-alerta),
.study-resumo-formatado li:has(.srf-mark-alerta) {
  background: rgba(127,29,29,.10);
  border-radius: 10px;
  padding: 8px 10px;
}

.study-resumo-formatado p:has(.srf-mark-prova),
.study-resumo-formatado li:has(.srf-mark-prova) {
  background: rgba(22,101,52,.10);
  border-radius: 10px;
  padding: 8px 10px;
}

/* Novos blocos de revisão */
.study-resumo-formatado .srf-h3 {
  margin-top: 28px !important;
}

.study-resumo-formatado .srf-h3:contains("MAPA"),
.study-resumo-formatado .srf-h3:contains("CHECKLIST"),
.study-resumo-formatado .srf-h3:contains("QUESTÕES") {
  color: #ffffff !important;
}

.study-resumo-formatado .srf-review-final {
  background: linear-gradient(135deg, rgba(249,115,22,.35), rgba(37,99,235,.28)) !important;
  border: 1px solid rgba(251,146,60,.65) !important;
  border-radius: 16px !important;
  padding: 18px 20px !important;
  color: #ffffff !important;
}
