MediaWiki:Common.css: Difference between revisions

From determinar.ia.br - Determine suas informações
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 110: Line 110:
   word-break: break-word;
   word-break: break-word;
}
}
/* ===== Banner Hero com Canvas Interativo (Corrigido) ===== */
/* ============================================================
  HERO — Mapa do Brasil + Grafo Vivo (determinar.ia.br)
  Substitui o bloco "Banner Hero com Canvas Interativo" do
  Common.css atual. Não precisa mais do canvas de partículas
  nem do jQuery: a animação agora é 100% SVG nativo (SMIL),
  mais leve e sem custo de CPU do canvas.
  ============================================================ */
 
.wiki-hero-wrapper {
.wiki-hero-wrapper {
   position: relative;
   position: relative;
   background-color: #030712 !important;
   background: radial-gradient(120% 140% at 15% 20%, #0c3626 0%, #062a20 45%, #041a13 100%);
   border-radius: 16px;
   border-radius: 16px;
   overflow: hidden;
   overflow: hidden;
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
   box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
   margin-bottom: 24px;
   margin-bottom: 24px;
   min-height: 380px; /* Garante altura para o canvas aparecer */
   padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
 
.wiki-hero-canvas-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
 
#hero-particle-canvas {
  width: 100%;
  height: 100%;
  display: block;
}
}


Line 143: Line 132:
   position: absolute;
   position: absolute;
   top: 50%;
   top: 50%;
   left: 50%;
   right: 8%;
   transform: translate(-50%, -50%);
   transform: translateY(-50%);
   width: 350px;
   width: 480px;
   height: 350px;
   height: 480px;
   background: radial-gradient(circle, rgba(13, 110, 253, 0.4) 0%, transparent 70%);
   background: radial-gradient(circle, rgba(16, 185, 129, .22) 0%, transparent 70%);
  z-index: 2;
   pointer-events: none;
   pointer-events: none;
  z-index: 1;
}
}


.wiki-hero-content {
.wiki-hero-content {
   position: relative;
   position: relative;
   z-index: 3;
   z-index: 2;
   max-width: 800px;
   max-width: 1180px;
   margin: 0 auto;
   margin: 0 auto;
   padding: 40px 20px;
   padding: 56px 32px;
   text-align: center;
}
   color: #ffffff;
 
.wiki-hero-grid {
   display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 24px;
}
 
/* ---- Coluna de texto ---- */
 
.wiki-hero-eyebrow {
  display: inline-block;
  border: 1px solid rgba(245, 200, 0, .45);
   color: #f5c800;
  background: rgba(245, 200, 0, .08);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
}


.wiki-hero-title {
.wiki-hero-title {
   font-size: 2rem;
   font-size: clamp(1.7rem, 3.4vw, 2.6rem);
   font-weight: 800;
   font-weight: 800;
   line-height: 1.25;
   line-height: 1.22;
  margin-bottom: 16px;
   color: #ffffff !important;
   color: #ffffff !important;
   border-bottom: none !important;
   border-bottom: none !important;
   padding-bottom: 0 !important;
   padding-bottom: 0 !important;
  margin: 0 0 16px;
}
}
.wiki-hero-title .hl { color: #f5c800; }


.wiki-hero-subtitle {
.wiki-hero-subtitle {
   font-size: 1.05rem;
   font-size: 1rem;
   color: #94a3b8;
  color: #9db9ab;
   line-height: 1.6;
  line-height: 1.65;
   margin-bottom: 0;
  margin-bottom: 26px;
  max-width: 46ch;
}
 
.wiki-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}
 
.wiki-hero-ctas a {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none !important;
}
 
.wiki-hero-btn-primary {
  background: #10b981 !important;
   color: #062a20 !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, .35);
}
.wiki-hero-btn-primary:hover { background: #34d399 !important; }
 
.wiki-hero-btn-outline {
  background: transparent !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, .25);
}
.wiki-hero-btn-outline:hover { border-color: rgba(245, 200, 0, .6); color: #f5c800 !important; }
 
.wiki-hero-stats {
  display: flex;
  gap: 28px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 18px;
}
 
.wiki-hero-stats div { display: flex; flex-direction: column; }
 
.wiki-hero-stats strong {
  color: #f5c800;
  font-size: 1.5rem;
  font-weight: 800;
   line-height: 1;
}
 
.wiki-hero-stats span {
  color: #9db9ab;
  font-size: .78rem;
   margin-top: 4px;
}
 
/* ---- Coluna do grafo ---- */
 
.wiki-hero-graph {
  position: relative;
  width: 100%;
}
 
.wiki-hero-graph svg {
  width: 100%;
  height: auto;
  display: block;
}
 
/* ---- Responsivo ---- */
 
@media (max-width: 860px) {
  .wiki-hero-grid { grid-template-columns: 1fr; }
  .wiki-hero-content { padding: 40px 20px; }
  .wiki-hero-graph { order: -1; max-width: 360px; margin: 0 auto 8px; }
  .wiki-hero-subtitle { max-width: none; }
  .wiki-hero-stats { gap: 20px; flex-wrap: wrap; }
}
}
/* ---- Acessibilidade: respeita "reduzir movimento" ---- */
@media (prefers-reduced-motion: reduce) {
  .wiki-hero-graph svg * { animation: none !important; }
}
/* ---- Dark mode do skin (mantém coerência, hero já é escuro) ---- */
html.skin-theme-clientpref-night .wiki-hero-wrapper { box-shadow: 0 10px 30px rgba(0,0,0,.4); }

Latest revision as of 01:53, 12 August 2026

/* ===== Infobox Médico — v3.1 ===== */
.infobox-medico {
  max-width: 520px; margin: 0 auto;
  background: #ffffff; border: 1px solid #e5e7eb;
  border-radius: 16px; padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.infobox-medico-imagem { text-align: center; margin-bottom: 12px; }
.infobox-medico-imagem img { border-radius: 12px; }
.infobox-medico-titulo { font-size: 1.45rem; font-weight: 800; color: #111827; line-height: 1.25; }
.infobox-medico-descricao { color: #6b7280; font-size: .95rem; margin-top: 2px; }
.infobox-medico-chips { margin-top: 10px; }
.chip-especialidade {
  display: inline-block; background: #eef2ff; color: #3730a3;
  border: 1px solid #c7d2fe; border-radius: 999px;
  padding: 3px 12px; margin: 3px 4px 0 0; font-size: .78rem; font-weight: 600;
}
.medico-avaliacao { margin-top: 12px; font-size: .92rem; color: #374151; }
.medico-estrelas { color: #f59e0b; letter-spacing: 2px; }
.medico-nota { font-weight: 700; }
.infobox-medico-tabela { width: 100%; border-collapse: collapse; margin-top: 12px; }
.infobox-medico-tabela th {
  text-align: left; vertical-align: top; color: #6b7280;
  font-weight: 600; font-size: .82rem; text-transform: uppercase;
  padding: 6px 10px 6px 0; width: 110px; border-bottom: 1px solid #f3f4f6;
}
.infobox-medico-tabela td { padding: 6px 0; font-size: .92rem; color: #111827; border-bottom: 1px solid #f3f4f6; }
.infobox-medico-bio { margin-top: 14px; color: #374151; font-size: .95rem; line-height: 1.6; }
.infobox-medico-secao {
  margin-top: 18px; font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: #6b7280; border-bottom: 2px solid #e5e7eb; padding-bottom: 6px;
}
.infobox-medico-pubs { margin: 8px 0 0; padding-left: 20px; font-size: .9rem; }
.infobox-medico-pubs li { margin: 4px 0; }
.infobox-medico-rodape { margin-top: 16px; font-size: .75rem; color: #9ca3af; border-top: 1px dashed #e5e7eb; padding-top: 10px; }
.infobox-medico a.external { background-image: none; padding-right: 0; }

/* CTA — azul de verdade (vence Timeless e Minerva) */
.cta-agendar { margin: 18px 0 6px; text-align: center; }
.cta-agendar a.external,
.cta-agendar a,
.content .cta-agendar a.external {
  display: block !important;
  background: #0d6efd !important;
  color: #ffffff !important;
  padding: 14px 18px !important;
  border-radius: 14px !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(13,110,253,.35) !important;
}
.cta-agendar a.external:hover,
.cta-agendar a:hover { background: #0a58ca !important; color: #ffffff !important; }

/* Desambiguação — card âmbar */
.medico-desamb {
  margin: 18px 0 0; border: 1px solid #e5e7eb; border-left: 4px solid #f59e0b;
  border-radius: 10px; background: #fffbeb; overflow: hidden;
}
.medico-desamb-titulo {
  padding: 10px 14px; font-size: .9rem; color: #92400e; font-weight: 600;
  cursor: pointer; user-select: none;
}
.medico-desamb-titulo::after { content: " ▴"; }
.medico-desamb.fechado .medico-desamb-titulo::after { content: " ▾"; }
.medico-desamb-lista { margin: 0; padding: 4px 16px 12px 34px; color: #78350f; font-size: .85rem; line-height: 1.5; }
.medico-desamb.fechado .medico-desamb-lista { display: none; }

/* FAQ — cards abaixo da desambiguação */
.medico-faq {
  margin: 10px 0 0; border: 1px solid #e5e7eb; border-radius: 10px;
  background: #f9fafb; overflow: hidden;
}
.medico-faq-q {
  padding: 12px 14px; font-weight: 600; font-size: .92rem; color: #111827;
  cursor: pointer; user-select: none;
}
.medico-faq-q::before { content: "❓ "; }
.medico-faq-q::after { content: " ▴"; color: #9ca3af; }
.medico-faq.fechado .medico-faq-q::after { content: " ▾"; }
.medico-faq-a {
  padding: 10px 14px; color: #374151; font-size: .88rem; line-height: 1.55;
  border-top: 1px dashed #d1d5db;
}
.medico-faq-a::before { content: "R: "; font-weight: 600; color: #0d6efd; }
.medico-faq.fechado .medico-faq-a { display: none; }

/* Mapa / publicações */
.medico-mapa { margin: 16px 0 0; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.medico-mapa iframe { display: block; border: 0; width: 100%; }
.medico-mapa-link { margin: 14px 0 0; }
.medico-mais-pubs { margin-top: 10px; font-size: .9rem; font-weight: 600; }

/* Dark mode */
html.skin-theme-clientpref-night .infobox-medico { background: #111827; border-color: #374151; }
html.skin-theme-clientpref-night .infobox-medico-titulo { color: #f3f4f6; }
html.skin-theme-clientpref-night .medico-desamb { background: #2a2414; border-color: #444; }
html.skin-theme-clientpref-night .medico-desamb-titulo { color: #fbbf24; }
html.skin-theme-clientpref-night .medico-desamb-lista { color: #d6c8a8; }
html.skin-theme-clientpref-night .medico-faq { background: #1f2937; border-color: #374151; }
html.skin-theme-clientpref-night .medico-faq-q { color: #f3f4f6; }
html.skin-theme-clientpref-night .medico-faq-a { color: #d1d5db; }
/* URLs longas não estouram o card */
.infobox-medico-tabela td,
.infobox-medico-pubs li,
.medico-mais-pubs {
  overflow-wrap: anywhere;
  word-break: break-word;
}
/* ============================================================
   HERO — Mapa do Brasil + Grafo Vivo (determinar.ia.br)
   Substitui o bloco "Banner Hero com Canvas Interativo" do
   Common.css atual. Não precisa mais do canvas de partículas
   nem do jQuery: a animação agora é 100% SVG nativo (SMIL),
   mais leve e sem custo de CPU do canvas.
   ============================================================ */

.wiki-hero-wrapper {
  position: relative;
  background: radial-gradient(120% 140% at 15% 20%, #0c3626 0%, #062a20 45%, #041a13 100%);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  margin-bottom: 24px;
  padding: 0;
}

.wiki-hero-wrapper::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 8%;
  transform: translateY(-50%);
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(16, 185, 129, .22) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.wiki-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 32px;
}

.wiki-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 24px;
}

/* ---- Coluna de texto ---- */

.wiki-hero-eyebrow {
  display: inline-block;
  border: 1px solid rgba(245, 200, 0, .45);
  color: #f5c800;
  background: rgba(245, 200, 0, .08);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.wiki-hero-title {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.22;
  color: #ffffff !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
  margin: 0 0 16px;
}

.wiki-hero-title .hl { color: #f5c800; }

.wiki-hero-subtitle {
  font-size: 1rem;
  color: #9db9ab;
  line-height: 1.65;
  margin-bottom: 26px;
  max-width: 46ch;
}

.wiki-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.wiki-hero-ctas a {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none !important;
}

.wiki-hero-btn-primary {
  background: #10b981 !important;
  color: #062a20 !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, .35);
}
.wiki-hero-btn-primary:hover { background: #34d399 !important; }

.wiki-hero-btn-outline {
  background: transparent !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, .25);
}
.wiki-hero-btn-outline:hover { border-color: rgba(245, 200, 0, .6); color: #f5c800 !important; }

.wiki-hero-stats {
  display: flex;
  gap: 28px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 18px;
}

.wiki-hero-stats div { display: flex; flex-direction: column; }

.wiki-hero-stats strong {
  color: #f5c800;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.wiki-hero-stats span {
  color: #9db9ab;
  font-size: .78rem;
  margin-top: 4px;
}

/* ---- Coluna do grafo ---- */

.wiki-hero-graph {
  position: relative;
  width: 100%;
}

.wiki-hero-graph svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- Responsivo ---- */

@media (max-width: 860px) {
  .wiki-hero-grid { grid-template-columns: 1fr; }
  .wiki-hero-content { padding: 40px 20px; }
  .wiki-hero-graph { order: -1; max-width: 360px; margin: 0 auto 8px; }
  .wiki-hero-subtitle { max-width: none; }
  .wiki-hero-stats { gap: 20px; flex-wrap: wrap; }
}

/* ---- Acessibilidade: respeita "reduzir movimento" ---- */
@media (prefers-reduced-motion: reduce) {
  .wiki-hero-graph svg * { animation: none !important; }
}

/* ---- Dark mode do skin (mantém coerência, hero já é escuro) ---- */
html.skin-theme-clientpref-night .wiki-hero-wrapper { box-shadow: 0 10px 30px rgba(0,0,0,.4); }