/* artigos-interativo.css — camada visual interativa dos artigos (tema místico).
   Barra de progresso, ícones desenhados em SVG, revelação ao rolar, quiz. */

/* ---------- Barra de progresso de leitura ---------- */
.read-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(232, 240, 239, 0.08);
  z-index: 999;
}
.read-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--c-teal), var(--c-violet));
  box-shadow: 0 0 8px rgba(0, 212, 200, 0.5);
  transition: width 0.1s linear;
}

/* ---------- Ícones desenhados ---------- */
.artigo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(0, 212, 200, 0.16), rgba(160, 111, 255, 0.08));
  border: 1px solid rgba(0, 212, 200, 0.3);
  color: var(--c-teal);
}
.artigo-icon svg { width: 18px; height: 18px; }

.h2-with-icon {
  display: flex;
  align-items: center;
  gap: 12px;
}
.h2-icon {
  transform: scale(0.5) rotate(-10deg);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}
.h2-icon.visible { transform: scale(1) rotate(0deg); opacity: 1; }

.reflexao-icon {
  width: 26px; height: 26px;
  color: var(--c-gold);
  border-color: rgba(200, 168, 75, 0.35);
  background: radial-gradient(circle at 35% 30%, rgba(200, 168, 75, 0.18), transparent);
  margin-right: 8px;
  vertical-align: middle;
  animation: sparkle-pulse 2.6s ease-in-out infinite;
}
@keyframes sparkle-pulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.12); opacity: 1; }
}

/* ---------- Barra de compartilhamento ---------- */
.share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 8px;
}
.share-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(232, 240, 239, 0.5);
  margin-right: 4px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(232, 240, 239, 0.18);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(232, 240, 239, 0.75);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}
.share-btn svg { width: 16px; height: 16px; }
.share-btn:hover {
  transform: translateY(-2px);
  border-color: var(--c-teal);
  color: var(--c-teal);
  box-shadow: 0 6px 16px rgba(0, 212, 200, 0.25);
}
.share-copy.copied { border-color: var(--c-teal); color: var(--c-teal); }

/* ---------- Revelação ao rolar ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Quiz ---------- */
.quiz-box {
  margin-top: 44px;
  padding: 26px 24px;
  border-radius: 18px;
  border: 1px solid rgba(0, 212, 200, 0.22);
  background: linear-gradient(160deg, rgba(0, 212, 200, 0.05), rgba(160, 111, 255, 0.05));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.quiz-title {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  letter-spacing: 0.5px;
  color: var(--c-gold);
  margin: 0 0 18px;
  text-align: center;
}
.quiz-q { margin-bottom: 22px; }
.quiz-q:last-of-type { margin-bottom: 0; }
.quiz-question {
  font-weight: 600;
  color: var(--c-white);
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.5;
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.quiz-opt {
  text-align: left;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid rgba(232, 240, 239, 0.16);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(232, 240, 239, 0.85);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.quiz-opt:hover:not(:disabled) {
  border-color: var(--c-teal);
  background: rgba(0, 212, 200, 0.08);
  transform: translateX(3px);
}
.quiz-opt:disabled { cursor: default; }
.quiz-opt.correct {
  border-color: var(--c-teal);
  background: rgba(0, 212, 200, 0.14);
  color: var(--c-teal);
  font-weight: 600;
}
.quiz-opt.selected-wrong {
  border-color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
  color: #ff9b9b;
}
.quiz-feedback {
  font-size: 13px;
  margin: 10px 0 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  min-height: 16px;
}
.quiz-feedback.show { opacity: 1; }
.quiz-feedback.fb-correct { color: var(--c-teal); }
.quiz-feedback.fb-wrong { color: #ff9b9b; }

.quiz-result {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(200, 168, 75, 0.08);
  border: 1px solid rgba(200, 168, 75, 0.25);
  display: flex;
  align-items: center;
  gap: 14px;
}
.quiz-result-icon {
  width: 34px; height: 34px;
  flex-shrink: 0;
  color: var(--c-gold);
}
.quiz-result-icon svg { width: 100%; height: 100%; }
.quiz-result-text {
  margin: 0;
  font-size: 14px;
  color: var(--c-white);
  line-height: 1.5;
}
.quiz-result.visible { animation: quiz-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes quiz-pop {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 560px) {
  .quiz-box { padding: 20px 16px; }
  .h2-with-icon { gap: 9px; }
  .artigo-icon { width: 28px; height: 28px; }
  .artigo-icon svg { width: 15px; height: 15px; }
}
