/**
 * cards.css
 * ملف أنماط خاص ببطاقات العناصر والتأثيرات المرتبطة بها
 */

/* أنماط بطاقات العناصر */
.item-card {
  transition: all 0.3s ease;
  overflow: hidden;
  border: 1px solid transparent;
  background-color: #1a1a1a;
  border-radius: 10px;
  height: 100%;
}

.item-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border-color: #dc3545;
}

.card-img-container {
  position: relative;
  overflow: hidden;
}

.card-img-container img {
  transition: transform 0.5s ease;
  width: 100%;
  height: auto;
}

.item-card:hover .card-img-container img {
  transform: scale(1.05);
}

.overlay-play {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.overlay-play i {
  font-size: 3rem;
  color: white;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.item-card:hover .overlay-play {
  opacity: 1;
}

/* تأثير النبض للبطاقات عند التحويم */
.cardHove {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
  }
}

/* تأثير النبض للأزرار */
.btn-pulse {
  animation: buttonPulse 1.5s infinite;
}

@keyframes buttonPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* تحسينات إضافية للبطاقات */
.card-body {
  padding: 1rem;
}

.card-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  height: 2.5rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* تأثير الظهور التدريجي للبطاقات */
.fade-in-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-card.visible {
  opacity: 1;
  transform: translateY(0);
}