/* ===== Página Prêmios - Lista de vencedores ===== */

/* Topo (padrão institucional) */
.bloco-topo-premios {
  min-height: 320px;
  width: 100%;
  background: #f5f6f7;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 60px;
}

.bloco-topo-premios .centro-topo {
  display: flex;
  flex-direction: column;
  width: 90%;
  max-width: 900px;
  text-align: center;
}

.bloco-topo-premios .centro-topo h1 {
  font-size: 42px;
  color: #000;
  padding-bottom: 16px;
  margin: 0;
}

.bloco-topo-premios .centro-topo p {
  font-size: 20px;
  color: #333;
  margin: 0;
}

@media (max-width: 1024px) {
  .bloco-topo-premios {
    min-height: 240px;
    padding: 70px 16px 40px;
  }

  .bloco-topo-premios .centro-topo h1 {
    font-size: 28px;
  }

  .bloco-topo-premios .centro-topo p {
    font-size: 16px;
  }
}

/* Bloco principal */
.bloco-premios {
  padding: 160px 20px 80px;
  position: relative;
}

.container-premios {
  width: 90%;
  max-width: 900px;
  margin-top: 100px;
  margin: 0 auto;
}

/* Card dos filtros (estilo Cartão Mais) */
.filtros-premios {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: 40px 36px 32px;
  margin-bottom: 40px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.filtros-premios h2 {
  font-size: 42px;
  color: #000;
  margin: 0 0 28px 0;
  font-weight: 700;
  text-align: center;
}

.filtros-ano,
.filtros-mes {
  margin-bottom: 24px;
}

.filtros-ano p,
.filtros-mes p {
  font-size: 18px;
  color: #333;
  margin: 0 0 12px 0;
  font-weight: 500;
  text-align: center;
}

.botoes-ano,
.botoes-mes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: center;
}

/* Botões ano/mês - formato oval */
.filtros-premios .btn-filtro {
  padding: 10px 20px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 999px;
  background: #fff;
  color: #333;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  font-family: inherit;
}

.filtros-premios .btn-filtro:hover {
  border-color: #6100ff;
  color: #6100ff;
}

.filtros-premios .btn-filtro.ativo {
  border-color: #6100ff;
  background: #6100ff;
  color: #fff;
}

/* Botão Ver vencedores */
.acao-premios {
  margin: 28px 0 16px 0;
  text-align: center;
}

.acao-premios .button-default {
  border: none;
  cursor: pointer;
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 12px 0;
  background: transparent;
  color: #6100ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.acao-premios .acao-premios-seta {
  display: inline-flex;
  align-items: center;
  color: inherit;
}

.acao-premios .acao-premios-seta svg {
  flex-shrink: 0;
}

.acao-premios .button-default:hover {
  background: transparent;
  color: #4a00c2;
  text-decoration: underline;
}

.acao-premios .button-default:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.nota-premios {
  font-size: 13px;
  color: #666;
  margin: 0;
  text-align: center;
}

/* Área da lista / tabela */
.lista-vencedores-dica {
  margin: 24px 0 0 0;
  padding: 24px 0;
  font-size: 16px;
  color: #555;
}

.lista-vencedores {
  min-height: 120px;
  padding: 24px 0;
}

.lista-vencedores > p {
  font-size: 16px;
  color: #555;
  margin: 0;
}

/* Modal lista de vencedores */
.modal-lista-vencedores-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  padding: 0 20px;
}

.modal-lista-vencedores-box {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 28px 32px 24px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.modal-lista-vencedores-box h3 {
  font-size: 22px;
  margin: 0 36px 20px 0;
  color: #000;
  font-weight: 700;
  flex-shrink: 0;
}

.modal-lista-vencedores-body {
  overflow: auto;
  min-height: 120px;
}

.modal-lista-vencedores-body .modal-mensagem {
  margin: 0;
  padding: 16px 0;
  color: #555;
  font-size: 15px;
}

.modal-lista-vencedores-body .modal-carregando {
  font-style: italic;
}

/* Tabela de vencedores */
.tabela-vencedores {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  overflow: hidden;
}

.tabela-vencedores thead {
  background: #f5f6f7;
}

.tabela-vencedores th {
  text-align: left;
  padding: 14px 16px;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #e5e5e5;
}

.tabela-vencedores td {
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
  color: #333;
}

.tabela-vencedores tbody tr.linha-vencedor {
  cursor: pointer;
  transition: background 0.15s;
}

.tabela-vencedores tbody tr.linha-vencedor:hover {
  background: #f8f5ff;
}

.tabela-vencedores tbody tr.linha-vencedor:last-child td {
  border-bottom: none;
}

@media (max-width: 768px) {
  .tabela-vencedores {
    font-size: 12px;
  }

  .tabela-vencedores th,
  .tabela-vencedores td {
    padding: 10px 12px;
  }

  .filtros-premios {
    padding: 28px 20px 24px;
  }

  .filtros-premios h2 {
    font-size: 22px;
  }

  .botoes-ano,
  .botoes-mes {
    gap: 8px 10px;
  }

  .filtros-premios .btn-filtro {
    padding: 8px 14px;
    font-size: 13px;
  }
}

/* Modal detalhes do ganhador */
.modal-vencedor {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-vencedor-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  z-index: 0;
}

.modal-vencedor-conteudo {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 32px 36px 28px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.modal-vencedor-conteudo h3 {
  font-size: 22px;
  margin: 0 0 24px 0;
  padding-right: 36px;
  color: #000;
  font-weight: 700;
}

.modal-fechar {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: #f0f0f0;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  color: #555;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s, color 0.2s;
}

.modal-fechar:hover {
  background: #e0e0e0;
  color: #000;
}

.modal-dados {
  list-style: none;
  margin: 0;
  padding: 0;
}

.modal-dados li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 15px;
  color: #333;
}

.modal-dados li:last-child {
  border-bottom: none;
}

.modal-dados strong {
  display: inline-block;
  min-width: 140px;
  color: #555;
  font-weight: 600;
}

@media (max-width: 480px) {
  .modal-vencedor-conteudo {
    padding: 24px 20px 20px;
  }

  .modal-vencedor-conteudo h3 {
    font-size: 18px;
    padding-right: 32px;
  }

  .modal-dados li {
    font-size: 14px;
  }

  .modal-dados strong {
    min-width: 120px;
  }
}
