/* =============================================================================
   GLOSSÁRIO
   ============================================================================= */

/* ── BARRA DE LETRAS ─────────────────────────────────────
   O posicionamento fixed é aplicado via JS (move para body),
   escapando de qualquer transform/filter do tema.
────────────────────────────────────────────────────────── */
#gloss-letter-bar {
  background: #fff;
  z-index: 1 !important;
}

.gloss-letter-list {
  display: flex;
  width: 100%;
}

/* Cada célula de letra: ~53px × 52px */
.gloss-letter-btn {
  flex: 1;
  height: 52px;
  background: #d9d9d9;
  border: none;
  border-radius: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #66589e;
  letter-spacing: -0.32px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  padding: 0;
}

.gloss-letter-btn--empty,
.gloss-letter-btn[disabled] {
  cursor: default;
  opacity: 0.45;
}

.gloss-letter-btn--active:hover {
  background: #c5c5c5;
}

.gloss-letter-btn--selected {
  background: #66589e;
  color: #fff;
}

/* ── BARRA DE BUSCA ────────────────────────────────────── */
#gloss-search-bar {
  padding: 22px 0 0;
}

/* Container centrado: 669px */
.gloss-search-wrap {
  display: flex;
  width: 669px;
  margin: 0 auto;
  gap: 9px;
}

/* Input: 510×43, borda 2px #66589e, pill */
.gloss-search-input-wrap {
  position: relative;
  flex: 1;
}

.gloss-search-input {
  width: 100%;
  height: 43px;
  padding: 0 42px 0 20px;
  border: 2px solid #66589e;
  border-radius: 50px;
  background: transparent;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #66589e;
  letter-spacing: -0.32px;
  outline: none;
}

.gloss-search-input::placeholder {
  color: #8b8b8b;
  font-weight: 400;
}

.gloss-search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  pointer-events: none;
}

/* Botão BUSCAR: 150×43px, pill, roxo */
.gloss-search-btn {
  width: 150px;
  height: 43px;
  background: #66589e;
  border: 2px solid #66589e;
  border-radius: 50px;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  letter-spacing: -0.32px;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.gloss-search-btn:hover {
  opacity: 0.85;
}

/* ── CONTEÚDO PRINCIPAL ────────────────────────────────── */
#gloss-main {
  padding: 24px 0 80px;
}

/* Paint esquerda */
.gloss-paint-left {
  position: absolute;
  left: -74px;
  top: 0;
  z-index: 0;
  pointer-events: none;
}

.gloss-paint-left img {
  transform: scaleX(-1);
}

/* Paint direita */
.gloss-paint-right {
  position: absolute;
  right: -100px;
  top: 2800px;
  z-index: 0;
  pointer-events: none;
  transform: rotate(180deg);
}

/* ── SEÇÃO DE LETRA ───────────────────────────────────── */
.gloss-section {
  padding-top: 30px;
}

/* Cabeçalho da seção: letra grande 48px ExtraBold */
.gloss-section-header {
  margin-bottom: 10px;
}

.gloss-section-letter {
  font-size: 48px;
  font-weight: 800;
  color: #66589e;
  line-height: 1.88;
  letter-spacing: -0.32px;
  display: block;
}

/* Linha divisória topo da seção */
.gloss-section:first-child .gloss-section-header {
  border-top: none;
}

/* ── LINHA DE TERMO ───────────────────────────────────── */
.gloss-term-row {
  display: grid;
  grid-template-columns: 35% 65%;
  padding: 16px 0;
  align-items: start;
}

/* Nome do termo: 24px ExtraBold #66589e */
.gloss-term-name {
  font-size: 24px;
  font-weight: 800;
  color: #66589e;
  line-height: 1.88;
  letter-spacing: -0.32px;
  padding-right: 20px;
}

/* Definição: 16px Medium #66589e */
.gloss-term-def {
  font-size: 16px;
  font-weight: 500;
  color: #66589e;
  line-height: 1.88;
  letter-spacing: -0.32px;
}

.gloss-term-def p {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #66589e;
  line-height: 1.88;
}

/* Link de vídeo (ex: "Película") */
.gloss-term-video {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #66589e;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: -0.32px;
}

.gloss-term-video:hover {
  text-decoration: underline;
  color: #66589e;
}

.gloss-play-icon {
  width: 27px;
  height: 27px;
  object-fit: contain;
}

/* Separador: 1px solid #66589e */
.gloss-separator {
  border: none;
  border-top: 1px solid #66589e;
  margin: 0;
  opacity: 1;
}

/* Sem resultados */
.gloss-empty,
.gloss-no-results {
  font-size: 16px;
  font-weight: 500;
  color: #66589e;
  text-align: center;
  padding: 60px 0;
  letter-spacing: -0.32px;
}

/* ── RESPONSIVO ─────────────────────────────────────────── */
@media (max-width: 991px) {
  #gloss-letter-bar {
    top: 0;
  }

  .gloss-letter-btn {
    font-size: 13px;
    height: 40px;
  }

  .gloss-search-wrap {
    width: 100%;
  }

  .gloss-section-letter {
    font-size: 36px;
  }

  .gloss-term-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .gloss-term-name {
    font-size: 18px;
    padding-right: 0;
  }
}

@media (max-width: 575px) {
  .gloss-letter-btn {
    font-size: 11px;
    height: 36px;
  }

  .gloss-search-wrap {
    flex-direction: column;
    gap: 10px;
  }

  .gloss-search-btn {
    width: 100%;
  }
}

