/* ═══════════════════════════════════════════════════
   ALEJAM RECORDS – History Page
   Premium Timeline Design
   ═══════════════════════════════════════════════════ */

/* ─── Hero Section ──────────────────────────────── */
.history-hero {
  text-align: center;
  padding: 6rem 2rem 4rem;
  background: linear-gradient(180deg, #000 0%, #0a0a0a 100%);
  position: relative;
  overflow: hidden;
}

.history-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, #f54 30%, #f54 70%, transparent);
  opacity: 0.3;
}

.history-hero-content h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.75rem;
  text-shadow: 0 0 60px rgba(255, 85, 68, 0.3);
}

.history-tagline {
  color: #666;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ─── Timeline Section ──────────────────────────── */
.timeline-section {
  padding: 5rem 0;
  background: #0a0a0a;
  position: relative;
}

.timeline-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── Timeline Structure ────────────────────────── */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    to bottom,
    transparent,
    #f54 10%,
    #f54 90%,
    transparent
  );
  transform: translateX(-50%);
  border-radius: 3px;
  box-shadow: 0 0 20px rgba(255, 85, 68, 0.4);
}

/* ─── Timeline Items ────────────────────────────── */
.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 3rem 4rem;
  box-sizing: border-box;
}

.timeline-item.left {
  left: 0;
  padding-right: 4rem;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  padding-left: 4rem;
  text-align: left;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

/* ─── Timeline Dot ──────────────────────────────── */
.timeline-dot {
  position: absolute;
  top: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #1a1a1a 0%, #111 100%);
  border: 3px solid #f54;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 
    0 0 0 6px #0a0a0a,
    0 0 30px rgba(255, 85, 68, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item.left .timeline-dot {
  right: -30px;
}

.timeline-item.right .timeline-dot {
  left: -30px;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.1);
  box-shadow: 
    0 0 0 6px #0a0a0a,
    0 0 50px rgba(255, 85, 68, 0.7);
}

.timeline-icon {
  font-size: 1.5rem;
}

/* ─── Timeline Content Card ─────────────────────── */
.timeline-content {
  background: linear-gradient(135deg, #141414 0%, #0f0f0f 100%);
  border: 1px solid #222;
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  transition: all 0.4s ease;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 20px;
  width: 20px;
  height: 20px;
  background: #141414;
  border: 1px solid #222;
  transform: rotate(45deg);
}

.timeline-item.left .timeline-content::before {
  right: -11px;
  border-left: none;
  border-bottom: none;
}

.timeline-item.right .timeline-content::before {
  left: -11px;
  border-right: none;
  border-top: none;
}

.timeline-item:hover .timeline-content {
  border-color: #f54;
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* ─── Timeline Content Inner ────────────────────── */
.timeline-year {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #f54;
  margin-bottom: 0.5rem;
  line-height: 1;
  text-shadow: 0 0 30px rgba(255, 85, 68, 0.5);
}

.timeline-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.timeline-desc {
  color: #888;
  font-size: 0.95rem;
  line-height: 1.8;
  margin: 0;
}

/* ─── Empty State ───────────────────────────────── */
.timeline-empty {
  text-align: center;
  padding: 5rem 2rem;
}

.timeline-empty-icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  opacity: 0.5;
}

.timeline-empty h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.timeline-empty p {
  color: #666;
  font-size: 1rem;
}

/* ─── Roster Section ────────────────────────────── */
.roster-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, #0a0a0a 0%, #000 100%);
  border-top: 1px solid #1a1a1a;
}

.roster-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.roster-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.5rem;
}

.roster-subheading {
  color: #666;
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-bottom: 3rem;
}

.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
}

.roster-card {
  display: block;
  text-decoration: none;
  color: #fff;
  background: #111;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
}

.roster-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(255, 85, 68, 0.15);
}

.roster-image-wrap {
  position: relative;
  overflow: hidden;
}

.roster-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.roster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.roster-card:hover .roster-overlay {
  opacity: 1;
}

.roster-info {
  padding: 1.25rem;
  background: linear-gradient(to top, #111 0%, transparent 100%);
  position: relative;
  z-index: 1;
}

.roster-info h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.roster-genre {
  font-size: 0.75rem;
  color: #f54;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* ─── Responsive Design ─────────────────────────── */
@media (max-width: 768px) {
  .history-hero-content h1 {
    font-size: 2.5rem;
    letter-spacing: 0.15em;
  }

  .timeline-line {
    left: 30px;
  }

  .timeline-item {
    width: 100%;
    padding: 0 0 3rem 5rem;
    text-align: left;
  }

  .timeline-item.left,
  .timeline-item.right {
    left: 0;
    padding-left: 5rem;
    padding-right: 0;
    text-align: left;
  }

  .timeline-item.left .timeline-dot,
  .timeline-item.right .timeline-dot {
    left: 0;
    right: auto;
  }

  .timeline-dot {
    width: 50px;
    height: 50px;
  }

  .timeline-item.left .timeline-content::before,
  .timeline-item.right .timeline-content::before {
    left: -11px;
    right: auto;
    border-left: none;
    border-bottom: none;
    border-right: 1px solid #222;
    border-top: 1px solid #222;
  }

  .timeline-year {
    font-size: 2rem;
  }

  .timeline-content {
    padding: 1.5rem;
  }

  .roster-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .roster-heading {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .history-hero {
    padding: 4rem 1rem 3rem;
  }

  .history-hero-content h1 {
    font-size: 1.8rem;
  }

  .timeline-item,
  .timeline-item.left,
  .timeline-item.right {
    padding-left: 4rem;
  }
  
  .timeline-line {
    left: 20px;
  }

  .timeline-dot {
    width: 40px;
    height: 40px;
  }

  .timeline-icon {
    font-size: 1.2rem;
  }

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

/* ─── Animations ────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeline-item {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

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