/* === Reset e Base === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(135deg, #4B0082, #8A2BE2);
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  text-align: center;
}

img {
  max-width: 100%;
  display: block;
}

/* === Scrollbar Personalizado === */
::-webkit-scrollbar {
  width: 14px;
  background: #232127;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #8A2BE2, #4B0082);
  border-radius: 8px;
  border: 3px solid #232127;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #DA70D6, #8A2BE2);
}

::-webkit-scrollbar-track {
  background: #232127;
  border-radius: 8px;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #8A2BE2 #232127;
}

/* === Navegação === */
.main-nav {
  background: rgba(0, 0, 0, 0.6);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  /* Animation for nav bar */
  animation: slideDown 0.6s ease-out forwards;
  scroll-behavior: smooth ;
  text-align: center; /* Center align nav items */
  width: 100%; /* Ensure full width */
  backdrop-filter: blur(10px); /* Add a blur effect */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border for separation */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* Soft shadow for depth */
  transition: background 0.3s ease-in-out; /* Smooth background transition */
}

.nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1px;
  padding: 0;
  margin: 0;
}

.nav-list li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.nav-list li a::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background-color: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease-in-out;
}

.nav-list li a:hover::before {
  transform: scaleX(1);
}

.nav-list li a:hover {
  background-color: #DA70D6;
  transform: translateY(-3px);
}
.nav-list li a.active {
  background-color: #4B0082; /* Active link background */
  color: #fff; /* Active link text color */
  transform: translateY(-3px); /* Slight lift for active link */
}

/* === Cards === */
.card-container {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 20px;
  padding: 40px 24px;
  margin: 40px auto;
  max-width: 500px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  animation: fadeInScale 0.8s ease-out forwards;
}

.site-logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 24px;
  animation: pulse 1.8s infinite alternate, rotate3D 5s infinite linear;
  background: #fff;
  object-fit: cover;
}

.logo {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 150px;
  background: none;
  padding: 5px;
}

.logo:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease-in-out;
}

h1 {
  font-size: 2rem;
  color: #DA70D6;
  margin-bottom: 20px;
  animation: textGlow 2s infinite alternate;
}

.loader-circle {
  width: 60px;
  height: 60px;
  border: 6px solid rgba(255, 255, 255, 0.2);
  border-top: 6px solid #DA70D6;
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
  margin: 20px auto;
}

/* === Seção Sobre === */
.sobre-section {
  padding: 60px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.sobre-section h2 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 20px;
  animation: textGlow 2s infinite alternate;
}

.sobre-section p {
  color: #E0BBE4;
  font-size: 1.1rem;
  animation: fadeIn 1s ease-out forwards;
}

/* === Grid de Indicados === */
.indicados-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px 40px;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 0; /* Ou um valor específico */
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    animation: fadeInSlideUp 0.8s ease-out forwards;
    opacity: 0;
    transition: opacity 0.5s ease;
    
    /* As propriedades para o scroll: */
    overflow: auto; 
    max-height: 1000px; /* Ajuste este valor conforme a necessidade do seu layout */
}
.indicado-card {
    background: #58198b;
    border: #000000 1px solid;
    border-radius: 16px;
    padding: 18px 12px 14px 12px;
    
    width: 180px; /* Definindo a largura exata do card */
    min-height: 210px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    text-align: center;
    transition: 0.3s ease-in-out;
    animation: fadeInSlideUp 0.8s ease-out forwards;
    opacity: 0;
    margin: 0; /* Mantenha margin: 0; pois o gap lidará com o espaçamento */
    
    /* Configurações para Flexbox dentro do indicado-card (para o conteúdo interno >3) */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    flex-shrink: 0;
    flex-grow: 0; 
    flex-basis: 180px;
}

.indicado-card:nth-child(2) { animation-delay: 0.1s; }
.indicado-card:nth-child(3) { animation-delay: 0.2s; }
.indicado-card:nth-child(4) { animation-delay: 0.3s; }

.indicado-card img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-bottom: 12px;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
  display: block;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  filter: brightness(0.9);
}

.indicado-card img:hover {
  transform: rotate(10deg) scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
  filter: brightness(1.1);
  transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
  animation-delay: 2s;
  animation-fill-mode: forwards; /* Garante que a animação mantenha o estado final */
  animation-timing-function: ease-in-out; /* Suaviza a animação */
}

.indicado-card h3 {
  color: #DA70D6;
  margin-bottom: 6px;
  font-size: 1.4rem;
  font-weight: bold;
}

.indicado-card p {
  font-size: 1rem;
  color: #000000;
  margin-bottom: 8px;
  background-color: rgba(234, 0, 255, 0.1);
  border: #000000 1px solid;
  border-radius: 10px;
}

.indicado-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}

.indicado-card:hover img {
  transform: rotate(15deg) scale(1.1);
}

.indicado-card:hover h3 {
  color: #fff;
  text-shadow: 0 0 10px #DA70D6, 0 0 20px #DA70D6;
}

.card-description {
  font-size: 0.9rem;
  color: #ccc;
}

.social-icons-indicado {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

.social-icons-indicado a img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  padding: 3px;
  transition: 0.3s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.social-icons-indicado a img:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  filter: brightness(1.2);
}

/* === Footer === */
.site-footer {
  background: rgba(0, 0, 0, 0.6);
  padding: 24px;
  color: #E0BBE4;
  margin-top: 60px;
  animation: fadeIn 1s ease-out forwards;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
}

.social-links a img {
  width: 32px;
  height: 32px;
  transition: 0.3s;
}

.social-links a img:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px #DA70D6);
}

/* === Categorias com toggle === */
.categoria-section {
  margin: 20px auto;
  padding: 0;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  max-width: 1000px;
  overflow: hidden;
}

.categoria-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  padding: 14px 20px;
  border-radius: 10px 10px 0 0;
  user-select: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  animation: fadeIn 0.5s ease-out forwards;
}

.categoria-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #DA70D6;
}

.categoria-toggle {
  font-size: 1.8rem;
  color: #DA70D6;
  transform: rotate(0deg);
  transition: transform 0.3s ease;
  user-select: none;
  cursor: pointer;
  display: inline-block;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background 0.3s ease, transform 0.3s ease;
  animation: alternate 1.5s infinite alternate, fadeIn 0.5s ease-out forwards;
}

.title-section h1 {
  font-size: 2rem;
  color: #DA70D6;
  margin: 40px 0;
}

.categoria-section.collapsed .indicados-grid {
  max-height: 0;
  padding: 0 20px;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.3s ease;
  transition-delay: 0.2s;
  box-shadow: none;
  transform: translateY(-20px);
  animation: fadeInSlideUp 0.5s ease-out forwards;
  animation-delay: 0.2s;
  pointer-events: none; /* Impede interação quando colapsado */
  user-select: none; /* Impede seleção de texto quando colapsado */
  background: rgba(0, 0, 0, 0.1); /* Fundo mais claro quando colapsado */
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transform: rotateX(10deg);
  animation: fadeIn 0.5s ease-out forwards, slideDown 0.5s ease-out forwards;
  animation-delay: 0.5s;
}

.categoria-section:not(.collapsed) .indicados-grid {
  max-height: none;
  padding: 20px;
  opacity: 1;
  overflow: visible;
  transition: opacity 0.5s ease;
}

.categoria-section:not(.collapsed) .categoria-toggle {
  transform: rotate(180deg);
}

/* === Animações === */
@keyframes pulse {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes textGlow {
  0% { text-shadow: 0 0 5px #DA70D6; }
  100% { text-shadow: 0 0 15px #DA70D6, 0 0 25px #DA70D6; }
}

@keyframes fadeInSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes rotate3D {
  0% { transform: perspective(500px) rotateY(0deg); }
  100% { transform: perspective(500px) rotateY(360deg); }
}

/* === Responsividade === */
@media (max-width: 768px) {
  .nav-list {
    flex-direction: column;
    gap: 10px;
  }

  .card-container {
    padding: 20px;
  }

  .site-logo {
    width: 60px;
    height: 60px;
  }

  .indicado-card {
    flex: 0 1 45%;
  }

  .indicado-card img {
    width: 60px;
    height: 60px;
  }

  h1, .sobre-section h2 {
    font-size: 1.6rem;
  }

  .countdown-numbers {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .indicado-card {
    flex: 0 1 90%;
  }
}

.nav-list a.active {
  background-color: #4B0082;
}

@media (max-width: 800px) {
  .main-nav {
    padding: 10px 0;
  }

  .nav-list {
    flex-direction: row ;
    align-items: center;
    gap: 10px;
  }

  .nav-list li {
    width: 100%;
    text-align: center;
  }

  .nav-list li a {
    padding: 10px 20px;
    font-size: 1rem;
  }

  .site-logo {
    width: 60px;
    height: auto;
  }

  .title-section {
    font-size: 1.5rem;
    margin: 15px 0;
    padding: 8px;
    text-align: center;
  }

  .categoria-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
  }

  .categoria-header h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .categoria-toggle {
    font-size: 1.5rem;
    margin-top: 5px;
    transform: rotate(0deg);
  }

.indicados-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* força 2 colunas fixas */
  gap: 16px;
  padding: 20px;
  justify-items: center;
}

.indicado-card {
  background-color: #4b0082; /* ajuste conforme seu tema */
  padding: 16px;
  border-radius: 12px;
  text-align: center;
  max-width: 140px; /* força ficar pequeno */
  box-shadow: 0 0 6px rgba(0,0,0,0.2);
}

.indicado-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: block;
  margin: 0 auto 12px;
}

.indicado-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

.indicado-card h3 {
  font-size: 1rem;
  margin: 8px 0;
}

.social-icons-indicado {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.social-icons-indicado img {
  width: 22px;
  height: 22px;
}

}
