/* ===========================
   Nobel Prize Timeline Styles
   =========================== */

/* ===========================
   State Card Section
   =========================== */
.state-card-section {
  padding: 2rem 1.5rem;
  text-align: center;
}

.state-card-container {
  max-width: 1200px;
  margin: 0 auto;
}

.state-card {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  margin: 0 auto;
}

.state-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold-400);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.125rem;
  color: var(--neutral-300);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.state-quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--gold-300);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .state-card {
    padding: 1.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .state-quote p {
    font-size: 1rem;
  }
}

/* ===========================
   Timeline Container
   =========================== */

.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem 8rem;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, 
    transparent,
    rgba(212, 175, 55, 0.3) 10%,
    rgba(212, 175, 55, 0.5) 50%,
    rgba(212, 175, 55, 0.3) 90%,
    transparent
  );
  transform: translateX(-50%);
  /* Add decorative elements to the timeline line */
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

/* Add decorative ornaments to the timeline */
.timeline-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, var(--gold-400), transparent 70%);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.timeline-line::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, var(--gold-400), transparent 70%);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

@media (max-width: 768px) {
  .timeline-line {
    left: 2rem;
  }
  
  .timeline-line::before,
  .timeline-line::after {
    left: 2rem;
    transform: translateX(-50%);
  }
}

.timeline-items {
  position: relative;
  z-index: 10;
}

/* Timeline Item */
.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  /* Add animation for entrance */
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s forwards;
}

/* Stagger the animation delays */
.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; }

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

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

@media (max-width: 768px) {
  .timeline-item,
  .timeline-item:nth-child(even) {
    flex-direction: row;
    padding-left: 4rem;
  }
  
  .timeline-year {
    position: absolute;
    left: 0;
    top: 0;
    width: auto;
    align-self: auto;
    margin-top: 0;
  }
  
  .timeline-year::before {
    display: none;
  }
}

/* Timeline Dot */
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%) translateY(-50%);
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: linear-gradient(to bottom right, var(--gold-400), var(--gold-600));
  border: 3px solid var(--neutral-900);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
  z-index: 20;
  transition: all var(--transition-base);
  /* Add pulse animation to dots */
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(212, 175, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

.timeline-item:hover .timeline-dot {
  transform: translateX(-50%) translateY(-50%) scale(1.2);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
}

@media (max-width: 768px) {
  .timeline-dot {
    left: 2rem;
    top: 0;
    width: 1rem;
    height: 1rem;
  }
  
  .timeline-item:hover .timeline-dot {
    transform: translateX(0) translateY(-50%) scale(1.2);
  }
}

/* Timeline Year Badge */
.timeline-year {
  flex-shrink: 0;
  width: 6rem;
  text-align: center;
  /* Add decorative elements to year badge container */
  position: relative;
  align-self: flex-start; /* Add this to align with top */
  margin-top: -0.75rem; /* Adjust to align with dot */
}

.timeline-year::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  width: 20px;
  height: 2px;
  background: linear-gradient(to right, rgba(212, 175, 55, 0.5), transparent);
}

.timeline-item:nth-child(even) .timeline-year::before {
  left: auto;
  right: 100%;
  background: linear-gradient(to left, rgba(212, 175, 55, 0.5), transparent);
}

@media (max-width: 768px) {
  .timeline-year {
    position: absolute;
    left: 0;
    top: 0;
    width: auto;
  }
  
  .timeline-year::before {
    display: none;
  }
}

.year-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-400);
  background: rgba(212, 175, 55, 0.1);
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-lg);
  padding: 0.5rem 1rem;
  transition: all var(--transition-base);
  /* Add subtle glow effect */
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
  position: relative;
  z-index: 2;
}

.timeline-item:hover .year-badge {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--gold-500);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

@media (max-width: 768px) {
  .year-badge {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
  }
}

/* Timeline Card */
.timeline-card {
  flex: 1;
  cursor: pointer;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(to bottom right, var(--neutral-900), var(--neutral-800));
  padding: 1.5rem;
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1rem;
  /* Add decorative border effect */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.timeline-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top right, transparent, rgba(212, 175, 55, 0.05), transparent);
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.timeline-card:hover::before {
  opacity: 1;
}

.timeline-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 20px 60px rgba(212, 175, 55, 0.2);
}

@media (max-width: 768px) {
  .timeline-card {
    padding: 1rem;
  }
}

/* Prize Badge */
.prize-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  transition: all var(--transition-base);
  /* Add subtle shadow */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.prize-physics {
  background-color: rgba(59, 130, 246, 0.1);
  color: rgb(96, 165, 250);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.prize-chemistry {
  background-color: rgba(168, 85, 247, 0.1);
  color: rgb(192, 132, 252);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.prize-medicine {
  background-color: rgba(239, 68, 68, 0.1);
  color: rgb(248, 113, 113);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.prize-literature {
  background-color: rgba(245, 158, 11, 0.1);
  color: rgb(251, 191, 36);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.prize-peace {
  background-color: rgba(34, 197, 94, 0.1);
  color: rgb(74, 222, 128);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.prize-economics {
  background-color: rgba(99, 102, 241, 0.1);
  color: rgb(129, 140, 248);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.prize-badge svg {
  width: 0.875rem;
  height: 0.875rem;
}

.timeline-card:hover .prize-badge {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Card Content */
.card-laureate-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-100);
  margin-bottom: 0.5rem;
  transition: all var(--transition-base);
  /* Add subtle text shadow */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.timeline-card:hover .card-laureate-name {
  color: var(--gold-300);
}

.card-country {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-400);
  margin-bottom: 1rem;
}

.card-country svg {
  width: 1rem;
  height: 1rem;
}

.card-achievement {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--gray-300);
  margin-bottom: 1rem;
}

/* Add styling for the motivation quote */
.card-motivation {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--gold-200);
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-left: 2px solid var(--gold-500);
  background: rgba(212, 175, 55, 0.05);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.card-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-400);
  transition: all var(--transition-base);
}

.card-read-more svg {
  width: 1rem;
  height: 1rem;
  transition: transform var(--transition-base);
}

.timeline-card:hover .card-read-more {
  color: var(--gold-300);
}

.timeline-card:hover .card-read-more svg {
  transform: translateX(0.25rem);
}

/* Card Image */
.card-image {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--gold-500);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
  margin-left: 1rem;
  align-self: center;
  /* Add image enhancement */
  position: relative;
}

.card-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 50%, rgba(212, 175, 55, 0.1));
  z-index: 1;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.timeline-card:hover .card-image img {
  transform: scale(1.05);
}

/* Timeline Card Content */
.timeline-card-content {
  flex: 1;
}

@media (max-width: 768px) {
  .timeline-card {
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .card-image {
    width: 80px;
    height: 80px;
    margin-left: 0;
    margin-top: 1rem;
  }
  
  .card-laureate-name {
    font-size: 1.25rem;
  }
}

/* Scrollbar styling */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Load More Button */
.load-more-btn {
  display: block;
  margin: 2rem auto;
  padding: 0.75rem 2rem;
  background: transparent;
  color: var(--gold-400);
  border: 2px solid var(--gold-500);
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.load-more-btn:hover {
  background: rgba(212, 175, 55, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.load-more-btn:active {
  transform: translateY(0);
}

/* ===========================
   Modal
   =========================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-slow);
  z-index: 1000;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  background: linear-gradient(to bottom right, var(--neutral-800), var(--neutral-900));
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(212, 175, 55, 0.3);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform var(--transition-slow);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-overlay.active .modal-panel {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 20;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--neutral-300);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.modal-close:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-400);
  border-color: rgba(212, 175, 55, 0.3);
}

.modal-content {
  height: calc(90vh - 2rem);
  overflow-y: auto;
  padding: 4rem 2rem 2rem;
}

/* Modal Header */
.modal-header {
  position: relative;
  text-align: center;
  margin-bottom: 3rem;
}

.modal-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  opacity: 0.1;
  z-index: 1;
}

.modal-pattern-left,
.modal-pattern-right {
  position: absolute;
  top: 0;
  width: 100px;
  height: 100px;
  color: var(--gold-500);
}

.modal-pattern-left {
  left: 2rem;
}

.modal-pattern-right {
  right: 2rem;
  transform: rotate(180deg);
}

.modal-pattern svg {
  width: 100%;
  height: 100%;
}

.modal-image-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 2rem;
  z-index: 2;
}

.modal-image-glow {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  background: var(--gold-gradient);
  filter: blur(20px);
  opacity: 0.5;
  z-index: -1;
}

.modal-image-border {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--gold-gradient);
  padding: 4px;
  overflow: hidden;
}

/* Category-specific modal border glows */
.modal-image-border.PART-I {
  background: linear-gradient(to bottom right, #409EFF, #2a7de1, #1a6dcc);
  box-shadow: 0 0 40px rgba(64, 158, 255, 0.6);
}

.modal-image-border.PART-II {
  background: linear-gradient(to bottom right, #9632dc, #7a28b8, #5e1e94);
  box-shadow: 0 0 40px rgba(150, 50, 220, 0.6);
}

.modal-image-border.PART-III {
  background: linear-gradient(to bottom right, #dc3232, #b82828, #941e1e);
  box-shadow: 0 0 40px rgba(220, 50, 50, 0.6);
}

.modal-image-border.PART-IV {
  background: linear-gradient(to bottom right, #ffc107, #e0a800, #c69500);
  box-shadow: 0 0 40px rgba(255, 193, 7, 0.6);
}

.modal-image-border.PART-V {
  background: linear-gradient(to bottom right, #28a745, #218838, #1e7e34);
  box-shadow: 0 0 40px rgba(40, 167, 69, 0.6);
}

.modal-image-border.PART-VI {
  background: linear-gradient(to bottom right, #6432dc, #5028b8, #3c1e94);
  box-shadow: 0 0 40px rgba(100, 50, 220, 0.6);
}

.modal-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--neutral-700);
}

.modal-name-container {
  position: relative;
  z-index: 2;
}

.modal-divider-top,
.modal-divider-bottom {
  width: 100px;
  height: 2px;
  background: var(--gold-gradient);
  border-radius: var(--radius-full);
  margin: 1rem auto;
}

.modal-name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-100);
  margin-bottom: 0.5rem;
}

.modal-title {
  font-size: 1rem;
  color: var(--neutral-400);
}

/* Modal Body */
.modal-body {
  position: relative;
  z-index: 2;
}

.modal-quote-container {
  position: relative;
  margin-bottom: 3rem;
  padding: 2rem;
  background: rgba(26, 26, 26, 0.5);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.modal-quote-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-gradient);
}

.modal-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--neutral-200);
  line-height: 1.6;
  margin-bottom: 1rem;
  text-align: center;
}

.modal-quote-icon {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2rem;
  height: 2rem;
  color: var(--gold-500);
  background: var(--neutral-800);
  padding: 0.25rem;
  border-radius: var(--radius-full);
}

.modal-bio {
  margin-bottom: 2rem;
}

.chapter-intro {
  text-align: center;
  margin-bottom: 2rem;
}

.chapter-intro p {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold-400);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bio-section {
  margin-bottom: 2rem;
}

.bio-section h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-100);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.bio-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--gold-gradient);
  border-radius: var(--radius-full);
}

.bio-section p {
  font-size: 1rem;
  color: var(--neutral-300);
  line-height: 1.7;
}

.bio-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(26, 26, 26, 0.3);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.bio-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--gold-500);
}

.bio-content {
  flex: 1;
}

.bio-label {
  font-size: 0.875rem;
  color: var(--gold-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.bio-value {
  font-size: 1rem;
  color: var(--neutral-200);
  line-height: 1.5;
}

/* Modal Footer */
.modal-footer {
  text-align: center;
  margin-top: 3rem;
}

.modal-footer-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.modal-footer-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-500), transparent);
}

.modal-footer-line.right {
  background: linear-gradient(to left, transparent, var(--gold-500), transparent);
}

.modal-footer-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--gold-500);
  margin: 0 1rem;
}

.modal-footer-text {
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--gold-400);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
