/* ============================================================================
   MÓDULO TERMÔMETRO / INTELIGÊNCIA (Fase 7) — estilos próprios, prefixo "iq-".
   Segue o mesmo padrão visual dos demais módulos (Relatório de Vendas,
   Integrador, Gerenciar Site): laranja MyCar, cards brancos com sombra leve,
   chips/barras coloridas. Cores em HEX FIXO (não var(--...)) de propósito,
   mesma convenção do vendas.css/integrador.css/gerenciar.css.
   ========================================================================== */

.iq-root { max-width: 1300px; margin: 0 auto; }

.iq-subtitulo { color: #707070; font-size: 13px; margin-top: 4px; }

/* ---- Seletor de período (7/30/90 dias) ---------------------------------- */
.iq-periodo {
  display: flex;
  gap: 6px;
  background: #F3F3F3;
  border-radius: 999px;
  padding: 4px;
}
.iq-periodo-btn {
  border: none;
  background: transparent;
  color: #555555;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease;
}
.iq-periodo-btn:hover { color: #1a1a1a; }
.iq-periodo-btn-ativo,
.iq-periodo-btn-ativo:hover {
  background: #f43f27;
  color: #ffffff;
}

/* ---- Cards de resumo ------------------------------------------------------ */
.iq-cards-resumo { margin-bottom: 28px; }

/* ---- Explicação curta acima do termômetro --------------------------------- */
.iq-explicacao {
  color: #707070;
  font-size: 13px;
  margin: -6px 0 14px;
  max-width: 720px;
  line-height: 1.5;
}

/* ---- Funil ----------------------------------------------------------------- */
.iq-funil {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 22px 24px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.iq-funil-linha {
  display: grid;
  grid-template-columns: 200px 1fr 130px;
  align-items: center;
  gap: 14px;
}
.iq-funil-rotulo { font-size: 13px; color: #333333; font-weight: 600; }
.iq-funil-trilho {
  background: #F0F0F0;
  border-radius: 999px;
  height: 14px;
  overflow: hidden;
}
.iq-funil-barra {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f43f27, #ff8a3d);
  transition: width 0.3s ease;
}
.iq-funil-valores { font-size: 13px; color: #1a1a1a; text-align: right; white-space: nowrap; }
.iq-funil-pct { color: #8a8a8a; font-weight: 500; }

@media (max-width: 720px) {
  .iq-funil-linha { grid-template-columns: 1fr; gap: 6px; }
  .iq-funil-valores { text-align: left; }
}

/* ---- Termômetro dos carros -------------------------------------------------- */
.iq-termometro-wrap {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  margin-bottom: 30px;
}

.iq-carro-linha {
  display: grid;
  grid-template-columns: 28px 64px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid #f0f0f0;
}
.iq-carro-linha:last-child { border-bottom: none; }
.iq-carro-linha:hover { background: #FAFAFA; }

.iq-carro-posicao { font-size: 13px; font-weight: 700; color: #b0b0b0; text-align: center; }

.iq-carro-foto {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  background: #f0f0f0;
  display: block;
}
.iq-carro-foto-vazia {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c0c0c0;
  font-size: 20px;
}

.iq-carro-info { min-width: 0; }
.iq-carro-nome { font-size: 14px; font-weight: 700; color: #1a1a1a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iq-carro-versao { font-size: 12px; color: #8a8a8a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 6px; }

.iq-barra-calor-trilho {
  background: #F0F0F0;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
  max-width: 320px;
  margin-bottom: 6px;
}
.iq-barra-calor { height: 100%; border-radius: 999px; transition: width 0.3s ease; }

.iq-carro-breakdown { font-size: 12px; color: #707070; }

.iq-btn-detalhes { white-space: nowrap; }

@media (max-width: 640px) {
  .iq-carro-linha { grid-template-columns: 24px 52px 1fr; }
  .iq-btn-detalhes { grid-column: 1 / -1; justify-self: start; margin-top: 6px; }
}

/* ---- Duas colunas (páginas mais vistas + termos de busca) ------------------ */
.iq-duas-colunas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 4px;
}
@media (max-width: 860px) {
  .iq-duas-colunas { grid-template-columns: 1fr; }
}

.iq-lista-simples {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}
.iq-lista-simples li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
  color: #333333;
}
.iq-lista-simples li:last-child { border-bottom: none; }
.iq-lista-simples li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iq-lista-simples li strong { color: #1a1a1a; flex-shrink: 0; }
