/* ============================================
   AirDate v111 - Card Grid Enhancements
   Add these styles to your existing style.css
   ============================================ */

/* Line clamp utility for truncating text */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Smooth animations for cards */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out;
}

/* Card grid responsive improvements */
#results-grid {
  animation: fadeIn 0.6s ease-out;
}

/* Enhanced card hover states */
#results-grid > div {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#results-grid > div:hover {
  transform: translateY(-8px);
}

/* Ensure posters maintain aspect ratio */
#results-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Login Button */
#auth-btn {
    position: relative;
    right: 35%;
}
#airdate-nav {
  margin: 0;
  min-height: 70px;
  padding-top: 10px;
}
header {
  margin-top: 15px;
}
/* body area */
#details-content {
  margin-top: 100px;
}
/* Responsive grid adjustments */
@media (max-width: 640px) {
  #results-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 641px) and (max-width: 768px) {
  #results-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  #results-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1025px) {
  #results-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Loading skeleton improvements */
#loading-state .animate-pulse {
  animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}