/* ====== Galeria Section ====== */
.galeria-section {
  text-align: center;
  padding: 50px 20px;
  background: #f9f9f9;
  margin-top: 70px;
  font-family: 'Poppins', sans-serif;
}

.galeria-titulo {
  font-size: 2.4rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 10px;
}

.galeria-descricao {
  margin: 0 auto 40px;
  max-width: 600px;
  color: #555;
  font-size: 1rem;
  line-height: 1.5;
}

/* ====== Filtros ====== */
.filtros {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 35px;
}

.filtro {
  border: 1px solid #ddd;
  background: #fff;
  padding: 7px 14px;
  border-radius: 25px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
}

.filtro:hover,
.filtro.ativo {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* ====== Cards ====== */
.galeria {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 25px;
  justify-content: center;
}

.card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.img-container {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: #f0f0f0;
}

.img-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

.card:hover .img-container img {
  transform: scale(1.05);
}

/* Badge estoque */
.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 0.7rem;
  color: #fff;
  font-weight: 600;
}

.badge-success {
  background-color: #28a745;
}

.badge-danger {
  background-color: #e53935;
}

/* ====== Card Info ====== */
.info {
  padding: 15px 20px;
  text-align: left;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.anime-nome {
  font-size: 0.9rem;
  color: #8e44ad;
  font-weight: 600;
  margin-bottom: 3px;
}

.personagem-nome {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #111;
}

.curiosidade {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.3;
  margin-bottom: 15px;
}

.acoes {
  display: flex;
  justify-content: flex-start;
}
.acoes a{
  text-decoration: none;
  color: #fff;
}
.acoes a:hover{
  text-decoration: none;
  color: #fff;
}

.btn-detalhes {
  background: #000;
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 8px 16px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.3s;
  text-decoration: none;
}

.btn-detalhes:hover {
  background: #333;
}

/* ====== Responsivo ====== */

/* Tablets grandes */
@media (max-width: 1200px) {
  .galeria {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tablets menores */
@media (max-width: 992px) {
  .galeria {
    grid-template-columns: repeat(3, 1fr);
  }
  .img-container {
    height: 240px;
  }
}

/* Celulares grandes */
@media (max-width: 768px) {
  .galeria {
    grid-template-columns: repeat(2, 1fr);
  }
  .img-container {
    height: 200px;
  }
}

/* Celulares pequenos */
@media (max-width: 480px) {
  .galeria {
    grid-template-columns: 1fr;
  }
  .img-container {
    height: 180px;
  }
  .info {
    padding: 10px 15px;
  }
  .btn-detalhes {
    width: 100%;
    text-align: center;
  }
}
