/* Styles for Thể Loại, Quốc Gia, Năm Phát Hành listing pages */

/* Generic grid blocks */
#cat-list a.btn,
#year-list a.btn,
#country-list a.btn {
  display: block;
  white-space: normal !important; /* override inline style */
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 12px 6px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  transition: transform .2s, box-shadow .2s;
}

#cat-list a.btn:hover,
#year-list a.btn:hover,
#country-list a.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  text-decoration: none;
}

/* Responsive spacing */
#cat-list .col-xs-6, #year-list .col-xs-4, #country-list .col-xs-6 {
  margin-bottom: 15px !important;
}

/* Typography tweaks */
#cat-list a.btn, #year-list a.btn, #country-list a.btn {
  font-weight: 600;
  position: relative;
  overflow: hidden;
  color: #212529;
}

/* Fancy gradient hover effect */
#cat-list a.btn::before,
#year-list a.btn::before,
#country-list a.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(120deg, #ff9a9e, #fbc8d4, #f6d365, #cfd9df);
  background-size: 400% 400%;
  transition: transform .6s ease;
  z-index: -1;
}

#cat-list a.btn:hover::before,
#year-list a.btn:hover::before,
#country-list a.btn:hover::before {
  transform: translateX(50%);
}

/* Slight scale on hover */
#cat-list a.btn:hover,
#year-list a.btn:hover,
#country-list a.btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  color: #212529;
}

/* Optional subtle fade-in animation */
@keyframes fadeUp {
  from {opacity:0; transform: translateY(10px);} to {opacity:1; transform: translateY(0);} }
#cat-list .col-xs-6, #year-list .col-xs-4, #country-list .col-xs-6 {
  animation: fadeUp .4s ease forwards;
}
