/* Section wrapper - used when history is embedded below the events CTA. */
.history-section {
  margin-top: 56px;
  padding-top: 40px;
  padding-bottom: 64px;
  border-top: 1px solid var(--border);
}

.history-section .page-header {
  margin-bottom: 8px;
}

/* Upcoming list - same card shape as history, sits between the map and the
   request CTA. No top border so the map flows visually into the list. */
.upcoming-section {
  margin-top: 24px;
  padding-bottom: 8px;
}

.upcoming-section .page-header {
  margin-bottom: 8px;
}

.history-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}

.history-list.is-collapsed > .history-card:nth-child(n+4) {
  display: none;
}

.history-loading,
.history-empty {
  grid-column: 1 / -1;
  padding: 32px;
  text-align: center;
  color: var(--text-secondary);
}

.history-card {
  display: block;
  position: relative;
  background: var(--card-bg, #141414);
  border: 1px solid var(--card-border, #222222);
  border-radius: 12px;
  padding: 18px 20px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 120ms ease, transform 120ms ease;
}

.history-card:hover,
.history-card:focus-visible {
  border-color: rgba(236, 255, 12, 0.3);
  transform: translateY(-1px);
  outline: none;
}

.history-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.history-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  flex: 1;
  min-width: 0;
}

.history-card-meta {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.history-card-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.history-card-lineup {
  font-size: 0.825rem;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.45;
}

.history-card-lineup strong {
  color: var(--text);
  font-weight: 600;
  margin-right: 6px;
}

.history-lineup-entry {
  white-space: nowrap;
}

.history-card-organizer {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.history-card-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.history-card-description.expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.history-card-readmore {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.8125rem;
  color: var(--accent);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}

.history-card-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--accent);
  text-decoration: none;
}

.history-card-link:hover {
  text-decoration: underline;
}
