/* =====================================================================
   campeonato.css — Estilos da página de campeonato
   4ª Copa Noroeste de Palestina (e futuros campeonatos)
   ===================================================================== */

/* Identidade do campeonato (estilo "Destaques" da página principal) */
.camp-identidade {
  max-width: 1150px;
  margin: 28px auto 0;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.camp-identidade-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
}
.camp-identidade-nome {
  font-size: 2.4em;
  font-weight: 900;
  color: #222;
  letter-spacing: 1px;
  line-height: 1.1;
  margin: 0;
}

/* Conteúdo principal */
.camp-conteudo {
  max-width: 1150px;
  margin: 24px auto;
  padding: 0 12px;
}

/* Abas de navegação */
.camp-abas {
  display: flex;
  gap: 0;
  border-bottom: 3px solid #79fe01;
  margin-bottom: 20px;
}
.camp-aba-btn {
  background: #eee;
  color: #333;
  border: none;
  padding: 10px 28px;
  font-family: 'Saira', Arial, sans-serif;
  font-size: 1em;
  font-weight: 700;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  transition: background 0.15s, color 0.15s;
  margin-right: 4px;
}
.camp-aba-btn.ativa {
  background: #111;
  color: #79fe01;
}
.camp-aba-btn:hover:not(.ativa) {
  background: #ddd;
}

/* Painel de conteúdo das abas */
.camp-painel {
  display: none;
}
.camp-painel.visivel {
  display: block;
}

/* ---- Bloco de Grupo (Primeira Fase) ---- */
.camp-grupo-bloco {
  margin-bottom: 32px;
}
.camp-grupo-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 20px;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  background: #fff;
}
.camp-grupo-tabela {
  border-right: 2px solid #e8e8e8;
  min-width: 320px;
}
.camp-grupo-tabela .camp-tabela {
  border-radius: 0;
}
.camp-grupo-jogos {
  padding: 8px 0;
  min-width: 260px;
}
.camp-grupo-jogos .camp-rodada-lista {
  border: none;
  border-radius: 0;
}

/* Legenda */
.camp-legenda {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85em;
  color: #555;
  margin: 4px 0 24px;
}
.camp-legenda-cor {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: rgba(121, 254, 1, 0.18);
  border: 1px solid rgba(46, 125, 10, 0.35);
}

/* ---- Classificação ---- */
.camp-grupo-titulo {
  font-size: 1.1em;
  font-weight: 700;
  color: #111;
  background: #79fe01;
  padding: 6px 14px;
  border-radius: 6px 6px 0 0;
  margin-bottom: 0;
}
.camp-tabela-wrap {
  overflow-x: auto;
  margin-bottom: 24px;
}
.camp-tabela {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
  background: #fff;
}
.camp-tabela thead tr {
  background: #333;
  color: #79fe01;
  text-align: center;
}
.camp-tabela thead th {
  padding: 8px 10px;
  font-weight: 700;
  white-space: nowrap;
}
.camp-tabela thead th:nth-child(2) {
  text-align: left;
}
.camp-tabela tbody tr {
  border-bottom: 1px solid #eee;
  transition: background 0.15s;
}
.camp-tabela tbody tr:hover {
  background: #f9ffe0;
}
.camp-tabela tbody td {
  padding: 8px 10px;
  text-align: center;
  vertical-align: middle;
}
.camp-tabela tbody td:nth-child(2) {
  text-align: left;
}
.camp-time-celula {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.camp-time-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 4px;
}
.camp-pos {
  font-weight: 700;
  color: #555;
  width: 28px;
}
.camp-tabela tbody tr.pos-g1,
.camp-tabela tbody tr.pos-g2 {
  background: rgba(121, 254, 1, 0.18);
}
.camp-tabela tbody tr.pos-g1 .camp-pos,
.camp-tabela tbody tr.pos-g2 .camp-pos {
  color: #2e7d0a;
  font-weight: 900;
}
.camp-tabela .col-pts {
  color: #111;
  font-weight: 900;
  font-size: 1.05em;
}

/* ---- Jogos ---- */
.camp-rodada-titulo {
  font-size: 1em;
  font-weight: 700;
  color: #fff;
  background: #333;
  padding: 6px 14px;
  border-radius: 6px 6px 0 0;
  margin: 20px 0 0 0;
}
.camp-rodada-lista {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  margin-bottom: 8px;
}
.camp-jogo-card {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: center;
  padding: 10px 16px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  gap: 8px;
}
.camp-jogo-card:last-child {
  border-bottom: none;
}
.camp-jogo-card:hover {
  background: #f9ffe0;
}
.camp-jogo-time {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.97em;
}
.camp-jogo-time.esquerda {
  justify-content: flex-end;
}
.camp-jogo-time.direita {
  justify-content: flex-end;
  flex-direction: row-reverse;
}
.camp-jogo-placar {
  text-align: center;
  font-size: 1.3em;
  font-weight: 900;
  color: #111;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 4px 8px;
  min-width: 70px;
  white-space: nowrap;
}
.camp-jogo-placar.agendado {
  color: #888;
  font-size: 0.85em;
  font-weight: 400;
}
.camp-jogo-info {
  grid-column: 1 / -1;
  font-size: 0.82em;
  color: #888;
  text-align: center;
  padding: 0 0 4px 0;
}
.camp-penaltis {
  grid-column: 1 / -1;
  text-align: center;
  padding: 0 0 4px 0;
}
.camp-penaltis-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  height: 22px;
  padding: 0 8px;
  border-radius: 7px;
  background: #f5f5f5;
  border: 1px solid #dddddd;
  color: #2e7d0a;
  font-size: 0.84em;
  font-weight: 700;
  white-space: nowrap;
}

/* ---- Mata-Mata ---- */
.camp-mata-wrapper {
  max-width: 880px;
  margin: 0 auto;
}
.camp-mata-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #ddd;
  background: #f6f6f6;
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 10px;
}
.camp-mata-nav-centro {
  text-align: center;
}
.camp-mata-btn {
  border: none;
  border-radius: 8px;
  background: #111;
  color: #79fe01;
  font-family: 'Saira', Arial, sans-serif;
  font-weight: 700;
  font-size: 0.9em;
  padding: 8px 12px;
  cursor: pointer;
}
.camp-mata-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.camp-mata-titulo {
  font-size: 1em;
  font-weight: 700;
  color: #222;
  padding: 0;
  border-radius: 0;
  margin: 0;
}
.camp-mata-indicador {
  display: inline-block;
  margin-top: 2px;
  color: #666;
  font-size: 0.82em;
}
.camp-mata-fase {
  min-width: 0;
}
.camp-mata-fase .camp-rodada-lista {
  margin-bottom: 0;
}

/* ---- Artilheiros ---- */
.camp-artilheiros-tabela {
  width: 100%;
  max-width: 600px;
  border-collapse: collapse;
  font-size: 0.95em;
  background: #fff;
}
.camp-artilheiros-tabela thead tr {
  background: #333;
  color: #79fe01;
}
.camp-artilheiros-tabela thead th {
  padding: 8px 12px;
  font-weight: 700;
  text-align: left;
}
.camp-artilheiros-tabela thead th:last-child {
  text-align: center;
}
.camp-artilheiros-tabela tbody tr {
  border-bottom: 1px solid #eee;
}
.camp-artilheiros-tabela tbody tr:hover {
  background: #f9ffe0;
}
.camp-artilheiros-tabela tbody td {
  padding: 8px 12px;
  vertical-align: middle;
}
.camp-artilheiros-tabela tbody td:last-child {
  text-align: center;
  font-weight: 900;
  font-size: 1.1em;
  color: #111;
}
.camp-artilheiro-pos {
  font-weight: 700;
  color: #555;
}

/* Mensagem de sem dados */
.camp-sem-dados {
  text-align: center;
  color: #aaa;
  padding: 32px 0;
  font-size: 1em;
}

/* Publicidade inferior */
.publicidade2 {
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsivo */
@media (max-width: 700px) {
  .camp-identidade {
    gap: 12px;
  }
  .camp-identidade-logo {
    width: 48px;
    height: 48px;
  }
  .camp-identidade-nome {
    font-size: 1.5em;
  }
  .camp-grupo-inner {
    grid-template-columns: 1fr;
  }
  .camp-grupo-tabela {
    border-right: none;
    border-bottom: 2px solid #e8e8e8;
    min-width: 0;
  }
  .camp-aba-btn {
    padding: 8px 14px;
    font-size: 0.9em;
  }
  .camp-jogo-card {
    grid-template-columns: 1fr 60px 1fr;
    padding: 8px 8px;
  }
  .camp-jogo-time span {
    display: none;
  }
  .camp-mata-nav {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .camp-mata-btn {
    width: 100%;
  }
}
