/* components.css: Reusable UI components */

/* ---- Card ---- */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.card__image-wrap {
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .card__image {
  transform: scale(1.03);
}

/* Copper bottom line on hover */
.card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover::after {
  width: 100%;
}

.card__body {
  padding: var(--space-md);
}

.card__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
  display: block;
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: var(--space-xs);
}

.card__desc {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
}

/* Card as link */
a.card {
  text-decoration: none;
  display: block;
}

a.card:hover {
  text-decoration: none;
}

/* ---- Button ---- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.875rem 2.5rem;
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn:hover {
  background: transparent;
  color: var(--accent);
  text-decoration: none;
}

/* ---- Pull Quote ---- */
.pullquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--text);
  border-left: 2px solid var(--accent);
  padding-left: var(--space-md);
  margin: var(--space-lg) 0;
  max-width: 640px;
}

.pullquote__attribution {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: var(--space-sm);
  display: block;
}

/* ---- Timeline ---- */
.timeline__item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
}

.timeline__item:first-child {
  border-top: 1px solid var(--border);
}

.timeline__year {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.2;
}

.timeline__content h3 {
  font-size: 1.125rem;
  font-weight: 400;
  margin-bottom: var(--space-xs);
}

.timeline__content p {
  font-size: 0.9375rem;
  margin-bottom: 0;
}

/* ---- Gallery Grid ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.gallery-grid__item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: pointer;
}

.gallery-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter 0.4s ease, opacity 0.4s ease;
  opacity: 0.8;
}

.gallery-grid__item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

@media (max-width: 1024px) and (min-width: 769px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
}

/* ---- Stat Numbers ---- */
.stats {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats__card {
  text-align: center;
  padding: var(--space-md);
}

.stats__value {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300;
  color: var(--accent-gold);
  line-height: 1;
  display: block;
  margin-bottom: var(--space-xs);
}

.stats__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
}

/* ---- Tag (small pill) ---- */
.tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.15rem 0.5rem;
  display: inline-block;
}

/* ---- Back Link ---- */
.back-link {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: none;
  display: inline-block;
  margin-bottom: var(--space-md);
  transition: color 0.3s ease;
}

.back-link:hover {
  color: var(--accent);
}

/* ---- Affiliations List ---- */
.affiliations__list {
  list-style: none;
  padding: 0;
}

.affiliations__item {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.6;
}

.affiliations__item:first-child {
  border-top: 1px solid var(--border);
}

.affiliations__role {
  color: var(--text);
  font-weight: 500;
}

.affiliations__at {
  color: var(--text-muted);
}

.affiliations__years {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ---- Press List ---- */
.press__list {
  list-style: none;
  padding: 0;
}

.press__item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
  gap: var(--space-md);
}

.press__item:first-child {
  border-top: 1px solid var(--border);
}

.press__pub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .press__item {
    flex-direction: column;
    gap: 0.25rem;
  }
}
