/* Tailored styles for Leerflix */
@tailwind base;
@tailwind components;
@tailwind utilities;

.swiper {
  padding-top: 30px !important;
  padding-bottom: 30px !important;
}

.swiper-wrapper {
  align-items: center;
}

/* Netflix-style card scaling */
.movie-card {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), z-index 0s;
  will-change: transform;
  transform-origin: center bottom;
}

.movie-card:hover {
  transform: scale(1.15) translateY(-10px);
  z-index: 50;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 15px rgba(229, 9, 20, 0.2);
}

.movie-card img {
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
}

/* Custom Swiper Buttons to look like Netflix arrows */
.swiper-button-next,
.swiper-button-prev {
  color: #fff !important;
  background: rgba(0, 0, 0, 0.5);
  height: 100% !important;
  top: 0 !important;
  margin-top: 0 !important;
  width: 50px !important;
  opacity: 0;
  transition: opacity 0.3s, background 0.3s;
}

.swiper:hover .swiper-button-next,
.swiper:hover .swiper-button-prev {
  opacity: 1;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(0, 0, 0, 0.8);
}

.swiper-button-prev {
  left: 0 !important;
}

.swiper-button-next {
  right: 0 !important;
}

/* Star rating widget */
.star-row {
  display: flex;
  gap: 2px;
  align-items: center;
}

.star-wrapper {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 14px;
}

.star-svg {
  width: 14px;
  height: 14px;
  display: block;
}

.star-empty {
  fill: transparent;
  stroke: #4b5563;
  stroke-width: 1.5;
}

.star-filled {
  position: absolute;
  left: 0;
  top: 0;
  height: 14px;
  overflow: hidden;
}

.star-filled svg {
  fill: #FFD24D;
  stroke: #FFD24D;
}

/* SweetAlert2 Netflix/Dark Theme Customization */
.swal2-popup {
  background: #181818 !important;
  /* leerflix-card */
  color: #ffffff !important;
  border-radius: 12px !important;
  font-family: 'Nunito', sans-serif !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9) !important;
}

.swal2-title {
  color: #ffffff !important;
  font-weight: 800 !important;
}

.swal2-html-container {
  color: #d1d5db !important;
}

.swal2-styled.swal2-confirm {
  background: #E50914 !important;
  color: #fff !important;
  border: none !important;
  font-weight: 700 !important;
  border-radius: 9999px !important;
  padding: 10px 24px !important;
  transition: transform 0.2s !important;
}

.swal2-styled.swal2-confirm:hover {
  transform: scale(1.05) !important;
  background: #f40612 !important;
}

.swal2-styled.swal2-cancel {
  background: transparent !important;
  color: #9ca3af !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  font-weight: 700 !important;
  border-radius: 9999px !important;
  padding: 10px 24px !important;
}

.swal2-input,
.swal2-textarea {
  background: rgba(0, 0, 0, 0.5) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
}

.swal2-input:focus,
.swal2-textarea:focus {
  border-color: #E50914 !important;
  box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.2) !important;
}