/* Estilo base */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: #0a0a0a;
  color: #fff;
  font-family: 'Segoe UI', sans-serif;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  background-color: #1a1a1a;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Altura total para seções de navegação por âncora */
.full-height {
  min-height: 100vh;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2rem 1rem;
}

/* Navbar */
.custom-navbar {
  background-color: rgba(0, 0, 0, 0.7);
  border-bottom: 1px solid #ffffff22;
  padding: 15px 0;
}

.navbar-nav .nav-link {
  color: #ccc;
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  transition: color 0.2s ease-in-out;
}

.navbar-nav .nav-link.active {
  color: #c68f39 !important;
  text-shadow: 0 0 2px #000;
}

.navbar-nav .nav-link:hover {
  color: #ffffff;
}

.navbar-nav.gap-4 {
  gap: 1.5rem !important;
}

/* Botão Login */
.btn-login {
  background: url('../../assets/layout1/buttons/btn-download.png') no-repeat center center;
  background-size: contain;
  border: none;
  color: white;
  font-weight: bold;
  padding: 10px 30px;
  font-size: 1rem;
  text-shadow: 1px 1px 1px black;
  width: 140px;
  height: 40px;
  transition: transform 0.2s ease;
}

.btn-login:hover {
  transform: scale(1.05);
}

/* Hero (Home) */
.hero {
  background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.2)), url('../../assets/layout1/Banner/baner.JPG') center/cover no-repeat;
}
.hero-content {
  max-width: 1200px;
  width: 100%;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1rem;
  text-align: center;
}

/* Botões principais */
.btn-download, .btn-register {
  position: relative;
  width: 250px;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.btn-download:hover, .btn-register:hover {
  transform: scale(1.05);
}

.btn-download .icon-img, .btn-register .icon-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Texto dentro da imagem */
.btn-download .texto,
.btn-register .texto {
  position: absolute;
  top: 11%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 2rem;
  pointer-events: none;
}


/* Online */
.online-circle {
  position: relative;
  width: 200px;
  height: 200px;
  margin: auto;
}
.online-circle svg {
  position: absolute;
  top: 0;
  left: 0;
}
.online-circle .content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Register */
#register .form-control {
  background-color: #1a1a1a;
  border: 1px solid #444;
  color: #fff;
}

#register .form-control:focus {
  border-color: #ec3434;
  box-shadow: 0 0 0 0.2rem rgba(255, 204, 0, 0.25);
}

#register label {
  font-weight: 500;
}

#register .btn-warning {
  background-color: #ec3434;
  border: none;
  color: #000;
}

#register .btn-warning:hover {
  background-color: #ec3434;
}

/* Novo Ranking com Pódio */
.ranking-podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 3rem;
  margin: 4rem auto 2rem;
  max-width: 800px;
  height: 320px;
}

.podium-place {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 120px;
  height: 100%;
  position: relative;
}

/* Altura dos degraus */
.place-1 { margin-bottom: 0px; }
.place-2 { margin-bottom: 30px; }
.place-3 { margin-bottom: 15px; }

/* Tamanho maior para tamer */
.podium-tamer img {
  height: 180px;           /* de 130px para 180px */
  margin-bottom: -80px;    /* aumenta para colar no pódio */
}

/* Tamanho maior do pódio */
.podium-img {
  width: 130px;            /* de 100px para 130px */
  z-index: -1;
}

/* Tamanho da fonte do nome */
.podium-name {
  font-size: 1.2rem;       /* aumenta a fonte do nome */
  font-weight: bold;
  text-align: center;
  margin-top: 0.75rem;
}

/* Tamanho da base da estrutura (opcional) */
.podium-place {
  width: 150px;            /* de 120px para 150px */
}

/* Ajuste geral na altura do container para comportar tudo */
.ranking-podium {
  height: 400px;           /* de 320px para 400px */
}


/* Degraus do pódio */
.place-1 { transform: translateY(-30px); z-index: 2; }
.place-2 { transform: translateY(-10px); }
.place-3 { transform: translateY(0); }

/* Abas */
.nav-tabs {
  border-bottom: 1px solid #333;
  justify-content: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.nav-tabs .nav-link {
  background: none;
  color: #ccc;
  border: none;
  font-weight: 600;
  text-transform: uppercase;
  transition: color 0.3s, border-bottom 0.3s;
}

.nav-tabs .nav-link.active {
  color: #fff;
  background-color: #ec3434;
}

.nav-tabs .nav-link:hover {
  color: #ec3434;
}

/* Conteúdo com transição suave */
.tab-pane {
  display: none;
}

.tab-pane.active.show {
  display: block;
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tabela TOP 10 */
.ranking-table table {
  width: 100%;
  background: #111;
  color: #fff;
  border-collapse: collapse;
}

.ranking-table th,
.ranking-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #222;
}

.ranking-table th {
  background: #1a1a1a;
  color: #f1f1f1;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.ranking-table tbody tr:hover {
  background-color: #181818;
}


/* Ícone VIP */
.vip-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #444;
  background-color: #0e0e0e;
  margin-bottom: 1rem;
}

.vip-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid rgba(255, 0, 0, 0.1);
  backdrop-filter: blur(4px);
}

.vip-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

.card-glow {
  background: linear-gradient(to bottom right, #1a1a1a, #111);
  border-radius: 1rem;
}

.vip-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
}


/* Texto e listas */
.flip-card-front h4,
.flip-card-front p,
.flip-card-back h5,
.flip-card-back ul,
.flip-card-back li {
  color: #ffffff;
}

.flip-card-front p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.flip-card-back ul {
  list-style: disc;
  padding-left: 1.2rem;
  margin-top: 0.5rem;
}

.flip-card-back li {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

/* Botão */
.flip-card-back button {
  border-color: #ffcc00;
  color: #ffcc00;
}

.flip-card-back button:hover {
  background-color: #ffcc00;
  color: #000;
}

/* Comprar Crowns */
.crown-input {
  width: 240px;
  background-color: #111;
  border: 1px solid #333;
  color: #fff;
  max-width: 90vw;
}

.btn-gold {
  background-color: #ffcc00;
  color: #000;
  border: none;
}

.btn-gold:hover {
  background-color: #e6b800;
}

/* Footer */
.footer {
  background-color: #0a0a0a;
  text-align: center;
  padding: 2rem 0;
  color: #aaa;
  font-size: 0.9rem;
  border-top: 1px solid #222;
}

/* Responsivo */
@media (max-width: 768px) {
  .hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
  }

  .btn-download .icon-img, .btn-register .icon-img, .texto {
    display: none;
  }

}

/* Ajusta o layout geral da seção no desktop */
@media (min-width: 992px) {
  #about .row {
    justify-content: center;
  }

  #about .col-md-4,
  #about .col-md-8 {
    flex: 0 0 auto;
    width: 100%;
    max-width: 600px;
  }

  #digimonList {
    position: absolute;
    top: 70px;
    width: 100%;
    z-index: 10;
    background-color: #111;
    border: 1px solid #333;
    border-radius: 0.25rem;
    display: none;
  }
}

/* Estética do campo de busca */
#searchInput {
  background-color: #1a1a1a;
  color: #fff;
  border: 1px solid #444;
  border-radius: 0.3rem;
  padding: 0.75rem;
  transition: border 0.3s;
  text-align: center;
}

#searchInput::placeholder {
  color: #888;
}

#searchInput:focus {
  border-color: #ec3434;
  box-shadow: 0 0 0 0.2rem rgba(236, 52, 52, 0.25);
  background-color: #1f1f1f;
  color: white;
  outline: none;
}

/* Lista de sugestões */
#digimonList .list-group-item {
  background-color: transparent;
  color: #ccc;
  border: none;
  border-bottom: 1px solid #333;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#digimonList .list-group-item:hover {
  background-color: #ec3434;
  color: white;
}

/* Detalhes */
#result .card {
  background-color: #1a1a1a;
  border: 1px solid #333;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  border-radius: 0.5rem;
}

.podium-rank {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.7);
  color: #fff;
  border-radius: 10px;
  padding: 4px 10px;
}

.preloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }

  .lds-ellipsis {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 24px;
  }

  .lds-ellipsis div {
    position: absolute;
    top: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e53935;
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
  }

  .lds-ellipsis div:nth-child(1) {
    left: 8px;
    animation: lds-ellipsis1 0.6s infinite;
  }

  .lds-ellipsis div:nth-child(2) {
    left: 8px;
    animation: lds-ellipsis2 0.6s infinite;
  }

  .lds-ellipsis div:nth-child(3) {
    left: 32px;
    animation: lds-ellipsis2 0.6s infinite;
  }

  .lds-ellipsis div:nth-child(4) {
    left: 56px;
    animation: lds-ellipsis3 0.6s infinite;
  }

  @keyframes lds-ellipsis1 {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
  }

  @keyframes lds-ellipsis2 {
    0% { transform: translateX(0); }
    100% { transform: translateX(24px); }
  }

  @keyframes lds-ellipsis3 {
    0% { transform: scale(1); }
    100% { transform: scale(0); }
  }

/* RESPONSIVIDADE PARA TELAS PEQUENAS */
@media (max-width: 768px) {
  .ranking-podium {
    flex-direction: column;
    align-items: center;
    height: auto;
    gap: 2rem;
    margin-top: 2rem;
  }

  .podium-place {
    width: 100%;
    max-width: 220px;
    height: auto;
    transform: none !important; /* Remove translateY nos degraus */
    margin-bottom: 0 !important;
  }

  .podium-tamer img {
    height: 130px;
    margin-bottom: -60px;
  }

  .podium-img {
    width: 100px;
  }

  .podium-name {
    font-size: 1rem;
    margin-top: 0.5rem;
  }

  .nav-tabs {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-tabs .nav-item {
    text-align: center;
  }

  .ranking-table table {
    font-size: 0.9rem;
  }

  .ranking-table th,
  .ranking-table td {
    padding: 0.5rem 0.6rem;
  }
}
  @media (max-width: 768px) {
    .auth-card {
      max-width: 100% !important;
      margin-bottom: 2rem;
    }
  }