/* Home page specific styles */

/* Card hover effects */
.movie-card,
.tvshow-card,
.person-card {
  transition:
    transform 0.2s ease-in-out,
    box-shadow 0.2s ease-in-out;
}

.movie-card:hover,
.tvshow-card:hover,
.person-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Section headers with icons */
section h2 {
  font-weight: 600;
}

section h2 i {
  vertical-align: middle;
}

/* Compact card body styling */
.card-body.py-2 {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

/* Card title links - ensure they don't break layout */
.card-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

/* Tighter line height for metadata text */
.card-text.small {
  line-height: 1.4;
}

/* Activity feed styling */
.list-group-item {
  transition: background-color 0.2s ease-in-out;
}

.list-group-item:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

/* Ensure proper spacing between sections */
section.mb-5 {
  margin-bottom: 3rem !important;
}

/* Mobile responsive adjustments */
@media (max-width: 991.98px) {
  /* Stack activity feed below content on tablets and mobile */
  .col-lg-4 {
    margin-top: 2rem;
  }

  /* Reduce card hover effect on touch devices */
  .card:hover {
    transform: translateY(-2px);
  }
}

/* Focus indicators for accessibility */
.card a:focus,
.btn:focus {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

/* Improve touch targets for mobile */
@media (max-width: 767.98px) {
  .btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
  }

  /* Smaller section titles on mobile */
  section h2 {
    font-size: 1.25rem;
  }
}

/* Empty state styling */
section > p.text-muted:not(.card-text) {
  padding: 2rem;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: 0.25rem;
}
