/* Base */
:root{
  --aiqg-primary: #111827;
  --aiqg-accent: #2563eb;
  --aiqg-bg: #ffffff;
  --aiqg-border: #e5e7eb;
  --aiqg-text: #111827;
}
.aiqg-container{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial;
  color: var(--aiqg-text);
  background: var(--aiqg-bg);
  border: 1px solid var(--aiqg-border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  max-width: 760px;
  margin: 16px auto;
}
.aiqg-progress{
  position: relative;
  height: 10px;
  background: #f3f4f6;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}
.aiqg-progress-bar{
  height: 100%;
  background: var(--aiqg-accent);
  width: 0%;
  transition: width .3s ease;
}
.aiqg-progress-text{ font-size:12px; color:#6b7280; display:block; margin-top:6px; text-align:right; }
.aiqg-question{ font-size:22px; margin: 8px 0 14px; }
.aiqg-options{ display: grid; gap: 10px; }
.aiqg-option{
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--aiqg-border); padding: 12px 14px; border-radius: 12px;
  background: white; cursor: pointer; transition: transform .06s ease, border-color .2s;
}
.aiqg-option:hover{ transform: translateY(-1px); border-color: #d1d5db; }
.aiqg-option.aiqg-selected{ border-color: var(--aiqg-accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.aiqg-letter{
  width: 28px; height: 28px; border-radius: 999px; background: #f3f4f6;
  display: inline-flex; align-items:center; justify-content:center; font-weight: 600; color:#374151;
}
.aiqg-next{
  margin-top: 14px; display: inline-block; background: var(--aiqg-accent);
  color: white; padding: 10px 14px; border-radius: 10px; text-decoration: none;
}
.aiqg-ads{ margin: 12px 0; }

/* Hint */
.aiqg-hint{
  margin: 12px 0 8px; padding: 10px 12px; border-radius: 10px;
  background: #f8fafc; border: 1px solid #e5e7eb; font-size: 14px; color: #374151;
}

/* Result */
.aiqg-result .aiqg-result-box{
  border: 1px dashed var(--aiqg-border); padding: 14px; border-radius: 12px; background: #f9fafb;
}
.aiqg-badge{ display:inline-block; padding:6px 10px; border-radius:999px; background:var(--aiqg-accent); color:#fff; font-weight:700; }
.aiqg-return{ display:inline-block; margin-top:12px; color: var(--aiqg-accent); text-decoration:none; font-weight:600; }
.aiqg-button-primary{
  display:inline-flex; align-items:center; gap:6px; background: linear-gradient(90deg, var(--aiqg-accent), #3b82f6);
  border-radius:10px; padding:10px 14px; color:#fff !important; text-decoration:none; box-shadow:0 6px 18px rgba(59,130,246,.25);
  transition: transform .06s ease, box-shadow .2s ease;
}
.aiqg-button-primary:hover{ transform: translateY(-1px); box-shadow: 0 10px 22px rgba(59,130,246,.28); }

/* Title alignment */
.entry-title.aiqg-title-align{
  text-align:center; font-weight:800; letter-spacing:-0.02em; line-height:1.15; margin-bottom:10px;
}
@media (max-width: 768px){
  .entry-title.aiqg-title-align{ font-size:28px !important; padding:0 8px; }
  .aiqg-container{ margin:10px auto; padding:14px; }
  .aiqg-question{ font-size:18px; }
}


/* v1.2.2: garantir que os textos das alternativas apareçam em todos os temas */
.aiqg-option{ color: var(--aiqg-text) !important; text-align: left; }
.aiqg-option *{ color: inherit !important; }
.aiqg-option .aiqg-text{ flex: 1; display: inline-block; opacity: .95; }
.aiqg-option .aiqg-letter{ flex: 0 0 auto; }

/* Resultado mais elegante por faixa */
.aiqg-result-chip{
  display:block;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid #e5e7eb;
  background:#f8fafc;
  font-weight:600;
}
.aiqg-result-chip.aiqg-res-good{ border-color:#86efac; background:#f0fdf4; color:#065f46; }
.aiqg-result-chip.aiqg-res-mid{ border-color:#fde68a; background:#fffbeb; color:#92400e; }
.aiqg-result-chip.aiqg-res-low{ border-color:#fecaca; background:#fef2f2; color:#7f1d1d; }

/* Ajuste do bloco de resultado */
.aiqg-result .aiqg-result-box{ border-style: solid; border-color:#e5e7eb; background:#fff; }

/* v1.3.1 ensure ads width */
.aiqg-ads ins.adsbygoogle{ width:100%; }
