/* RESET E BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

/* Variáveis CSS para facilitar a atualização dinâmica do background */
:root {
  --bg-desktop-url: url('imagens/bg-desktop.webp');
  --bg-mobile-url: url('imagens/bg-mobile.webp');
}

body {
  min-height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #fff;
  margin: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: #0c0f0c;
  background-image: var(--bg-desktop-url);
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Background fixo */
  background-repeat: no-repeat;
}

@media (max-width: 768px) {
  /* Mobile background handled by ::before pseudo-element */
  body {
    /* Remove direct background image for mobile, rely on ::before */
    background-image: none;
  }

  body::before {
    content: "";
    position: fixed; /* Fixed position to simulate background-attachment: fixed */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Place behind the body content */

    background-image: var(--bg-mobile-url);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
  }
}

/* Classe para forçar atualização visual */
.bg-updated {
  animation: bg-refresh 0.1s;
}

@keyframes bg-refresh {
  0% { opacity: 0.99; }
  100% { opacity: 1; }
}

/* MENU FIXO NO TOPO */
.top-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.menu-container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px;
  position: relative;
}

.menu-item {
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  margin: 0 10px;
  border-radius: 5px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.menu-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.menu-item i {
  margin-right: 8px;
}

.logout-container {
  position: absolute;
  right: 15px;
}

/* BOTÃO LOGOUT */
.logout-btn {
  display: block;
  padding: 10px 18px;
  background: linear-gradient(135deg, #ff4d4d, #e60000);
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: background 0.3s ease, transform 0.2s ease;
}

.logout-btn:hover {
  background: linear-gradient(135deg, #e60000, #cc0000);
  transform: scale(1.05);
}

.logout-btn i {
  margin-right: 5px;
}

/* ESTRUTURA DE CONTEÚDO */
.content-wrapper {
  flex: 1;
  padding-top: 80px; /* Espaço para o menu fixo */
  padding-bottom: 40px; /* Espaço para o rodapé */
}

/* CONTAINERS PRINCIPAIS */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
  text-align: center;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
}

.top-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 16px 24px;
}

/* LOGO E TÍTULOS */
.logo {
  width: 240px;
  margin-bottom: 12px;
}

.page-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff86b;
  margin: 8px 0;
}

.subtitle {
  color: #ccc;
}

/* Container principal de plataformas */
#platforms-container,
.platforms-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 20px;
  background-color: #ffffff0c;
}

/* Wrapper de ícones */
.icons-wrapper {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Link ou item de plataforma */
.platform-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Wrapper da imagem com efeito de subida */
.platform-img-wrapper,
.icon-link {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  transition: transform 0.3s ease;
  background-color: transparent; /* remove fundo preto */
}

/* Imagem recente com destaque */
.platform-img-wrapper.recent {
  box-shadow: 0 0 12px 4px orange;
}

/* Efeito de subida no hover */
.platform-img-wrapper:hover,
.icon-link:hover {
  transform: translateY(-8px);
  cursor: pointer;
}

/* Estilo da imagem (sem fundo e ajustada) */
.platform-img,
.icon-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background-color: transparent;
}


.icon-link:hover {
  transform: scale(1.1);
}

.country-select {
  padding: 5px;
  margin-right: 8px;
  border-radius: 5px;
  font-size: 14px;
  max-width: 130px;
}
.country-select option {
  padding: 5px;
}


.badge-novo {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: red;
  color: white;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 10px;
  z-index: 2;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
}

/* FILTROS */
.filter-section {
  margin: 72px auto 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 10px 20px;
  background-color: transparent;
  border-radius: 12px;
  max-width: 900px;
}

.filter-section input,
.filter-section select {
  padding: 12px 16px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #fff;
  background-color: #fff;
  color: #000;
  min-width: 220px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

/* Foco nos campos de filtro */
.filter-section input:focus,
.filter-section select:focus {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(246, 216, 64, 0.4);
  outline: none;
}

/* Adaptação para mobile */
@media (max-width: 768px) {
  .filter-section {
    flex-direction: column; /* Empilha os filtros verticalmente */
    padding: 10px; /* Reduz o padding para telas menores */
  }

  .filter-section input,
  .filter-section select {
    min-width: 100%; /* Faz os campos de filtro ocuparem toda a largura disponível */
    margin-bottom: 10px; /* Adiciona espaço entre os campos */
  }

  .filter-section input:last-child,
  .filter-section select:last-child {
    margin-bottom: 0; /* Remove a margem do último campo */
  }
}

/* INFO DE ATUALIZAÇÃO */
.update-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.08);
  padding: 14px 24px;
  border-radius: 16px;
  margin: 24px auto;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  color: #f1f1f1;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  flex-wrap: wrap;
  max-width: 300px;
  width: 100%;
}

#lastUpdate {
  text-align: center;
  width: 100%;
  display: block;
  margin-top: 8px;
}

.update-icon {
  width: 30px;
  height: 30px;
}

.update-text span {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
}
/* CARDS DE JOGOS */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, 220px); /* aumentado de 190px para 220px */
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

/* ✅ Responsivo para mobile: 2 cards por linha */
@media (max-width: 600px) {
  .cards-container {
    grid-template-columns: repeat(auto-fill, 190px); /* aumentado de 190px para 220px */
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    padding: 0 5px;
  }
}

/* Card de jogo com cor dinâmica */
.card-game {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: white;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-game:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.card-banner {
  width: 100%;
  height: 180px;
  overflow: hidden; /* esconde o que ultrapassar */
  position: relative;
}

.card-banner img {
  width: 100%;          /* ocupa toda a largura do card */
  height: 100%;         /* mantém a altura fixa */
  object-fit: cover;    /* cobre a área mantendo boa aparência */
  display: block;
  transition: transform 0.3s ease;
}

.card-game:hover .card-banner img {
  transform: scale(1.05);
}

.card-content {
  padding: 30px 15px 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.game-title-provider {
  text-align: center;
  margin-bottom: 10px;
}

.game-title-provider h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.card-porcentagem {
  margin-top: 5px;
  padding: 3px 8px;
  font-size: 0.85rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  display: inline-block;
  color: #fff;
  font-weight: 600;
}

.game-title-provider p {
  margin: 4px 0 12px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.progress-section {
  margin-top: 5px;
  margin-bottom: -50px;
  flex-grow: 1;
}

.progress-item {
  margin-bottom: 12px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: bold;
}

.progress-value {
  font-weight: 600;
  color: #fff;
}

.progress-bar-container {
  width: 100%;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: 5px;
  transition: width 0.4s ease;
}

.progress-fill.minima { background-color: #2ecc71; }
.progress-fill.padrao { background-color: #f39c12; }
.progress-fill.maxima { background-color: #2ecc71; }

/* APOSTAS */
.bets-category {
  margin-top: 16px;
}

.bets-title {
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: #ccc;
  text-align: center;
  font-weight: 600;
}

.bets-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.bets-list span {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  color: #eee;
  border: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
}

.apostas-sugeridas{
  margin-top: auto;
}

.sugestoes-apostas {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 12px;
  border-radius: 12px;
  margin-top: 15px;
  color: white;
}

.apostas-titulo {
  text-align: center;
  font-weight: bold;
  font-size: 13px;
  color: #facc15;
  text-transform: uppercase;
}

.aposta-bloco {
  text-align: center;
  margin-bottom: 12px;
}

.aposta-tipo {
  font-size: 11px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.linha-aposta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.linha-aposta.dupla {
  gap: 8px;
  justify-content: center;
}

.aposta-nome {
  font-weight: bold;
}

.aposta-valor,
.aposta-maxima {
  background-color: #22c55e;
  color: white;
  font-size: 10px;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.aposta-maxima {
  width: 100%;
  text-align: center;
  margin-top: 8px;
}

/* BOTÃO JOGAR */
.btn-jogar {
  background-color: #28a745;
  color: white;
  font-size: 14px;
  width: 100%;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 8px;
  text-align: center;
  margin-top: 15px;
  border: none;
  transition: all 0.3s ease;
  display: block;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-jogar:hover {
  background-color: #218838;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* Tag de distribuição */
.distribuicao-tag {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.85);
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 5px;
  text-align: center;
}

/* Tag de jogo novo */
.tag-novo {
  position: absolute;
  top: 10px;
  left: 0;
  background-color: #ff3333;
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 0 4px 4px 0;
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}


/* RODAPÉ */
.site-footer {
  background-color: rgba(0, 0, 0, 0.85);
  padding: 20px 0;
  text-align: center;
  margin-top: auto;
  width: 100%;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.footer-logo img {
  height: 60px;
  width: auto;
}

.footer-text p {
  color: #ccc;
  font-size: 0.9rem;
}

/* BOTÃO FLUTUANTE DO WHATSAPP */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1);
}

/* POPUP DE CONFIRMAÇÃO */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(-20px);
  transition: all 0.3s ease;
}

.popup-overlay.active .popup-content {
  transform: translateY(0);
}

.popup-title {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 15px;
}

.popup-message {
  font-size: 1rem;
  color: #666;
  margin-bottom: 25px;
}

.popup-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.popup-btn {
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.popup-btn-confirm {
  background-color: #28a745;
  color: white;
  border: none;
}

.popup-btn-confirm:hover {
  background-color: #218838;
}

.popup-btn-cancel {
  background-color: #dc3545;
  color: white;
  border: none;
}

.popup-btn-cancel:hover {
  background-color: #c82333;
}

/* RESPONSIVIDADE DO MENU */
@media (max-width: 768px) {
  .menu-container {
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 5px;
  }
  
  .menu-item {
    padding: 8px 12px;
    margin: 5px;
    font-size: 0.9rem;
  }
  
  .logout-container {
    position: relative;
    right: auto;
    margin-top: 10px;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  .logout-btn {
    width: 100%;
    max-width: 200px;
  }
  
  .content-wrapper {
    padding-top: 120px;
  }
}

/* AJUSTES PARA TELAS MUITO PEQUENAS */
@media (max-width: 480px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 25px;
    right: 20px;
    bottom: 20px;
  }
  
  .footer-logo img {
    height: 40px;
  }
  
  .footer-text p {
    font-size: 0.8rem;
  }
}

.progress-bar {
  height: 10px;
  border-radius: 4px;
  transition: width 0.3s ease, background-color 0.3s ease;
}


/* Esconder o sidenav original em mobile */
@media (max-width: 1200px) {
  .sidenav {
    display: none !important; /* Força a ocultação do sidenav original em mobile */
  }
}

/* Estilos para o novo menu mobile */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -280px; /* Esconde o menu fora da tela */
  width: 270px;
  height: 100%;
  background-color: #212529; /* Cor de fundo escura */
  z-index: 1040; /* Acima do overlay, abaixo de modais */
  transition: right 0.3s ease-in-out;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
  padding-top: 60px; /* Espaço para o botão de fechar/cabeçalho */
  overflow-y: auto;
  display: none; /* Inicialmente escondido */
}

.mobile-menu.show {
  right: 0; /* Mostra o menu */
}

.mobile-menu .navbar-nav {
  flex-direction: column;
  padding: 20px;
}

.mobile-menu .nav-item {
  margin-bottom: 10px;
}

.mobile-menu .nav-link {
  padding: 10px 15px;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.mobile-menu .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu .nav-link.active {
  background-color: #e91e63; /* Cor de destaque */
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1030; /* Abaixo do menu */
  display: none; /* Inicialmente escondido */
}

/* Mostrar o menu mobile e overlay apenas em telas menores */
@media (max-width: 1200px) {
  .mobile-menu {
    display: block;
  }
  .mobile-menu-overlay.show {
    display: block;
  }
}

/* Ajuste para o botão hambúrguer */
.navbar-nav .nav-item.d-xl-none.ms-auto {
  display: flex !important; /* Garante que o botão hambúrguer seja visível em mobile */
}



/* Melhorias para paginação mobile */
@media (max-width: 768px) {
  .pagination-container {
    flex-direction: column;
    gap: 15px;
    padding: 10px 0;
  }
  
  .pagination-controls {
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
  }
  
  .pagination-btn {
    min-width: 40px;
    min-height: 40px;
    padding: 8px;
    font-size: 14px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .pagination-btn i {
    font-size: 12px;
  }
  
  #page-numbers {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .page-size-selector {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  
  .page-size-selector select {
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 6px;
    min-width: 80px;
  }
  
  .pagination-info {
    text-align: center;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .pagination-btn {
    min-width: 35px;
    min-height: 35px;
    padding: 6px;
    font-size: 12px;
  }
  
  .pagination-btn i {
    font-size: 10px;
  }
  
  #page-numbers .pagination-btn {
    min-width: 30px;
    min-height: 30px;
    font-size: 11px;
  }
}

