/**
 * Series Pages Styling
 * Sci-Fi Post-Apocalyptic aesthetic with genre-appropriate effects
 */

:root {
  --series-primary: #ff6b35;
  --series-secondary: #00bcd4;
  --series-accent: #4caf50;
  --series-danger: #e74c3c;
  --series-warn: #f39c12;
  --series-dark: #0a0a0a;
  --series-dark-light: #1a1a1a;
  --series-text: #e0e0e0;
  --series-text-muted: #a0a0a0;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--series-dark) 0%, #1a1a2e 50%, #16213e 100%);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(90deg, rgba(0, 0, 0, 0.3) 1px, transparent 1px),
    linear-gradient(rgba(0, 0, 0, 0.3) 1px, transparent 1px);
  background-size: 50px 50px;
  animate: gridMove 20s linear infinite;
}

.hero-section .hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.hero-section .hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem 2rem;
  animation: fadeInUp 0.8s ease-out;
}

.hero-section h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(3rem, 6vw, 5rem);
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
  letter-spacing: 4px;
}

.hero-section .hero-subtitle {
  font-size: 1.5rem;
  color: var(--series-text-muted);
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.genre-badge {
  display: inline-block;
  background: rgba(255, 107, 53, 0.15);
  border: 1px solid rgba(255, 107, 53, 0.3);
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  color: var(--series-primary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
}

.genre-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animate: shimmer 3s infinite;
}

/* Main Content */
.content-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* Intro Section */
.intro-section {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  padding: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 4rem;
  text-align: center;
}

.intro-section h2 {
  font-family: 'Cinzel', serif;
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 1.5rem;
}

.intro-section p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--series-text-muted);
  max-width: 800px;
  margin: 0 auto 1.5rem auto;
}

/* Section Headers */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  color: #fff;
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.status-badge.featured {
  background: var(--series-warn);
  color: #000;
}

.status-badge.in-progress {
  background: var(--series-secondary);
  color: #000;
}

.status-badge.completed {
  background: var(--series-accent);
  color: #000;
}

.status-badge.planned {
  background: rgba(255, 255, 255, 0.1);
  color: var(--series-text-muted);
}

/* Series Featured Grid */
.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.series-card {
  position: relative;
  background: linear-gradient(135deg, var(--series-dark-light), rgba(255, 255, 255, 0.02));
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s ease;
}

.series-card:hover {
  transform: translateY(-10px);
  border-color: var(--series-primary);
  box-shadow: 0 20px 50px rgba(255, 107, 53, 0.2);
}

.series-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--series-primary), var(--series-secondary));
}

.series-card .series-cover {
  width: 100%;
  height: 280px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--series-primary), var(--series-secondary));
  position: relative;
  overflow: hidden;
}

.series-card .series-cover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, var(--series-dark-light), transparent);
}

.series-card .series-cover-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 8px;
}

.series-card .series-content {
  padding: 2rem;
}

.series-card .series-series-name {
  display: inline-block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.75rem;
  color: var(--series-primary);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 0.5rem;
}

.series-card .series-title {
  font-family: 'Cinzel', serif;
  font-size: 1.75rem;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.series-card .series-description {
  font-size: 0.925rem;
  line-height: 1.6;
  color: var(--series-text-muted);
  margin-bottom: 1.5rem;
}

.series-card .series-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.series-card .series-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--series-text-muted);
}

.series-card .series-actions {
  display: flex;
  gap: 1rem;
}

.series-card .btn {
  flex: 1;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.series-card .btn:hover {
  transform: translateY(-2px);
}

/* Series List */
.series-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.series-list-item {
  display: flex;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.series-list-item:hover {
  border-color: var(--series-secondary);
  transform: translateX(10px);
}

.series-list-item .series-cover-small {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--series-primary), var(--series-secondary));
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.series-list-item .series-info {
  flex: 1;
}

.series-list-item .series-title {
  font-family: 'Cinzel', serif;
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.series-list-item .series-genre {
  font-size: 0.875rem;
  color: var(--series-secondary);
  margin-bottom: 0.75rem;
}

.series-list-item .series-description-short {
  font-size: 0.875rem;
  color: var(--series-text-muted);
  margin-bottom: 1rem;
  max-width: 600px;
}

.series-list-item .series-stats {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--series-text-muted);
}

.series-list-item .series-stats span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Upcoming Grid */
.upcoming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.placeholder-upcoming {
  text-align: center;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.02);
  border: 2px dashed rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

.placeholder-upcoming .placeholder-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: 0.5;
}

.placeholder-upcoming h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 1rem;
}

.placeholder-upcoming p {
  color: var(--series-text-muted);
  font-size: 0.925rem;
}

.placeholder-upcoming a {
  color: var(--series-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.placeholder-upcoming a:hover {
  color: #fff;
}

/* Reading Guide */
.reading-guide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.guide-option {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.guide-option:hover {
  border-color: var(--series-accent);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(76, 175, 80, 0.1);
}

.guide-option h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 1rem;
}

.guide-option p {
  color: var(--series-text-muted);
  font-size: 0.925rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.guide-option .btn {
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
}

Glitch Effect
.text-glitch {
  position: relative;
}

.text-glitch::before,
.text-glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.text-glitch::before {
  left: 2px;
  text-shadow: -1px 0 var(--series-primary);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim 5s infinite linear alternate-reverse;
}

.text-glitch::after {
  left: -2px;
  text-shadow: -1px 0 var(--series-secondary);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% {
    clip: rect(31px, 9999px, 94px, 0);
  }
  10% {
    clip: rect(80px, 9999px, 89px, 0);
  }
  20% {
    clip: rect(52px, 9999px, 6px, 0);
  }
  30% {
    clip: rect(38px, 9999x, 3px, 0);
  }
  40% {
    clip: rect(3px, 9999px, 54px, 0);
  }
  50% {
    clip: rect(83px, 9999px, 11px, 0);
  }
  60% {
    clip: rect(93px, 9999px, 2px, 0);
  }
  70% {
    clip: rect(22px, 9999px, 48px, 0);
  }
  80% {
    clip: rect(9px, 9999px, 90px, 0);
  }
  90% {
    clip: rect(67px, 9999px, 29px, 0);
  }
  100% {
    clip: rect(63px, 9999px, 66px, 0);
  }
}

@keyframes glitch-anim2 {
  0% {
    clip: rect(18px, 9999px, 73px, 0);
  }
  10% {
    clip: rect(55px, 9999px, 6px, 0);
  }
  20% {
    clip: rect(85px, 9999px, 35px, 0);
  }
  30% {
    clip: rect(12px, 9999px, 54px, 0);
  }
  40% {
    clip: rect(71px, 9999px, 25px, 0);
  }
  50% {
    clip: rect(42px, 9999px, 88px, 0);
  }
  60% {
    clip: rect(8px, 9999px, 92px, 0);
  }
  70% {
    clip: rect(95px, 9999px, 41px, 0);
  }
  80% {
    clip: rect(28px, 9999px, 15px, 0);
  }
  90% {
    clip: rect(79px, 9999px, 61px, 0);
  }
  100% {
    clip: rect(34px, 9999px, 72px, 0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-section .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .series-grid {
    grid-template-columns: 1fr;
  }
  
  .series-list-item {
    flex-direction: column;
  }
  
  .series-list-item .series-cover-small {
    width: 100%;
    height: 40px;
  }
  
  .reading-guide {
    grid-template-columns: 1fr;
  }
  
  .content-wrapper {
    padding: 2rem 1rem;
  }
}