/* Guia 03 · Glossário de IA */

/* busca e filtros */
.gl-tools { display: flex; flex-direction: column; gap: 16px; margin-bottom: 34px; }
.gl-search { display: flex; align-items: center; gap: 14px; padding: 0 20px; height: 64px; border: 1px solid var(--line-2); border-radius: 16px; background: #050505; transition: border-color .3s; }
.gl-search:focus-within { border-color: #fff; }
.gl-prompt { font: 400 18px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--muted); }
.gl-q { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; color: #fff; font: 400 18px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; caret-color: #fff; }
.gl-q::placeholder { color: var(--dim); }
.gl-q::-webkit-search-cancel-button { filter: invert(1) grayscale(1); opacity: .5; }
.gl-count { flex: none; font: 500 10.5px/1 var(--label); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); font-variant-numeric: tabular-nums; }
.gl-cats .chip small { margin-left: 2px; }

/* cards */
.gl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.gl-term { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px 28px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; scroll-margin-top: calc(var(--nav-h) + 30px); transition: background .5s; }
.gl-term::before { content: ""; position: absolute; inset: -1px; border: 1px solid #fff; opacity: 0; pointer-events: none; transition: opacity .6s; }
.gl-term:hover { background: #060606; }
.gl-term.is-target::before { opacity: 1; }
.gl-term.is-target { background: #0a0a0a; }
.gl-term[hidden] { display: none; }
.gl-term.is-in { animation: gl-in .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms); }
@keyframes gl-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.gl-top { display: flex; justify-content: space-between; align-items: center; }
.gl-hash { font: 400 15px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--dim); opacity: 0; transition: opacity .3s, color .3s; padding: 4px; }
.gl-term:hover .gl-hash, .gl-hash:focus-visible { opacity: 1; }
.gl-hash:hover { color: #fff; }
.gl-term h3 { font: 300 clamp(26px, 2.4vw, 36px)/1.05 var(--display); letter-spacing: -.03em; color: #fff; }
.gl-term h3 small { display: block; margin-top: 8px; font: 500 10.5px/1.3 var(--label); letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.gl-def { font: 300 clamp(17px, 1.3vw, 19px)/1.5 var(--display); letter-spacing: -.008em; color: var(--soft); }
.gl-ex { padding-top: 14px; border-top: 1px dashed var(--line-2); font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.gl-ex span { display: block; margin-bottom: 4px; font: 500 9.5px/1.4 var(--label); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.gl-see { margin-top: auto; font-size: 13px; line-height: 1.7; color: var(--dim); }
.gl-see a { color: var(--muted); border-bottom: 1px solid var(--line-2); transition: color .3s, border-color .3s; }
.gl-see a:hover { color: #fff; border-color: #fff; }
.gl-none { padding: 40px 0; font: 300 22px/1.4 var(--display); color: var(--muted); }
.gl-none a { color: #fff; border-bottom: 1px solid var(--line-2); }
mark.gl-hl { background: #fff; color: #000; border-radius: 3px; padding: 0 2px; }
@media (max-width: 1100px) { .gl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .gl-grid { grid-template-columns: 1fr; border-left: 0; }
  .gl-term { padding: 24px 0 26px; border-right: 0; }
  .gl-term::before { inset: -1px -12px; border-radius: 12px; }
  .gl-hash { opacity: 1; }
  .gl-cats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .gl-cats::-webkit-scrollbar { display: none; }
  .gl-cats .chip { flex: none; }
  .gl-search { height: 56px; padding: 0 16px; }
  .gl-q { font-size: 16px; }
}

/* teste rápido */
.quiz { max-width: 980px; }
.quiz .lx-bar { gap: 18px; }
.quiz-dots { display: flex; gap: 6px; }
.quiz-dots i { width: 22px; height: 3px; border-radius: 3px; background: #222; transition: background .4s; }
.quiz-dots i.is-ok { background: #fff; }
.quiz-dots i.is-no { background: #555; }
.quiz-dots i.is-now { background: #8c8c8c; }
.quiz-body { display: flex; flex-direction: column; gap: 26px; padding: clamp(24px, 3.4vw, 44px); }
.quiz-def { min-height: 3.2em; font: 300 clamp(22px, 2.3vw, 32px)/1.35 var(--display); letter-spacing: -.02em; color: #fff; }
.quiz-def.is-new { animation: gl-in .6s var(--ease); }
.quiz-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.quiz-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 14px 18px; border: 1px solid var(--line-2); border-radius: 14px; background: #000; color: var(--soft); font: 300 clamp(18px, 1.5vw, 21px)/1.2 var(--display); letter-spacing: -.01em; text-align: left; cursor: pointer; transition: border-color .3s, background .3s, color .3s, opacity .3s; }
.quiz-opt:hover:not([disabled]) { border-color: #fff; color: #fff; }
.quiz-opt i { font: 500 9.5px/1 var(--label); font-style: normal; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.quiz-opt.is-ok { background: #fff; border-color: #fff; color: #000; }
.quiz-opt.is-ok i { color: #000; }
.quiz-opt.is-no { border-color: #555; color: var(--muted); text-decoration: line-through; text-decoration-color: #555; }
.quiz-opt[disabled]:not(.is-ok):not(.is-no) { opacity: .4; }
.quiz-opt[disabled] { cursor: default; }
.quiz-fb { min-height: 1.6em; font-size: 15px; line-height: 1.6; color: var(--muted); }
.quiz-fb a { color: #fff; border-bottom: 1px solid var(--line-2); }
.quiz-fb b { color: #fff; font-weight: 500; }
.quiz-actions { display: flex; gap: 10px; }
.quiz-end { display: flex; align-items: baseline; gap: 18px; }
.quiz-end b { font: 100 clamp(72px, 9vw, 120px)/.9 var(--thin); font-weight: 100; color: #fff; }
.quiz-end span { font: 300 clamp(20px, 2vw, 26px)/1.3 var(--display); color: var(--soft); }
@media (max-width: 700px) {
  .quiz-opts { grid-template-columns: 1fr; }
  .quiz .lx-bar { flex-wrap: wrap; }
  .quiz-dots { order: 3; width: 100%; }
  .quiz-dots i { flex: 1; }
}
