/**
 * The Puzzle Architect - History Page Styles
 * All classes prefixed with history-
 */

/* ============================================================================
   HERO
   ============================================================================ */

.history-hero {
  background: linear-gradient(135deg, #0052CC 0%, #003d99 100%);
  color: #fff;
  padding: 80px 20px;
  text-align: center;
}

.history-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.history-hero-subtitle {
  font-size: 1.3rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================================
   CONTAINER
   ============================================================================ */

.history-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================================
   CONTENT
   ============================================================================ */

.history-content {
  padding: 60px 20px;
  background: #fff;
}

.history-intro {
  font-size: 1.15rem;
  line-height: 1.9;
  color: #444;
  text-align: center;
  margin-bottom: 60px;
  padding-bottom: 40px;
  border-bottom: 2px solid #f0f7ff;
}

/* ============================================================================
   TIMELINE
   ============================================================================ */

.history-timeline {
  position: relative;
  padding-left: 0;
}

.history-timeline::before {
  content: '';
  position: absolute;
  left: 80px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #0052CC, #FFD700);
  border-radius: 3px;
}

.history-era {
  display: flex;
  gap: 40px;
  margin-bottom: 50px;
  position: relative;
}

.history-era:last-child {
  margin-bottom: 0;
}

.history-era-date {
  flex-shrink: 0;
  width: 80px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #0052CC;
  text-align: right;
  padding-top: 5px;
  position: relative;
}

.history-era-date::after {
  content: '';
  position: absolute;
  right: -29px;
  top: 10px;
  width: 16px;
  height: 16px;
  background: #FFD700;
  border: 3px solid #0052CC;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #fff;
}

.history-era-content {
  flex: 1;
  background: #f8f9ff;
  padding: 25px 30px;
  border-radius: 12px;
  border-left: 4px solid #0052CC;
}

.history-era-content h2 {
  font-size: 1.4rem;
  color: #0052CC;
  margin-bottom: 5px;
}

.history-era-location {
  font-size: 0.9rem;
  color: #888;
  font-style: italic;
  margin-bottom: 15px;
}

.history-era-content p:last-child {
  font-size: 1rem;
  line-height: 1.8;
  color: #444;
  margin: 0;
}

.history-era-content strong {
  color: #222;
}

/* ============================================================================
   FUN FACTS
   ============================================================================ */

.history-facts {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 2px solid #f0f7ff;
}

.history-facts h2 {
  text-align: center;
  font-size: 2rem;
  color: #0052CC;
  margin-bottom: 40px;
}

.history-facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.history-fact {
  background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
  padding: 25px 20px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #e8f0ff;
}

.history-fact-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #0052CC;
  margin-bottom: 8px;
}

.history-fact-label {
  display: block;
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
}

/* ============================================================================
   SOURCES
   ============================================================================ */

.history-sources {
  margin-top: 60px;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 3px solid #ccc;
}

.history-sources h3 {
  font-size: 1rem;
  color: #666;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.history-sources ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.history-sources li {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  padding: 5px 0;
}

.history-sources a {
  color: #0052CC;
  text-decoration: none;
}

.history-sources a:hover {
  text-decoration: underline;
}

/* ============================================================================
   CTA
   ============================================================================ */

.history-cta {
  margin-top: 80px;
  padding: 50px;
  background: linear-gradient(135deg, #0052CC 0%, #003d99 100%);
  border-radius: 16px;
  text-align: center;
  color: #fff;
}

.history-cta h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.history-cta p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 25px;
}

.history-cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.history-btn-primary {
  display: inline-block;
  padding: 14px 30px;
  background: #FFD700;
  color: #1a1a2e;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.history-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.history-btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  background: transparent;
  color: #fff;
  font-weight: 700;
  border: 2px solid #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.history-btn-secondary:hover {
  background: #fff;
  color: #0052CC;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 900px) {
  .history-facts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .history-hero {
    padding: 60px 20px;
  }

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

  .history-hero-subtitle {
    font-size: 1.1rem;
  }

  .history-timeline::before {
    left: 15px;
  }

  .history-era {
    flex-direction: column;
    gap: 15px;
    padding-left: 45px;
  }

  .history-era-date {
    width: auto;
    text-align: left;
  }

  .history-era-date::after {
    left: -38px;
    right: auto;
  }

  .history-era-content {
    padding: 20px;
  }

  .history-era-content h2 {
    font-size: 1.2rem;
  }

  .history-cta {
    padding: 35px 25px;
  }

  .history-cta h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 500px) {
  .history-facts-grid {
    grid-template-columns: 1fr;
  }

  .history-fact-number {
    font-size: 1.3rem;
  }
}
