
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: sans-serif;
  color: #e5e5e5;
  min-height: 100vh;
  background: linear-gradient(-45deg, #18181b, #2a2a36, #18181b, #1f1f29);
  background-size: 400% 400%;
  animation: gradientAurora 15s ease infinite;
  overflow-x: hidden;
  position: relative;
}

::-webkit-scrollbar{
  width: 12px;
}
::-webkit-scrollbar-thumb{
  width: 10px;
  background-color: #facc15;
  border-radius: 50px; 
}

/* Animação de gradiente */
@keyframes gradientAurora {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Partículas no fundo */
/* body::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,223,0,0.08) 2px, transparent 2px),
    radial-gradient(circle, rgba(0,191,255,0.08) 2px, transparent 2px);
  background-size: 50px 50px, 80px 80px, 100px 100px;
  animation: moveParticles 60s linear infinite;
  z-index: -1;
  pointer-events: none;
} */

@keyframes moveParticles {
  0%   { transform: translate(0,0); }
  100% { transform: translate(-100px,50px); }
}

/*CABEÇALHO */
.header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  background: #111827;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}



.logo-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid #facc15;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.titulo {
  font-size: 28px;
  font-weight: bold;
  color: #facc15;
  text-shadow: 1px 1px 8px rgba(0,0,0,0.6);
}

.subtitulo {
  font-size: 14px;
  color: #9ca3af;
}

.btn-login {
  background: #facc15;
  color: #000;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}
.btn-login:hover {
  background: #fde047;
  transform: scale(1.05);
}

/* CONTAINERS / CARDS*/
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}


.card {
  background: #111827;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}

.titulo-card {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.titulo-card.amarelo { color: #facc15; }
.titulo-card.verde   { color: #22c55e; }

.nomeEscolaPodio {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.6);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: transform 0.3s, color 0.3s, text-shadow 0.3s;
  white-space: normal; 
  word-wrap: break-word;
  width: 100%;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}
.podio-card:hover .nomeEscolaPodio {
  transform: scale(1.1);
  /* color: #fde047; */
  text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.7);
}


.podio-imagem {
  width: 50px;
  height: 50px;
  margin-top: 16px;
}


/*INPUTS */
.input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: none;
  outline: none;
  margin-bottom: 12px;
  font-size: 14px;
}

.pesquisa-escolas:focus { box-shadow: 0 0 0 2px #facc15; }
.pesquisa-alunos:focus  { box-shadow: 0 0 0 2px #22c55e; }

/* SCROLL BOX */
.scroll-box {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 6px;
  border-top: 1px solid #374151;
}

.scroll-box::-webkit-scrollbar {
  width: 8px;
}
.scroll-box::-webkit-scrollbar-thumb {
  background-color: #facc15;
  border-radius: 4px;
}
.scroll-box::-webkit-scrollbar-track {
  background: #1f2937;
}

/*PÓDIO */
.podio {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin: 48px 0;
}

.podio-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.podio-coroa {
  position: absolute;
  top: -32px;
  font-size: 36px;
}

.podio-card {
  width: auto;
  padding: 16px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.5);
  transition: transform 0.3s;
}
.podio-card:hover { transform: scale(1.05); }

.podio-1 { height: 260px; background: linear-gradient(to bottom, #facc15, #ca8a04); }
.podio-2 { height: 220px; background: #374151; }
.podio-3 { height: 180px; background: #ea580c; }

.podio-card p {
  margin-bottom: 8px;
  word-break: break-word;
}

/* LISTA DE RANKING */
.item-ranking {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-radius: 8px;
  transition: background 0.2s;
}
.item-ranking:hover { background: #1f2937; }

.item-ranking .linha {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.item-ranking .pos-nome {
  font-weight: 600;
  flex: 1;
  margin-right: 8px;
}

.item-ranking .detalhe {
  font-size: 13px;
  color: #9ca3af;
}

.item-ranking .pontos {
  font-weight: bold;
  color: #facc15;
  white-space: nowrap;
}



footer{
    width: 100%;
    height: 200px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    flex-wrap: wrap;

    background-color: #18181b;
}
.containerWhave{
    width: 100%;
    height: auto;
    display: flex;
    /* background-color: #3B0363; */
}
.containerCopyright{
    font-size: 20px;
    color: white;
}
.logoSenac{
    width: 400px;
}


.footerCredit {
  font-size: 1rem;
  margin-top: 5px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.footerCredit .creditos {
  color: rgba(255, 255, 255, 0.4); /* quase transparente */
  text-decoration: none;
  transition: color 0.3s, transform 0.3s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);

}

.footerCredit .creditos:hover {
  color: rgba(245, 208, 66, 0.8); /* destaque sutil ao hover */
  transform: scale(1.05);
}



@media (min-width: 0px) and (max-width: 430px) {
    .logoSenac{
        width: 300px;
    }
}

@media (max-width: 480px) {
  .nomeEscolaPodio {
    font-size: 16px;
    max-width: 120px;
  }
}


@media (min-width: 768px) {
  .header { flex-direction: row; }

  .container { grid-template-columns: 1fr 1fr; }
}
