/* =====================================================================
   AprovAKI — Questões comentadas públicas
   Visual alinhado ao feed interno: mini rede social privada, mobile-first.
   ===================================================================== */

.questoes-comentadas-body {
  background: #f8fafc;
}

.freeq-shell {
  width: 100%;
  max-width: 650px;
  margin: 0 auto 26px;
  padding: 0 14px;
}

.freeq-hero {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  padding: 22px 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  margin-bottom: 16px;
}

.freeq-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(99, 102, 241, .10);
  color: #4B3CB8;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .03em;
  margin-bottom: 12px;
}

.freeq-hero h1 {
  color: #1e293b;
  font-size: clamp(1.55rem, 7vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -.035em;
  margin: 0 0 12px;
  font-weight: 900;
}

.freeq-hero p {
  color: #475569;
  font-size: clamp(.98rem, 4vw, 1.04rem);
  line-height: 1.6;
  margin: 0;
  text-align: left;
}

.freeq-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 18px;
}

.freeq-primary,
.freeq-secondary,
.freeq-bottom-cta a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 0 16px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  line-height: 1.15;
  white-space: normal;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.freeq-primary,
.freeq-bottom-cta a {
  background: #6366f1;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(99, 102, 241, .20);
}

.freeq-secondary {
  background: #ffffff;
  color: #4B3CB8;
  border: 1px solid #e2e8f0;
}

.freeq-primary:hover,
.freeq-secondary:hover,
.freeq-bottom-cta a:hover,
.freeq-primary:focus-visible,
.freeq-secondary:focus-visible,
.freeq-bottom-cta a:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.freeq-list {
  display: grid;
  gap: 16px;
}

.freeq-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.freeq-card-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  justify-content: start;
  margin-bottom: 14px;
}
.freeq-card-head::before {
  content: "";
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background:
    url('../img/favicon.png') center / 28px 28px no-repeat,
    #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
  grid-row: 1 / span 2;
}

.freeq-num {
  display: block;
  color: #0f172a;
  font-size: .98rem;
  font-weight: 900;
  line-height: 1.2;
}
.freeq-chip {
  display: block;
  color: #64748b;
  font-size: .82rem;
  line-height: 1.25;
}
.freeq-chip::before { content: "questão pública do sistema • "; }

.freeq-topic {
  color: #94a3b8;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin: 0 0 10px;
  text-align: left;
}
.freeq-topic::before { content: "AprovAKI | "; }

.freeq-card h2 {
  color: #0f172a;
  font-size: 1.04rem;
  line-height: 1.25;
  margin: 0 0 10px;
  font-weight: 900;
}

.freeq-enunciado {
  color: #1e293b;
  font-size: clamp(1rem, 4.15vw, 1.08rem);
  line-height: 1.58;
  text-align: left;
  margin: 0 0 14px;
}

.freeq-alts {
  display: grid;
  gap: 10px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.freeq-alts li { display: block; }

.freeq-alt {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 13px 14px;
  color: #0f172a;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.freeq-alt:hover,
.freeq-alt:focus-visible,
.freeq-alt.is-active {
  background: #f8fafc;
  border-color: rgba(99, 102, 241, .45);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .08);
  outline: none;
}

.freeq-alt span {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #6366f1;
  font-weight: 900;
  font-size: .82rem;
}

.freeq-alt strong {
  flex: 1 1 auto;
  color: inherit;
  font-size: clamp(.98rem, 4vw, 1.04rem);
  font-weight: 700;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.freeq-alt.is-correct,
.freeq-alt.is-selected-correct {
  background: #edf8f0;
  border-color: #9fd8b4;
  color: #22543d;
  box-shadow: 0 0 0 2px rgba(47, 111, 79, .08);
}
.freeq-alt.is-selected-wrong {
  background: #fff4ef;
  border-color: #e5b6a7;
  color: #8a4a3d;
}
.freeq-alt:disabled {
  cursor: default;
  transform: none;
}

.freeq-feedback {
  display: block;
  min-height: 22px;
  margin: 2px 0 10px;
  color: #64748b;
  font-size: .86rem;
  font-weight: 800;
  line-height: 1.35;
}
.freeq-feedback.is-success { color: #2f6f4f; }
.freeq-feedback.is-error { color: #8a4a3d; }

.freeq-submit,
.freeq-toggle {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: #6366f1;
  color: #ffffff;
  font-weight: 900;
  font-size: .96rem;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(99, 102, 241, .20);
  margin-top: 4px;
}
.freeq-submit:disabled {
  background: #cbd5e1;
  color: #64748b;
  box-shadow: none;
  cursor: not-allowed;
}
.freeq-toggle[aria-expanded="true"] { background: #475569; }

.freeq-comment {
  margin-top: 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #6366f1;
  border-radius: 14px;
  padding: 15px;
}
.freeq-answer {
  color: #1e293b;
  font-weight: 900;
  margin-bottom: 8px;
}
.freeq-comment p {
  color: #334155;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  text-align: left;
}

.freeq-ad {
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px solid rgba(100, 116, 139, .18);
}
.freeq-ad-label {
  color: #a8b3c4;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.freeq-bottom-cta {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 20px 16px;
  margin: 18px 0 0;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
.freeq-bottom-cta h2 {
  color: #0f172a;
  font-size: 1.22rem;
  line-height: 1.18;
  margin: 0 0 9px;
}
.freeq-bottom-cta p {
  color: #475569;
  font-size: .96rem;
  line-height: 1.55;
  margin: 0 0 16px;
  text-align: center;
}
.freeq-bottom-cta a { width: 100%; }

@media (min-width: 720px) {
  .freeq-shell { max-width: 980px; padding: 0 24px; }
  .freeq-hero { padding: 28px; }
  .freeq-actions { grid-template-columns: max-content max-content; }
  .freeq-list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .freeq-bottom-cta { padding: 28px; }
  .freeq-bottom-cta a { width: auto; padding-inline: 28px; }
}

@media (max-width: 380px) {
  .freeq-shell { padding: 0 10px; }
  .freeq-hero,
  .freeq-card { border-radius: 16px; }
  .freeq-hero { padding: 18px 14px; }
  .freeq-card { padding: 14px; }
  .freeq-card-head { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; }
  .freeq-card-head::before { width: 40px; height: 40px; background-size: 28px auto; }
}

@media (prefers-reduced-motion: reduce) {
  .freeq-primary,
  .freeq-secondary,
  .freeq-bottom-cta a,
  .freeq-alt { transition: none; }
  .freeq-primary:hover,
  .freeq-secondary:hover,
  .freeq-bottom-cta a:hover,
  .freeq-alt:hover { transform: none; }
}
