/* ====================================
   GLI IMMORTALI - INDEX STYLE
   Consistent, Fun, Interactive
   ==================================== */

/* Color Palette - Consistent with Index */
:root {
  --bg-dark: #1a1a1a;
  --bg-darker: #0f0f0f;
  --accent-color: #d4af37;
  --accent-light: #f0d77f;
  --hover-accent: #c49a2e;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --border-color: rgba(212, 175, 55, 0.3);
  --red-accent: #ff4444;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Rajdhani', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Animated Background - Same as Index */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: -1;
}

.scanline {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
  animation: scan 8s linear infinite;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.3;
}

@keyframes scan {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(100vh);
  }
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

/* Header */
.header {
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
}

.back-btn {
  display: none;
}

.logo-container {
  margin-bottom: 1.5rem;
}

.logo-icon {
  font-size: 5rem;
  color: var(--accent-color);
  display: block;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.title {
  font-family: 'Orbitron', sans-serif;
  font-size: 4rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  letter-spacing: 2px;
  margin-bottom: 2rem;
}

/* Stats Bar */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-color);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.stat-item i {
  font-size: 1.5rem;
}

/* Section Title */
.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  color: var(--accent-color);
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* Timeline Section */
.timeline-section {
  margin: 6rem 0;
  padding: 3rem 2rem;
  background: rgba(212, 175, 55, 0.05);
  border-top: 2px solid var(--border-color);
  border-bottom: 2px solid var(--border-color);
}

.timeline-header {
  text-align: center;
  margin-bottom: 2rem;
}

.timeline-icon {
  font-size: 3rem;
  color: var(--accent-color);
  animation: pulse 2s ease-in-out infinite;
}

.timeline-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 300;
  margin-top: 0.5rem;
}

/* Timeline Carousel Container */
.timeline-carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.timeline-track-container {
  flex: 1;
  overflow: hidden;
  padding: 2rem 0;
  position: relative;
}

.timeline-track {
  display: flex;
  gap: 0;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.timeline-item {
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  padding: 2rem;
}

.timeline-dot {
  width: 60px;
  height: 60px;
  background: var(--bg-dark);
  border: 3px solid var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--accent-color);
  box-shadow: 0 0 20px var(--accent-color),
    0 0 40px var(--accent-color);
  position: relative;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 20px var(--accent-color);
  }

  50% {
    transform: scale(1.1);
    box-shadow: 0 0 40px var(--accent-color);
  }
}

.timeline-item.apocalypse .timeline-dot {
  border-color: var(--red-accent);
  color: var(--red-accent);
  box-shadow: 0 0 20px var(--red-accent),
    0 0 40px var(--red-accent);
}

.timeline-item.truth .timeline-dot {
  border-color: var(--text-secondary);
  color: var(--text-secondary);
  box-shadow: 0 0 20px var(--text-secondary),
    0 0 40px var(--text-secondary);
}

.timeline-content {
  text-align: center;
  background: rgba(26, 26, 36, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  max-width: 500px;
  transition: all 0.3s ease;
}

.timeline-content:hover {
  background: rgba(26, 26, 36, 0.8);
  border-color: var(--accent-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.timeline-year {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent-color);
  display: block;
  margin-bottom: 1rem;
  text-shadow: 0 0 20px var(--accent-color);
}

.timeline-event {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.timeline-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Timeline Navigation Buttons */
.timeline-nav {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.timeline-nav:hover {
  background: var(--accent-color);
  color: var(--bg-dark);
  transform: scale(1.1);
  box-shadow: 0 0 20px var(--accent-color);
}

.timeline-nav:active {
  transform: scale(0.95);
}

/* Timeline Dots Navigation */
.timeline-dots-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.dot-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot-indicator:hover {
  background: rgba(212, 175, 55, 0.6);
  transform: scale(1.2);
}

.dot-indicator.active {
  background: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-color);
  transform: scale(1.3);
}

/* Chapter Cards Grid */
.chapters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin: 4rem 0;
}

.chapter-card {
  position: relative;
  background: var(--bg-darker);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.chapter-card:nth-child(1) {
  animation-delay: 0.1s;
}

.chapter-card:nth-child(2) {
  animation-delay: 0.2s;
}

.chapter-card:nth-child(3) {
  animation-delay: 0.3s;
}

.chapter-card:nth-child(4) {
  animation-delay: 0.4s;
}

.chapter-card:nth-child(5) {
  animation-delay: 0.5s;
}

.chapter-card:nth-child(6) {
  animation-delay: 0.6s;
}

.chapter-card:nth-child(7) {
  animation-delay: 0.7s;
}

.chapter-card:nth-child(8) {
  animation-delay: 0.8s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chapter-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 40px rgba(212, 175, 55, 0.3);
}

.card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.chapter-card:hover .card-image img {
  transform: scale(1.1);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 15, 15, 0.8) 100%);
}

.image-overlay.red {
  background: linear-gradient(180deg, rgba(255, 68, 68, 0.2) 0%, rgba(15, 15, 15, 0.8) 100%);
}

.image-overlay.dark {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(15, 15, 15, 0.9) 100%);
}

.chapter-number {
  position: absolute;
  top: 15px;
  right: 15px;
  font-family: 'Orbitron', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent-color);
  opacity: 0.3;
  z-index: 10;
}

.card-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid transparent;
  border-radius: 15px;
  transition: all 0.4s ease;
  pointer-events: none;
}

.chapter-card:hover .card-border {
  border-color: var(--accent-color);
}

.card-content {
  padding: 1.5rem;
}

.card-icon {
  width: 50px;
  height: 50px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card-icon i {
  font-size: 1.5rem;
  color: var(--bg-dark);
}

.card-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.card-time {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.card-quote {
  padding: 1rem;
  background: rgba(212, 175, 55, 0.1);
  border-left: 3px solid var(--accent-color);
  font-style: italic;
  color: var(--accent-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-quote i {
  font-size: 1.2rem;
  opacity: 0.5;
}

/* Special Cards */
.chapter-card.apocalypse .card-icon {
  background: var(--red-accent);
}

.chapter-card.apocalypse .card-title {
  color: var(--red-accent);
}

.chapter-card.apocalypse .card-border {
  border-color: var(--red-accent);
}

.chapter-card.apocalypse:hover .card-border {
  border-color: var(--red-accent);
  box-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
}

.chapter-card.truth .card-icon {
  background: var(--text-secondary);
}

.chapter-card.truth .card-title {
  color: var(--text-secondary);
}

/* Stats Section */
.stats-section {
  margin: 6rem 0;
  padding: 3rem 2rem;
  background: var(--bg-darker);
  border-radius: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-card {
  text-align: center;
  padding: 2rem;
  background: var(--bg-dark);
  border-radius: 15px;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(212, 175, 55, 0.2);
}

.stat-icon {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.stat-number {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent-light);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  color: var(--text-secondary);
  letter-spacing: 2px;
}

/* Quote Section */
.quote-section {
  margin: 6rem 0;
  padding: 4rem 2rem;
}

.quote-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.quote-mark {
  font-size: 4rem;
  color: var(--accent-color);
  opacity: 0.3;
}

.quote-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-light);
  margin: 2rem 0;
  line-height: 1.6;
  letter-spacing: 2px;
}

/* Footer - Using universal footer.css */
/* Footer styles removed - see ../footer.css */

/* Responsive */
@media (max-width: 992px) {
  .title {
    font-size: 3rem;
  }

  .chapters-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 768px) {
  .title {
    font-size: 2.5rem;
    letter-spacing: 3px;
  }

  .stats-bar {
    gap: 1.5rem;
  }

  /* Hide entire timeline section on mobile */
  .timeline-section {
    display: none;
  }

  .quote-text {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1rem;
  }

  .title {
    font-size: 2rem;
  }

  .back-btn {
    position: relative;
    margin-bottom: 2rem;
  }

  .stats-bar {
    flex-direction: column;
    gap: 1rem;
  }

  .chapters-grid {
    grid-template-columns: 1fr;
  }

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