/* Estilos para la página de favoritos */
.favorites-main {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 140px);
}

.favorites-container {
  width: 100%;
}

.favorites-header {
  text-align: center;
  margin-bottom: 40px;
}

.favorites-header h1 {
  font-size: 2.5rem;
  color: #f65d2a;
  margin-bottom: 10px;
}

.favorites-header h1 i {
  color: #e84393;
}

#favorites-count {
  color: #bdbdbd;
  font-size: 1.1rem;
}

.favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.favorite-movie-card {
  background-color: #161718;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.20);
  transition: all 0.3s ease;
  position: relative;
}

.favorite-movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.favorite-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2/3;
}

.favorite-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.favorite-movie-card:hover .favorite-poster img {
  transform: scale(1.05);
}

.favorite-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.favorite-movie-card:hover .favorite-overlay {
  opacity: 1;
}

.remove-favorite-btn {
  background: #e84393;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-favorite-btn:hover {
  background: #d63031;
  transform: scale(1.1);
}

.view-movie-btn {
  background: #00bfa5;
  color: white;
  padding: 10px 15px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.view-movie-btn:hover {
  background: #008f7a;
  transform: translateY(-2px);
}

.favorite-info {
  padding: 15px;
}

.favorite-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: #f6f6f6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 48px;
  line-height: 1.2;
}

.favorite-date {
  color: #bdbdbd;
  font-size: 0.8rem;
}

.no-favorites {
  text-align: center;
  padding: 60px 20px;
}

.no-favorites-content i {
  font-size: 4rem;
  color: #e84393;
  margin-bottom: 20px;
  opacity: 0.5;
}

.no-favorites-content h3 {
  color: #f6f6f6;
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.no-favorites-content p {
  color: #bdbdbd;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.browse-movies-btn {
  background: #00bfa5;
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.browse-movies-btn:hover {
  background: #008f7a;
  transform: translateY(-2px);
}

/* Estilos para el mensaje de login requerido */
.login-required-message {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border: 1px solid #333;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  width: 100%;
}

.login-required-icon {
  flex-shrink: 0;
}

.login-required-icon i {
  font-size: 3rem;
  color: #00bfa5;
}

.login-required-content {
  flex: 1;
}

.login-required-content h3 {
  color: #f6f6f6;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.login-required-content p {
  color: #bdbdbd;
  margin-bottom: 20px;
  line-height: 1.5;
}

.login-required-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.login-required-buttons .auth-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-required-buttons .login-btn {
  background-color: transparent;
  color: #f6f6f6;
  border: 1px solid #00bfa5;
}

.login-required-buttons .login-btn:hover {
  background-color: rgba(0, 191, 165, 0.1);
}

.login-required-buttons .register-btn {
  background-color: #00bfa5;
  color: white;
}

.login-required-buttons .register-btn:hover {
  background-color: #008f7a;
}

@media screen and (max-width: 768px) {
  .favorites-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
  }
  
  .favorites-header h1 {
    font-size: 2rem;
  }
  
  .login-required-message {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .login-required-buttons {
    flex-direction: column;
  }
  
  .login-required-buttons .auth-btn {
    width: 100%;
    justify-content: center;
  }
}