/* Módulo 3 — O número π (estende o tema do módulo 1) */
@import url("../modulo-1/modulo.css");

/* Bloco introdutório (tom lavanda / cinza claro) */
.math-intro-tint {
  margin: 1.25rem 0;
  padding: 1.1rem 1.2rem;
  background: color-mix(in srgb, #7e57c2 12%, var(--surface));
  border: 1px solid color-mix(in srgb, #7e57c2 22%, var(--border));
  border-radius: var(--radius-md);
  font-size: 0.96rem;
  line-height: 1.65;
}

[data-theme="dark"] .math-intro-tint {
  background: rgba(126, 87, 178, 0.14);
  border-color: rgba(126, 87, 178, 0.35);
}

/* Pergunta com borda em L (amarelo/laranja) */
.math-prompt-l {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem 1.15rem 1.25rem;
  background: var(--surface);
  border-left: 8px solid var(--math-orange);
  border-bottom: 8px solid var(--math-orange);
  border-radius: 0 0 var(--radius-sm) 0;
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Caixa “Saiba mais” */
.math-saiba-mais {
  margin: 1.5rem 0;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: #faf8f5;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .math-saiba-mais {
  background: var(--surface);
}

.math-saiba-mais__tab {
  display: inline-block;
  margin: 0;
  padding: 0.45rem 1.15rem;
  background: linear-gradient(180deg, #ffeb3b, #ffc107);
  color: #1a1a1a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 0 0 var(--radius-sm) 0;
}

.math-saiba-mais__body {
  padding: 1rem 1.15rem 1.15rem;
  font-size: 0.92rem;
  line-height: 1.6;
}

.math-saiba-mais__body h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--math-navy);
}

[data-theme="dark"] .math-saiba-mais__body h3 {
  color: var(--text);
}

/* Destaque pergunta central (borda roxa suave) */
.math-question-pill {
  margin: 1.35rem auto;
  max-width: 36rem;
  padding: 1rem 1.2rem;
  text-align: center;
  border: 2px solid #7e57c2;
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, #7e57c2 8%, var(--surface));
  font-weight: 650;
  font-size: 1.02rem;
}

[data-theme="dark"] .math-question-pill {
  border-color: #9575cd;
  background: rgba(149, 117, 205, 0.12);
}

/* Parede de dígitos de π (bloco decorativo) */
.math-pi-wall {
  min-height: 200px;
  margin: 0;
  background: linear-gradient(
      145deg,
      rgba(46, 74, 138, 0.15),
      rgba(243, 112, 33, 0.1)
    ),
    repeating-linear-gradient(
      -8deg,
      transparent,
      transparent 8px,
      rgba(0, 0, 0, 0.04) 8px,
      rgba(0, 0, 0, 0.04) 9px
    );
  font-family: var(--mono);
  font-size: 0.62rem;
  line-height: 1.5;
  color: var(--muted);
  padding: 1rem 1.25rem;
  text-align: justify;
  overflow: hidden;
  border-radius: var(--radius-md);
}
