/* Search Cards Custom Styles */

.bg-gradient-dark {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
}

.card:hover {
  transform: translateY(-2px);
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.card .btn:hover {
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

.card .btn .fa-heart:hover {
  color: #dc3545 !important;
}

.object-fit-cover {
  object-fit: cover;
}

/* Rating stars animation */
.text-warning .fa-star {
  transition: color 0.2s ease;
}

/* Badge hover effects */
.badge:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}

/* Card image overlay effects */
.card .position-relative::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.card:hover .position-relative::before {
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .card-body {
    padding: 1rem !important;
  }
  
  .card-title {
    font-size: 0.9rem !important;
  }
}

/* Custom z-index utilities */
.z-index-2 {
  z-index: 2;
}

/* Text truncation for long names */
.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}