/**
 * SciprogFi Index Page Styles
 * Timeline index + recently added section.
 */

/* --- Page Header --- */
.index-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.index-title {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}
.index-count {
  font-size: 0.9rem;
  opacity: 0.6;
  margin-bottom: 0.75rem;
}
.index-nav-back {
  font-size: 0.85rem;
}

/* --- Section Titles --- */
.index-section-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.15);
}

/* --- Recently Added --- */
.index-recent {
  margin-bottom: 3rem;
}
.recent-list {
  list-style: none;
  padding: 0;
  counter-reset: recent;
}
.recent-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: 0.95rem;
}
.recent-date {
  font-family: "SF Mono", "Fira Code", Menlo, monospace;
  font-size: 0.8rem;
  opacity: 0.5;
  min-width: 7em;
}
.recent-link {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  font-weight: 600;
}
.recent-link:hover {
  background: rgba(0,0,0,0.05);
}
.recent-thread {
  font-size: 0.8rem;
  font-weight: 600;
}
.recent-era {
  font-size: 0.8rem;
  opacity: 0.45;
  margin-left: auto;
}

/* --- Timeline --- */
.index-era {
  margin-bottom: 2.5rem;
}
.index-era-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid currentColor;
}
.index-era-range {
  font-weight: 400;
  font-size: 0.85rem;
  opacity: 0.5;
  margin-left: 0.5rem;
}

.index-year {
  margin-bottom: 1.5rem;
  margin-left: 1rem;
}
.index-year-label {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  opacity: 0.7;
}

.index-node-list {
  list-style: none;
  padding: 0;
}
.index-node-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.index-node-item .node-type-badge {
  font-size: 0.65rem;
  padding: 0.15em 0.45em;
  flex-shrink: 0;
}
.index-node-link {
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.2);
  font-weight: 600;
}
.index-node-link:hover {
  background: rgba(0,0,0,0.05);
}
.index-node-thread {
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
}
.index-node-summary {
  display: block;
  width: 100%;
  font-size: 0.85rem;
  opacity: 0.55;
  font-style: italic;
  line-height: 1.4;
  padding-left: 0.5rem;
}

/* --- Mobile --- */
@media (max-width: 600px) {
  .recent-era {
    display: none;
  }
  .index-node-summary {
    padding-left: 0;
  }
  .index-year {
    margin-left: 0;
  }
}
