/* Digital Series Page Styles */

.digital-series-header {
  text-align: center;
  padding: 4rem 2rem 2rem;
  background: linear-gradient(135deg, #f3901f 0%, #f8b551 100%);
  color: white;
  border-radius: 25px;
  margin: 2rem 1rem 3rem;
  box-shadow: 0 10px 30px rgba(243, 144, 31, 0.2);
}

.digital-series-header h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-family: "Mikado", sans-serif;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}

.page-description {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.2rem;
  line-height: 1.6;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);
}

/* Series Stats */
.series-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin: 3rem auto;
  text-align: center;
  max-width: 1000px;
  padding: 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  transform: translateY(-30px);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: bold;
  color: #f3901f;
  font-family: "Mikado", sans-serif;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.2rem;
  color: #666;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Series Grid */
.series-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin: 2rem;
  padding: 1rem;
}

.series-showcase-item {
  background: white;
  border-radius: 25px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
  /* Separate initial transform for animation from hover transform */
  transform: translateY(0);
  /* Use will-change to optimize animation performance */
  will-change: transform, box-shadow;
  /* Specify individual transitions for better performance */
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
    box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.series-showcase-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(243, 144, 31, 0.15);
}

.series-thumbnail {
  position: relative;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  background: #f5f5f5;
  overflow: hidden;
}

.series-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Use will-change for the image transform */
  will-change: transform;
  /* Use cubic-bezier for smoother animation */
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.series-showcase-item:hover .series-thumbnail img {
  transform: scale(1.05);
}

.series-header {
  padding: 2rem;
  background: white;
  position: relative;
}

.series-name {
  font-size: 1.8rem;
  margin: 0 0 1rem;
  font-family: "Mikado", sans-serif;
  line-height: 1.2;
}

.series-name a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
}

.series-name a:hover {
  color: #f3901f;
}

.series-meta {
  color: #666;
  font-size: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.episode-count {
  background: #f8f8f8;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-weight: 500;
}

.series-description {
  color: #555;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.series-episodes {
  background: #f9f9f9;
  border-top: 2px dashed #eee;
  padding: 1.5rem;
}

.episode-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.episode-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
}

.episode-list li:last-child {
  border-bottom: none;
}

.episode-list a {
  color: #333;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 10px;
}

.episode-list a:hover {
  color: #f3901f;
  background: #fff;
  transform: translateX(5px);
}

.episode-arrow {
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.episode-list a:hover .episode-arrow {
  opacity: 1;
  transform: translateX(0);
}

.series-actions {
  padding: 1.5rem;
  text-align: center;
  background: white;
}

.btn-primary {
  display: inline-block;
  padding: 1rem 2rem;
  background: #f3901f;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  box-shadow: 0 5px 15px rgba(243, 144, 31, 0.3);
}

.btn-primary:hover {
  background: #e07d0a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(243, 144, 31, 0.4);
}

/* Section Titles */
.section-title {
  font-size: 2.5rem;
  color: #333;
  text-align: center;
  margin: 4rem 0 3rem;
  font-family: "Mikado", sans-serif;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #f3901f;
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
  .digital-series-header {
    padding: 3rem 1rem 1.5rem;
    margin: 1rem;
  }

  .digital-series-header h1 {
    font-size: 2.5rem;
  }

  .series-stats {
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
  }

  .series-showcase {
    grid-template-columns: 1fr;
    margin: 1rem;
  }

  .stat-number {
    font-size: 2.8rem;
  }

  .section-title {
    font-size: 2rem;
    margin: 3rem 0 2rem;
  }
}

/* Animation for cards on page load - optimize initial animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.series-showcase-item {
  /* Add hardware acceleration */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  /* Optimize animation */
  animation: fadeInUp 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) backwards;
}

.series-showcase-item:nth-child(1) {
  animation-delay: 0.1s;
}
.series-showcase-item:nth-child(2) {
  animation-delay: 0.2s;
}
.series-showcase-item:nth-child(3) {
  animation-delay: 0.3s;
}
.series-showcase-item:nth-child(4) {
  animation-delay: 0.4s;
}
.series-showcase-item:nth-child(5) {
  animation-delay: 0.5s;
}
.series-showcase-item:nth-child(6) {
  animation-delay: 0.6s;
}
.series-showcase-item:nth-child(7) {
  animation-delay: 0.7s;
}
.series-showcase-item:nth-child(8) {
  animation-delay: 0.8s;
}
