@import url('favorites.css');

/* Content Sections */
.content-section {
  padding: 60px 50px;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .content-section {
    padding: 40px 20px;
  }
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-left: 4px solid var(--primary);
  padding-left: 20px;
  background: linear-gradient(90deg, rgba(0, 210, 255, 0.05), transparent);
  border-radius: 0 12px 12px 0;
  transition: all var(--transition-normal);
}

.section-header:hover {
  background: linear-gradient(90deg, rgba(0, 210, 255, 0.08), transparent);
  padding-left: 25px;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 15px;
  letter-spacing: -0.5px;
}

.section-title i {
  color: var(--primary);
  filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.4));
}

.see-all-btn {
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 24px;
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  transition: all var(--transition-normal);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 8px;
}

.see-all-btn:after {
  content: '\f053';
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.8em;
  transition: transform var(--transition-fast);
}

.see-all-btn:hover {
  background: var(--primary);
  color: #000;
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.3);
  transform: translateY(-2px);
  border-color: var(--primary);
}

.see-all-btn:hover:after {
  transform: translateX(-4px);
}

.content-row {
  display: flex;
  overflow-x: auto;
  gap: 25px;
  padding: 20px 5px 60px 5px;
  scroll-behavior: smooth;
  scroll-padding-left: 50px;
}

.content-row::-webkit-scrollbar {
  height: 6px;
}

.content-row::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
}

.content-row::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 10px;
  transition: background var(--transition-normal);
}

.content-row::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Movie Card Premium Style */
.movie-card {
  min-width: 200px;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  background: #1a1a1a;
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.5);
}

.movie-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
}

@media (max-width: 767px) {
  .movie-card {
    min-width: 140px;
    height: 210px;
  }
}

.movie-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(0, 210, 255, 0.3);
  z-index: 10;
}

.movie-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.movie-card:hover img {
  transform: scale(1.1);
}

.movie-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.7), transparent);
  padding: 20px 15px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.movie-card:hover .movie-info {
  transform: translateY(0);
}

.movie-info h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  line-height: 1.3;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.movie-info p {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 500;
}

/* === Enhanced Animations === */
@keyframes cardCascadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes buttonPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(0, 210, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 210, 255, 0);
  }
}

.filtering-in {
  animation: cardCascadeIn 0.5s ease-out forwards;
}

/* Grid Layout for Search/Listing Pages */
.movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 25px;
  padding: 20px 50px;
}

@media (max-width: 768px) {
  .movies-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    padding: 20px;
    gap: 15px;
  }
}

/* Card Badge */
.card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 5;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.card-badge.movie {
  background: rgba(0, 210, 255, 0.9);
  color: #000;
}

.card-badge.series {
  background: rgba(255, 71, 87, 0.9);
  color: #fff;
}

/* No Results Message */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  margin: 20px 50px;
}

/* Button styles */
.btn,
.btn-primary,
.show-more-btn,
.view-all-btn,
.slider-view-all-btn,
.show-more-container button {
  background: var(--primary);
  color: #000;
  border: none;
  border-radius: 50px;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
}

.btn:hover,
.btn-primary:hover,
.show-more-btn:hover,
.view-all-btn:hover,
.slider-view-all-btn:hover,
.show-more-container button:hover {
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 210, 255, 0.4);
  color: var(--primary-dark);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
}