/* ================================
   ARTQUIZ – CSS COMPLETO (PRINT + LOADING BONITO)
   ================================ */

/* Overlay */
.aq-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

/* Card */
.aq-content {
  background: #fff;
  width: 92%;
  max-width: 560px;
  /* largura do print */
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

/* Barra azul do topo (print) */
.aq-progress {
  height: 4px;
  background: transparent;
  padding: 0 28px;
  /* margens iguais print */
  margin-top: 14px;
}

.aq-bar {
  height: 3px;
  width: 0%;
  background: #2563eb;
  border-radius: 999px;
  transition: width 0.25s ease;
}

/* Slides */
.aq-slide,
.aq-loading,
.aq-final {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 34px 30px;
  /* espaçamento do print */
}

/* Question */
.aq-slide .question {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #111827;
  line-height: 1.25;
  margin-top: 10px;
  margin-bottom: 16px;
  position: relative;
}

/* Texto verde acima */
.aq-slide .question::before {
  content: "⏱  It takes less than 15 seconds";
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #16a34a;
  margin-bottom: 10px;
}

/* Options */
.options {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Grid 2 colunas */
.options-image {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

/* Button base */
.aq-answer {
  all: unset;
  cursor: pointer;
  box-sizing: border-box;
}

/* Card imagem */
.aq-answer-image {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.aq-answer-image:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

/* Área da imagem (tamanho do print) */
.aq-card-media {
  width: 100%;
  height: 190px;
  /* <<< crava altura do print */
  overflow: hidden;
  background: #e5e7eb;
}

.aq-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Barra do texto embaixo */
.aq-card-label {
  background: #0f172a;
  color: #fff;
  padding: 14px 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  text-align: center;
}

/* Botão normal (texto) */
.options:not(.options-image) .aq-answer {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ff6900;
  color: #fff;
  padding: 18px 18px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.options:not(.options-image) .aq-answer:hover {
  transform: translateY(-2px);
  filter: brightness(0.95);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

/* Secundário */
.aq-answer-secondary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px;
  border-radius: 10px;
  background: #ff6900;
  color: #fff;
  font-weight: 700;
}

.aq-answer-secondary span {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* ================================
   LOADING – BONITO (spinner + título + subtítulo)
   ================================ */

/* Some com os pontinhos antigos */
.aq-loading .aq-dots {
  display: none !important;
}

.aq-loading {
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 48px 28px 44px !important;
  min-height: 260px;
}

/* Spinner */
.aq-loading::before {
  content: "";
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 4px solid #e5e7eb;
  border-top-color: #2563eb;
  animation: aq-spin 0.9s linear infinite;
  margin-bottom: 18px;
}

/* Título */
.aq-loading h2 {
  margin: 0 !important;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #111827 !important;
  line-height: 1.35 !important;
}

/* Subtítulo */
.aq-loading h2::after {
  content: "Analisando as melhores opções para você...";
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 400;
  color: #6b7280;
}

@keyframes aq-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Final */
#aq-cta {
  margin-top: 14px;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  color: #fff;
  padding: 16px 22px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  display: inline-block;
}

.aq-final small {
  margin-top: 10px;
  font-size: 12px;
  color: #6b7280;
}

/* Trava scroll */
body.aq-modal-open {
  overflow: hidden;
}

/* Mobile */
@media (max-width: 520px) {
  .aq-content {
    max-width: 420px;
  }

  .aq-progress {
    padding: 0 18px;
  }

  .aq-slide,
  .aq-loading,
  .aq-final {
    padding: 14px 20px 26px;
  }

  .options-image {
    max-width: 360px;
    gap: 14px;
  }

  .aq-card-media {
    height: 155px;
  }
}

/* Garantir clique (caso tema atrapalhe) */
#artquiz-container .aq-answer,
#artquiz-container .aq-answer * {
  pointer-events: auto !important;
}