/* =========================================================
   Savepoint — página de resultados de pesquisa
   Colar em Elementor › Site Settings › Custom CSS
   (ou no CSS do template de pesquisa)
   ========================================================= */

:root {
  --sp-laranja: #fe7141;
  --sp-laranja-claro: #ffe1d6;
  --sp-azul: #1527d6;
  --sp-azul-claro: #e9ebfc;
  --sp-texto: #141414;
  --sp-texto-2: #5c5c5c;
  --sp-linha: #e2e2e2;
  --sp-fundo: #f0f0f0;
}

/* ---------- Mostrar / esconder por estado ---------- */
body.sp-com-resultados .sp-so-sem-resultados,
body.sp-sem-resultados .sp-so-com-resultados { display: none !important; }

/* ---------- Realce do termo (Relevanssi: <mark>) ---------- */
.search mark {
  background: var(--sp-laranja-claro);
  color: inherit;
  padding: 0 2px;
  border-radius: 3px;
}

/* ---------- Cabeçalho ---------- */
.sp-pesquisa-label { margin: 0 0 6px; font-size: 14px; color: var(--sp-texto-2); }
.sp-pesquisa-titulo {
  margin: 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.1;
  font-weight: 800; letter-spacing: -0.02em; color: var(--sp-texto);
}
.sp-didyoumean { margin: 16px 0 0; font-size: 18px; color: #3d3d3d; }
.sp-didyoumean a { color: var(--sp-azul); font-weight: 800; }

/* ---------- Campo de pesquisa (widget Search do Elementor) ----------
   Dá ao widget a classe "sp-search" no separador Avançado */
.sp-search input[type="search"] {
  height: 60px; padding: 0 20px; font-size: 20px; font-weight: 600;
  background: #f5f5f5; border: 2px solid var(--sp-texto); border-radius: 14px;
}
.sp-search button,
.sp-search [type="submit"] {
  height: 60px; padding: 0 28px; border-radius: 14px;
  background: var(--sp-azul); color: #fff; font-weight: 700;
}

/* ---------- Ficha de jogo em destaque ---------- */
.sp-ficha-destaque {
  display: flex; align-items: center; gap: 20px; padding: 16px;
  background: #fff; border: 2px solid var(--sp-azul); border-radius: 18px;
  color: var(--sp-texto); text-decoration: none; margin-bottom: 20px;
}
.sp-ficha-capa {
  flex: 0 0 84px; width: 84px; height: 112px; object-fit: cover;
  border-radius: 10px; background: #1f2236; display: block;
}
.sp-ficha-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.sp-ficha-label { font-size: 13px; font-weight: 700; color: var(--sp-azul); }
.sp-ficha-titulo { font-size: 22px; line-height: 1.25; font-weight: 800; }
.sp-ficha-meta { font-size: 14px; color: var(--sp-texto-2); }
.sp-ficha-cta {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--sp-azul-claro); color: var(--sp-azul); font-weight: 700;
}
@media (max-width: 600px) {
  .sp-ficha-destaque { gap: 14px; padding: 12px; }
  .sp-ficha-capa { flex-basis: 60px; width: 60px; height: 80px; }
  .sp-ficha-titulo { font-size: 17px; }
  .sp-ficha-cta { padding: 0; width: 44px; justify-content: center; font-size: 0; background: none; }
}

/* ---------- Cartão de resultado (Loop Item) ----------
   Dá ao container do Loop Item a classe "sp-resultado" */
.sp-resultado {
  background: #fff; border-radius: 18px; padding: 16px;
  transition: transform .15s ease;
}
.sp-resultado:hover { transform: translateY(-2px); }
.sp-resultado-titulo { margin: 0; font-size: 26px; line-height: 1.22; font-weight: 800; }
.sp-resultado-titulo a { color: var(--sp-texto); text-decoration: none; }
.sp-resultado-titulo a:hover { color: var(--sp-azul); }
@media (max-width: 767px) { .sp-resultado-titulo { font-size: 21px; } }

/* Selo do tipo de conteúdo (ANÁLISE, NOTÍCIA…) */
.sp-selo-tipo {
  display: inline-block; padding: 5px 10px; border-radius: 6px;
  background: var(--sp-laranja); color: var(--sp-texto);
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}

/* ---------- Filtros WP Grid Builder (facet "button") ---------- */
.sp-filtros .wpgb-button {
  height: 44px; padding: 0 18px; border-radius: 999px !important;
  border: 1px solid #cfcfcf !important; background: #fff !important;
  color: var(--sp-texto) !important; font-weight: 600;
}
.sp-filtros .wpgb-button[aria-pressed="true"] {
  background: var(--sp-texto) !important; border-color: var(--sp-texto) !important;
  color: #fff !important;
}
.sp-filtros .wpgb-button[aria-disabled="true"] { color: #8a8a8a !important; border-color: var(--sp-linha) !important; }
.sp-filtros .wpgb-facet ul { display: flex; gap: 8px; overflow-x: auto; flex-wrap: nowrap; }

/* ---------- Pesquisas populares ---------- */
.sp-populares-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.sp-chip {
  display: inline-flex; align-items: center; height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1px solid #cfcfcf;
  color: var(--sp-texto); font-weight: 600; text-decoration: none;
}
.sp-chip.is-top, .sp-chip:hover { background: #fff0ea; border-color: var(--sp-laranja); font-weight: 700; }

.sp-populares-lista {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px;
}
.sp-populares-lista li { border-top: 1px solid #ececec; }
.sp-populares-lista a {
  display: flex; align-items: center; gap: 14px; min-height: 52px;
  color: var(--sp-texto); font-size: 17px; font-weight: 700; text-decoration: none;
}
.sp-pos {
  flex: 0 0 32px; height: 32px; border-radius: 8px; background: var(--sp-laranja-claro);
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800;
}
.sp-populares-lista a.is-top .sp-pos { background: var(--sp-laranja); }
@media (max-width: 600px) { .sp-populares-lista { grid-template-columns: 1fr; } }
