/*
 * year.css — Year index page (/years/2025/ etc.)
 * Uses per-year theme vars injected by render_theme_head().
 */

body.year-page {
  background: var(--theme-bg, #0e0e12);
  color: var(--theme-text, #e8e8f0);
  font-family: var(--theme-font-body, 'Poppins', sans-serif);
}

body.year-page nav {
  background: color-mix(in srgb, var(--theme-bg, #0e0e12) 92%, transparent);
  border-bottom: 1px solid var(--theme-border, #2a2a35);
}

body.year-page nav .logo span { color: var(--theme-accent, #e82e92); }

.nav-back {
  font-family: var(--theme-font-mono, 'DM Mono', monospace);
  font-size: 0.75rem;
  color: var(--theme-muted, #7a7a92);
  text-decoration: none;
  margin-left: auto;
  transition: color 0.15s;
}
.nav-back:hover { color: var(--theme-accent, #e82e92); }

/* ── YEAR HERO ──────────────────────────────────────────────── */
.year-hero {
  padding: 5rem 0 3rem;
  border-bottom: 1px solid var(--theme-border, #2a2a35);
}

.yh-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.yh-eyebrow {
  font-family: var(--theme-font-mono, 'DM Mono', monospace);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--theme-accent, #e82e92);
  margin-bottom: 0.5rem;
}

.yh-year {
  font-family: var(--theme-font-head, 'Urbanist', sans-serif);
  font-size: clamp(4rem, 14vw, 10rem);
  font-weight: 900;
  color: var(--theme-text, #fff);
  line-height: 0.85;
  letter-spacing: -0.04em;
  margin: 0 0 0.75rem;
}

.yh-count {
  font-size: 0.85rem;
  color: var(--theme-muted, #7a7a92);
}

/* ── FILTER BAR ─────────────────────────────────────────────── */
.year-filters {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 2.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--theme-border, #2a2a35);
}

.yf-btn {
  font-family: var(--theme-font-mono, 'DM Mono', monospace);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  background: none;
  border: 1px solid var(--theme-border, #2a2a35);
  color: var(--theme-muted, #7a7a92);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s;
}

.yf-btn:hover {
  border-color: var(--area-color, var(--theme-accent, #e82e92));
  color: var(--area-color, var(--theme-accent, #e82e92));
}

.yf-btn.active {
  background: var(--theme-accent, #e82e92);
  border-color: var(--theme-accent, #e82e92);
  color: var(--theme-bg, #0e0e12);
  font-weight: 500;
}

/* ── STUDENT GRID ───────────────────────────────────────────── */
.student-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 2.5rem 5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1px;
  background: var(--theme-border, #2a2a35);
  border: 1px solid var(--theme-border, #2a2a35);
  border-radius: 12px;
  overflow: hidden;
}

.student-card {
  background: var(--theme-surface, #16161c);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: background 0.15s;
}

.student-card:hover { background: color-mix(in srgb, var(--theme-surface, #16161c) 60%, var(--theme-accent, #e82e92) 4%); }

.sc-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--theme-bg, #0e0e12);
}

.sc-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.student-card:hover .sc-image img { transform: scale(1.04); }

.sc-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sc-body {
  padding: 1rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.sc-name {
  font-family: var(--theme-font-head, 'Urbanist', sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--theme-text, #e8e8f0);
}

.sc-project {
  font-size: 0.82rem;
  color: var(--theme-muted, #7a7a92);
  font-style: italic;
  line-height: 1.4;
}

.sc-area {
  display: inline-block;
  font-family: var(--theme-font-mono, 'DM Mono', monospace);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  border: 1px solid;
  margin-top: 0.4rem;
  width: fit-content;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
body.year-page footer {
  border-top-color: var(--theme-border, #2a2a35);
  color: var(--theme-muted, #7a7a92);
}

/* ── TEAM BADGE (year index cards) ─────────────────────────── */
.sc-team-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--theme-font-mono, 'DM Mono', monospace);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  color: var(--theme-accent, #e82e92);
  opacity: 0.7;
  margin-top: 0.3rem;
}

/* ── COLLABORATORS ROW (student pages) ──────────────────────── */
.collab-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  font-size: 0.82rem;
}

.collab-label {
  font-family: var(--theme-font-mono, 'DM Mono', monospace);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--theme-muted, #7a7a92);
}

.collab-link {
  color: var(--theme-accent, #e82e92);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.15s;
}

.collab-link:hover { opacity: 0.75; text-decoration: underline; }

.collab-sep {
  color: var(--theme-muted, #7a7a92);
  font-size: 0.75rem;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .year-filters { padding: 1rem 1.5rem; }
  .student-grid { padding: 1.5rem 1.5rem 4rem; grid-template-columns: repeat(2, 1fr); }
  .yh-inner { padding: 0 1.5rem; }
}

@media (max-width: 480px) {
  .student-grid { grid-template-columns: 1fr 1fr; }
}
