/* Configurações Globais da Página */
html,
body {
  margin: 50px auto 0 auto;
  padding: 0;
  background-color: #000;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
}
/* =======================================================
           NOVA BARRA DE MENU COM O ESTILO DA TELA INICIAL
           ======================================================= */
.menu-bar {
  background-color: 00; /* Fundo mais escuro para destacar os cards */
  padding: 15px;
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}
/* Transformando os links do menu em mini-quadrados (Cards) */
.menu-bar a {
  width: 70px;
  height: 73px;
  background-color: #000;
  border: 2px solid #334155;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding: 5px;
  box-sizing: border-box;
}
/* Ícones dentro dos cards do menu */
.menu-bar a img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 8px;
  transition: transform 0.3s ease;
}
/* EFEITO IGUAL DA TELA INICIAL AO PASSAR O MOUSE (Hover) */
.menu-bar a:hover {
  transform: translateY(-3px);
  border-color: #38bdf8;
  box-shadow: 0 8px 15px -3px rgba(56, 189, 248, 0.4);
}
.menu-bar a:hover img {
  transform: scale(1.05);
}
/* Destaque para o botão da página que está aberta no momento (Aba Ativa) */
.menu-bar a.active {
  border-color: #38bdf8;
  background-color: #0f172a;
  box-shadow: inset 0 0 10px rgba(56, 189, 248, 0.2);
}
/* Botão Sair/Voltar Discreto na ponta esquerda */
.btn-voltar {
  position: absolute !important;
  left: 20px;
  width: auto !important;
  height: auto !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  color: #94a3b8 !important;
  font-size: 14px !important;
  font-weight: normal !important;
}
.btn-voltar:hover {
  color: #38bdf8 !important;
  transform: none !important;
  box-shadow: none !important;
}
/* Container do conteúdo abaixo do menu alto */
.main-content {
  margin-top: 90px; /* Aumentado para o conteúdo não sumir sob o novo menu em blocos */
  display: flex;
  flex-direction: column;
  width: 100%;
}
.content-frame {
  width: 100%;
  border: none;
  display: block;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.instagram-section {
  width: 100%;
  max-width: 1100px;
  margin: 40px auto;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
}

.instagram-section h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.instagram-section p {
  margin-bottom: 24px;
}

.instagram-feed {
  width: 100%;
  overflow: hidden;
}

.instagram-feed iframe {
  max-width: 100%;
}

.instagram-link {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 22px;
  border-radius: 6px;
  background: #222;
  color: white;
  text-decoration: none;
}

.instagram-link:hover {
  opacity: 0.8;
}

@media (max-width: 600px) {
  .instagram-section {
    padding: 12px;
  }

  .instagram-section h2 {
    font-size: 23px;
  }
}
* {
  box-sizing: border-box;
}

body {
  margin: 50;
  background: #080808;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

.container {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 28px 18px 40px;
}

.cabecalho {
  text-align: center;
  margin-bottom: 25px;
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: #fff;
  text-align: left;
  text-decoration: none;
}

.simbolo {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e5b943;
  color: #000;
  font-weight: 800;
}

.marca strong,
.marca small {
  display: block;
}

.marca strong {
  font-size: 17px;
}

.marca small {
  margin-top: 5px;
  color: #bbb;
}

.cabecalho h1 {
  margin: 0 0 10px;
  font-size: clamp(25px, 4vw, 36px);
}

.cabecalho p {
  color: #bbb;
  line-height: 1.5;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.postagem {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #000;
  border: 1px solid #292929;
  border-radius: 5px;
}

.postagem a {
  display: block;
  width: 100%;
  height: 100%;
}

.postagem img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.postagem a:hover img {
  transform: scale(1.04);
}

.tipo-midia {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 5px 8px;
  border-radius: 4px;
  background: #000;
  color: #fff;
  font-size: 12px;
  pointer-events: none;
}

#status {
  text-align: center;
  padding: 20px 0;
  color: #ccc;
}

#status:empty {
  display: none;
}

#status.erro {
  color: #ff8b8b;
}

.botao-instagram {
  display: block;
  width: fit-content;
  margin: 28px auto 0;
  padding: 13px 22px;
  border-radius: 5px;
  background: #e5b943;
  color: #000;
  font-weight: bold;
  text-decoration: none;
}

.botao-instagram:hover {
  background: #f1cf6b;
}

@media (max-width: 600px) {
  .container {
    padding: 22px 10px 30px;
  }

  .instagram-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
}

/* Widget compacto de localização e clima */
.card-info-rodada {
  background-color: #000;
  border: 1px solid #222;
  border-radius: 6px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;

  width: fit-content;
  max-width: calc(100% - 24px);
  padding: 10px 16px;
  margin: 0 auto;

  min-height: 0;
  box-sizing: border-box;
}

/* Linha da localização */
.bloco-local {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Nome do ginásio */
.nome-campo {
  color: #fff;
  font-weight: bold;
  margin: 0;
  font-size: 13px;
}

/* Cidade */
.cidade {
  color: #888;
  font-size: 11px;
  font-weight: normal;
}

/* Botão GPS */
.btn-mapa {
  display: inline-block;
  width: fit-content;
  margin: 0;
  padding: 4px 8px;
  background-color: #222;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-size: 11px;
  border: 1px solid #444;
  font-weight: bold;
}

.btn-mapa:hover {
  background-color: #ffcc00;
  color: #000;
}

/* Linha do clima */
.bloco-clima {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 13px;
  color: #fff;
  flex-wrap: wrap;
}

/* Temperatura */
#weather-temp {
  font-weight: bold;
  color: #ffcc00;
  font-size: 14px;
  white-space: nowrap;
}

/* Descrição do clima */
#weather-desc {
  color: #aaa;
}

/* Ajustes para telas pequenas */
@media (max-width: 600px) {
  .card-info-rodada {
    max-width: calc(100% - 20px);
    padding: 10px 12px;
  }

  .bloco-local,
  .bloco-clima {
    gap: 6px;
  }
}

/* =====================================================
   BOLÃO COPA SHALOM — ESTILOS EXCLUSIVOS
   ===================================================== */

.pagina-bolao {
  background: #050505;
  color: #f5f5f5;
  font-family: Arial, sans-serif;
  margin: 30px;
  min-height: 100vh;
}

.pagina-bolao [hidden] {
  display: none !important;
}

.pagina-bolao .bolao-cabecalho {
  padding: 35px 16px;
  text-align: center;
  background: linear-gradient(135deg, #080808, #13243b);
  border-bottom: 3px solid #d4af37;
}

.pagina-bolao .bolao-identificacao {
  color: #56baff;
  font-weight: bold;
  letter-spacing: 2px;
}

.pagina-bolao .bolao-cabecalho h1 {
  color: #f3cc52;
  font-size: clamp(25px, 5vw, 42px);
  margin: 18px 0 10px;
}

.pagina-bolao .bolao-cabecalho h2 {
  font-size: clamp(17px, 3vw, 24px);
}

.pagina-bolao .bolao-voltar {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  margin-bottom: 18px;
}

.pagina-bolao .bolao-voltar:hover {
  color: #f3cc52;
}

.pagina-bolao .bolao-container {
  width: min(100% - 28px, 1000px);
  margin: 25px auto;
}

.pagina-bolao .bolao-painel {
  background: #111820;
  border: 1px solid #283b4d;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 5px 18px #0008;
}

.pagina-bolao .bolao-painel h2 {
  color: #f3cc52;
  margin-top: 0;
}

.pagina-bolao .bolao-painel p,
.pagina-bolao .bolao-regras {
  line-height: 1.6;
}

.pagina-bolao button {
  background: #d4af37;
  color: #080808;
  border: 0;
  border-radius: 7px;
  padding: 11px 16px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
}

.pagina-bolao button:hover {
  background: #f3cc52;
}

.pagina-bolao button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.pagina-bolao .bolao-usuario {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.pagina-bolao .bolao-usuario span,
.pagina-bolao .bolao-usuario strong {
  display: block;
  margin-bottom: 5px;
}

.pagina-bolao .bolao-aviso,
.pagina-bolao .bolao-observacao {
  color: #c5d0dc;
  font-size: 14px;
}

.pagina-bolao .bolao-partida {
  background: #080d12;
  border: 1px solid #293d50;
  border-left: 4px solid #d4af37;
  border-radius: 9px;
  padding: 16px;
  margin: 14px 0;
}

.pagina-bolao .bolao-partida-topo {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.pagina-bolao .bolao-numero {
  color: #f3cc52;
  font-weight: bold;
}

.pagina-bolao .bolao-status {
  color: #8ccfff;
  font-size: 13px;
}

.pagina-bolao .bolao-data {
  color: #bac5d0;
  font-size: 13px;
}

.pagina-bolao .bolao-times {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  text-align: center;
  margin: 18px 0;
}

.pagina-bolao .bolao-times strong {
  overflow-wrap: anywhere;
}

.pagina-bolao .bolao-placar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagina-bolao .bolao-placar input {
  width: 48px;
  height: 44px;
  box-sizing: border-box;
  text-align: center;
  background: #172534;
  color: #fff;
  border: 1px solid #4d6680;
  border-radius: 6px;
  font-size: 20px;
  font-weight: bold;
}

.pagina-bolao .bolao-placar input:disabled {
  opacity: 0.7;
}

.pagina-bolao .bolao-salvar {
  width: 100%;
  margin-top: 8px;
}

.pagina-bolao .bolao-resultado {
  color: #8ee6a0;
}

.pagina-bolao .bolao-pontos {
  color: #f3cc52;
}

.pagina-bolao .bolao-tabela-wrapper {
  width: 100%;
  overflow-x: auto;
}

.pagina-bolao .bolao-tabela {
  width: 100%;
  border-collapse: collapse;
  min-width: 380px;
}

.pagina-bolao .bolao-tabela th,
.pagina-bolao .bolao-tabela td {
  padding: 12px 9px;
  text-align: left;
  border-bottom: 1px solid #2a3c4d;
}

.pagina-bolao .bolao-tabela th {
  color: #f3cc52;
  background: #080d12;
}

.pagina-bolao .bolao-tabela tbody tr:nth-child(-n + 3) td:first-child {
  color: #f3cc52;
  font-weight: bold;
}

.pagina-bolao .bolao-mensagem {
  color: #8ee6a0;
  font-weight: bold;
  text-align: center;
}

.pagina-bolao .bolao-mensagem.bolao-erro {
  color: #ff8b8b;
}

.pagina-bolao .bolao-rodape {
  text-align: center;
  padding: 25px 12px;
  color: #b9c5d0;
  border-top: 1px solid #283b4d;
}

@media (max-width: 520px) {
  .pagina-bolao .bolao-painel {
    padding: 14px;
  }

  .pagina-bolao .bolao-times {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 6px;
    font-size: 13px;
  }

  .pagina-bolao .bolao-placar {
    gap: 4px;
  }

  .pagina-bolao .bolao-placar input {
    width: 38px;
    height: 40px;
    font-size: 18px;
  }
}
/* =====================================================
   CHAT FLUTUANTE - COPA SHALOM
   ===================================================== */

#copa-chat-botao {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 99999;
  width: 62px;
  height: 62px;
  border: 2px solid #f0cb70;
  border-radius: 50%;
  background: #d9ad45;
  color: #101010;
  font-size: 27px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
}

#copa-chat-botao:hover {
  background: #edc765;
  transform: scale(1.05);
}

#copa-chat-painel {
  display: none;
  position: fixed;
  right: 22px;
  bottom: 96px;
  z-index: 99999;
  width: 420px;
  height: min(700px, calc(100vh - 125px));
  background: #080b12;
  border: 1px solid #d9ad45;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.65);
}

#copa-chat-painel.aberto {
  display: flex;
  flex-direction: column;
}

#copa-chat-cabecalho {
  height: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: #111722;
  color: #d9ad45;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: bold;
}

#copa-chat-fechar {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 25px;
  cursor: pointer;
  padding: 0 5px;
}

#copa-chat-iframe {
  width: 100%;
  flex: 1;
  min-height: 0;
  border: 0;
  background: #080b12;
}

/* CELULAR */
@media (max-width: 600px) {
  #copa-chat-botao {
    right: 15px;
    bottom: 15px;
    width: 58px;
    height: 58px;
  }

  #copa-chat-painel {
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
  }

  #copa-chat-cabecalho {
    height: 48px;
    min-height: 48px;
  }
}
/* =====================================================
   PRÉVIA DAS ÚLTIMAS MENSAGENS DO CHAT
   ===================================================== */

#copa-chat-previa {
  position: fixed;
  right: 94px;
  bottom: 22px;
  z-index: 99998;
  width: 270px;
  padding: 9px 11px;
  background: #111722;
  border: 1px solid #d9ad45;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  color: #f3f4f6;
  font-family: Arial, sans-serif;
  font-size: 12px;
}

#copa-chat-previa .chat-previa-item {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  line-height: 1.5;
}

#copa-chat-previa .chat-previa-item + .chat-previa-item {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid #263448;
}

#copa-chat-previa strong {
  color: #d9ad45;
}

#copa-chat-previa.vazia {
  color: #9ba7b7;
  text-align: center;
}

#copa-chat-previa.oculta {
  display: none;
}

/* CELULAR */
@media (max-width: 600px) {
  #copa-chat-previa {
    right: 15px;
    bottom: 82px;
    width: calc(100% - 30px);
  }
}
