/* Japamaker : pages.css: estilos das páginas de apoio
   (meus-numeros.html, regulamento.html, termos.html, privacidade.html) */

/* Estrutura geral da página interna */
.pagina-main { padding: 32px 0 8px; }

.pagina-cabecalho { margin-bottom: 24px; }
.pagina-cabecalho .kicker { margin-bottom: 8px; }

.pagina-titulo {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.pagina-sub {
  color: var(--muted);
  margin-top: 8px;
  max-width: 640px;
}

/* Utilitário de acessibilidade */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Tipografia de artigo (páginas legais) ===== */
.artigo { max-width: 760px; }

.artigo section + section { margin-top: 30px; }

.artigo h2 {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 10px;
}

.artigo h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 18px 0 6px;
}

.artigo p {
  margin: 0 0 12px;
  color: var(--text);
}

.artigo p:last-child { margin-bottom: 0; }

.artigo ul,
.artigo ol {
  margin: 0 0 12px;
  padding-left: 22px;
  color: var(--text);
}

.artigo li { margin-bottom: 6px; }
.artigo li::marker { color: var(--red); }

.artigo strong { color: var(--text); }

.artigo a { color: var(--acc); }
.artigo a:hover { color: var(--text); }

.artigo .atualizado {
  color: var(--muted);
  font-size: 13px;
  margin-top: 26px;
}

/* Placeholder de dado a preencher, bem visível */
.preencher {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 6px;
  background: var(--acc-soft);
  border: 1px dashed var(--acc-line);
  color: var(--acc-2);
  font-family: var(--mono);
  font-size: 0.9em;
  font-weight: 700;
}

/* Número de cota no meio do texto */
.num-mono {
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text);
}

/* Caixa de exemplo numérico (regulamento) */
.exemplo {
  margin: 4px 0 14px;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: var(--radius-sm);
}

.exemplo p { margin: 0; }

.exemplo .num {
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text);
}

/* ===== Meus números ===== */
.busca-card { padding: 20px; margin-bottom: 24px; }

.busca-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.busca-campo { flex: 1; }

.busca-form .btn { width: 100%; }

.busca-erro {
  color: var(--danger);
  font-size: 14px;
  font-weight: 600;
  margin-top: 10px;
}

.busca-dica {
  color: var(--muted);
  font-size: 13px;
  margin-top: 12px;
}

.resultado-titulo {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 14px;
}

.pedidos-lista {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pedido { padding: 18px; }

.pedido-topo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 4px;
}

.pedido-data {
  color: var(--muted);
  font-size: 13px;
}

.pedido-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  margin-bottom: 14px;
}

.pedido-valor {
  font-size: 18px;
  font-weight: 800;
}

.pedido-qtd {
  color: var(--muted);
  font-size: 14px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-pago {
  background: var(--ok-soft);
  color: var(--ok);
  border: 1px solid rgba(47, 191, 113, 0.35);
}

.status-outro {
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--line);
}

.numeros-grade {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
}

.cota {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 11px 4px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.cota-premiada {
  background: var(--acc-soft);
  border-color: var(--acc-line);
  color: var(--acc-2);
}

.legenda-premiada {
  color: var(--muted);
  font-size: 13px;
  margin-top: 12px;
}

.legenda-premiada .amostra {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  border-radius: 3px;
  background: var(--acc-soft);
  border: 1px solid var(--acc-line);
  vertical-align: -1px;
}

/* Estado vazio */
.estado-vazio {
  padding: 40px 20px;
  text-align: center;
}

.estado-vazio h2 {
  font-size: 20px;
  font-weight: 800;
}

.estado-vazio p {
  color: var(--muted);
  max-width: 420px;
  margin: 10px auto 22px;
}

/* ===== Ajustes do header (base.css não pode ser editado) ===== */
/* Alvo de toque de 44px no botão Meus números do header */
.topo-nav .btn { min-height: 44px; }

/* Header apertado em telas estreitas: logo menor e menos espaço entre os itens */
@media (max-width: 419px) {
  .logo img { height: 28px; }
  .topo-nav { gap: 10px; }
}

/* ===== Telas maiores ===== */
@media (min-width: 768px) {
  .pagina-main { padding: 48px 0 16px; }
  .pagina-titulo { font-size: 34px; }

  .busca-card { padding: 26px; }

  .busca-form {
    flex-direction: row;
    align-items: flex-end;
  }

  .busca-form .btn { width: auto; }

  .pedido { padding: 24px; }

  .artigo h2 { font-size: 22px; }
}

/* ===== Mapa de números ===== */
.mapa-controles { padding: 18px; display: grid; gap: 14px; margin-bottom: 16px; }
.mapa-busca { display: flex; gap: 8px; }
.mapa-busca input { flex: 1; }
.mapa-busca-msg { font-size: 14px; color: var(--muted); margin: 0; }
.mapa-legenda { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); }
.mapa-legenda li { display: inline-flex; align-items: center; gap: 6px; }
.quad { width: 14px; height: 14px; border-radius: 4px; display: inline-block; border: 1px solid var(--line-forte); }
.quad-livre { background: var(--surface-2); }
.quad-reservado { background: var(--acc-soft); border-color: var(--acc-line); }
.quad-vendido { background: #2a2a30; }
.quad-sel { background: var(--acc); border-color: var(--acc); }

.mapa-paginacao { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.mapa-pag-info { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

.mapa-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; padding-bottom: 96px; }
.num-cel {
  font-family: var(--mono); font-size: 12px; padding: 8px 2px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text);
  cursor: pointer; font-variant-numeric: tabular-nums; transition: transform 0.06s ease, border-color 0.15s ease;
}
.num-cel.num-livre:hover { border-color: var(--acc-line); }
.num-cel.num-livre:active { transform: scale(0.95); }
.num-cel.num-reservado { background: var(--acc-soft); border-color: var(--acc-line); color: var(--acc-2); cursor: not-allowed; }
.num-cel.num-vendido { background: #26262c; color: var(--muted-2); cursor: not-allowed; text-decoration: line-through; }
.num-cel.num-sel { background: var(--acc); color: var(--ink); border-color: var(--acc); font-weight: 800; }
.num-cel.num-foco { outline: 3px solid var(--green); outline-offset: 1px; }

.mapa-barra {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(20, 19, 15, 0.96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-forte); box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.32);
}
.mapa-barra-info { display: grid; gap: 1px; }
.mapa-barra-info strong { font-size: 15px; }
.mapa-barra-total { font-size: 12px; color: var(--muted); }
