/* ---------- Classmates' Projects & Admin ---------- */

.projects-page { max-width: 720px; }

.projects-intro {
  font-size: 17px;
  color: var(--muted);
  margin: -16px 0 8px;
}

.projects-disclaimer {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 24px;
}

.projects-disclaimer a { color: var(--muted); }

.projects-submit-link {
  font-size: 14px;
  margin: 0 0 24px;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}

.project-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
  background: var(--paper);
}

.project-card h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 4px;
}

.project-meta {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 12px;
}

.project-description {
  font-size: 15px;
  margin: 0 0 16px;
}

.project-media {
  display: block;
  width: 100%;
  border-radius: 10px;
  background: #000;
}

.project-audio {
  background: transparent;
  height: 40px;
}

.project-pdf {
  aspect-ratio: 16 / 10;
  height: auto;
  max-height: 70vh;
  border: 1px solid var(--line);
}

.project-pdf-thumb {
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  border: 1px solid var(--line);
  cursor: pointer;
}

.project-download {
  display: inline-block;
  font-size: 14px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
}

.project-download:hover { border-color: var(--ink); }

.project-download-secondary {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Admin ---------- */

.admin-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.link-button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--ink);
  text-decoration: underline;
  cursor: pointer;
}

.link-button-danger { color: var(--red); }

.admin-actions {
  display: flex;
  gap: 14px;
}

.bulk-actions { margin: 4px 0 24px; }

.btn {
  padding: 10px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.btn-danger {
  background: var(--paper);
  color: var(--red);
  border-color: var(--red);
}

.admin-thumb {
  width: 56px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.admin-thumb-large {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 10px;
  margin: 12px 0;
  display: block;
}

.form-error {
  color: var(--red);
  font-size: 15px;
  background: rgba(193, 39, 45, 0.08);
  border: 1px solid var(--red);
  border-radius: 10px;
  padding: 10px 14px;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 480px;
  margin: 16px 0 32px;
}

.admin-form label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 10px;
}

.admin-form input,
.admin-form textarea {
  font: inherit;
  font-size: 15px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}

.admin-form textarea { resize: vertical; }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  font-size: 14px;
  font-weight: normal;
  color: var(--ink);
}

.checkbox-label input { margin-top: 3px; }

.field-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 2px 0 0;
}

.admin-form button,
.admin-form + p .link-button {
  align-self: flex-start;
  margin-top: 12px;
  padding: 10px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
}

.stat-total {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 500;
  margin: 8px 0 4px;
}

.stat-total-secondary {
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
  margin: 0 0 28px;
}

.analytics-table td { border-bottom: none; padding: 4px 8px; }

.analytics-label {
  width: 90px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.analytics-bar-cell { width: 100%; }

.analytics-bar {
  display: block;
  height: 14px;
  min-width: 2px;
  border-radius: 4px;
  background: var(--blue);
}

.analytics-count {
  width: 40px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .project-pdf { max-height: 50vh; }
}

/* ---------- Invite page ---------- */

.invite-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.invite-page .back-link { align-self: flex-start; }
.invite-page h1 { text-align: center; }
.invite-page .projects-intro { text-align: center; }

.invite-qrcode {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  margin: 16px 0;
}

.invite-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 500;
}
