/* ===========================
   BASE DO SITE – CORES & RESET
=========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #d4abcf, #c712b8, #fdfaff, #aa9ce9, #340cc5);
  background-size: 400% 400%;
  animation: gradientFlow 20s ease infinite;
  color: #ffffff;
}
  

/* ===========================
   CABEÇALHO
=========================== */
header {
  background-color: #8252e4;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.logo span {
  color: #ffd700;
}

.menu-toggle {
  display: none;
  background: none;
  color: white;
  font-size: 1.8rem;
  border: none;
  cursor: pointer;
}

.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-menu a {
  color: white;
  text-decoration: none;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    width: 100%;
    text-align: center;
  }

  .nav-menu.active {
    display: block;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ===========================
   BARRA DE PESQUISA
=========================== */
.search-form {
  margin: 2rem auto;
  text-align: center;
}

.search-form input {
  padding: 0.5rem;
  width: 250px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.search-form button {
  padding: 0.5rem 1rem;
  background-color: #681dff;
  color: white;
  border: none;
  border-radius: 8px;
  margin-left: 0.5rem;
  cursor: pointer;
}

/* ===========================
   GRADE DE NOTÍCIAS
=========================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 0 2rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===========================
   CARTÕES (CARD)
=========================== */
.card {
  background-color: #001a44;
  padding: 1rem;
  border-radius: 16px;
  box-shadow: 0 0 16px #ffd70055;
  transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 0.8rem;
}

.card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: #00bfff;
}

.card p {
  font-size: 0.9rem;
  color: #f0f0f0;
}

.card p strong {
  color: #ffd700;
}

.card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 0 24px #ffd700aa;
  filter: brightness(1.1);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================
   SEÇÃO DESTAQUES DA SEMANA
=========================== */

.destaques {
  background-color: #29007c;
  padding: 2rem;
  margin: 2rem auto;
  border-radius: 20px;
  max-width: 1200px;
  box-shadow: 0 0 20px #ffd70030;
  color: white;
}

.destaque-box {
  background-color: #002266;
  padding: 1.2rem;
  border-radius: 16px;
  box-shadow: 0 0 12px #ffd70040;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.destaque-box img {
  width: 100%;
  max-width: 220px;
  height: auto;
  margin-bottom: 1rem;
  border-radius: 12px;
}

.destaque-box h3 {
  color: #00bfff;
  margin-bottom: 0.5rem;
}

.destaque-box p {
  font-size: 0.9rem;
  color: #f0f0f0;
}

.destaque-box p strong {
  color: #ffd700;
}

/* ===========================
   RODAPÉ
=========================== */
footer {
  background-color: #8252ff;
  color: #ccc;
  padding: 1rem;
  text-align: center;
}

.footer-links {
  margin-top: 0.5rem;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
}

.footer-links a:hover {
  text-decoration: underline;
}#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: none;
  background-color: #d26aff;
  color: white;
  border: none;
  border-radius: 50%;
  padding: 12px 16px;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 0 10px #00000080;
  z-index: 999;
}

#backToTop:hover {
  background-color: #aa3be0;
}@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ========== TOP ANIMES DA SEMANA ========== */
.top-animes {
  margin-top: 4rem;
  padding: 3rem 1rem;
  background-color: rgba(0, 0, 0, 0.3);
  border-top: 2px solid #ffffff33;
  border-bottom: 2px solid #ffffff33;
}

.top-animes h2 {
  text-align: center;
  font-size: 2rem;
  color: #ffd700;
  margin-bottom: 2rem;
}

.top-animes-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.top-anime-card {
  display: flex;
  flex-direction: column;
  background-color: #ffffff10;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 12px #00000050;
  transition: transform 0.3s ease;
}

.top-anime-card:hover {
  transform: scale(1.02);
}

.top-anime-card img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
}

.top-anime-card .info {
  padding: 1rem;
}

.top-anime-card h3 {
  color: #00bfff;
  margin-bottom: 0.5rem;
}

.top-anime-card p {
  color: #f0f0f0;
  font-size: 0.95rem;
}

/* Responsivo */
@media (min-width: 768px) {
  .top-animes-grid {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .top-anime-card {
    width: 32%;
  }
}

/* ========== BOTÃO VOLTAR AO TOPO ========== */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #d26aff;
  color: white;
  border: none;
  padding: 12px 16px;
  font-size: 1.4rem;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  z-index: 1000;
  box-shadow: 0 0 10px #00000080;
  transition: background 0.3s ease;
}

#backToTop:hover {
  background-color: #aa3be0;
}