/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Base ────────────────────────────────────────────────────────────────── */
body {
  font-family: Georgia, serif;
  background: #1a1a2e;
  color: #e0e0e0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
}

/* ── Layout ──────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ── Typography ──────────────────────────────────────────────────────────── */
h1 {
  font-size: 1.2rem;
  font-weight: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  text-align: center;
}

h2 {
  font-size: 1rem;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7a8fff;
  text-align: center;
}

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card {
  background: #0d0d1a;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
}

/* ── Forms ───────────────────────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7a8fff;
}

.form-group input {
  background: #0d0d1a;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  color: #e0e0e0;
  font-family: Georgia, serif;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus { border-color: #7a8fff; }

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ── Radio groups (registration page) ───────────────────────────────────── */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: #c8c8d0;
}

.radio-option input[type="radio"] {
  accent-color: #7a8fff;
  width: 1rem;
  height: 1rem;
  cursor: pointer;
  flex-shrink: 0;
}

/* ── Copyright (registration page) ───────────────────────────────────────── */
.copyright {
  font-size: 0.72rem;
  color: #2a2a2a;
  text-align: center;
  margin-top: 1rem;
}

.copyright a {
  color: inherit;
  text-decoration: none;
  cursor: default;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  background: #2a2a4a;
  border: 1px solid #7a8fff;
  border-radius: 4px;
  color: #7a8fff;
  font-family: Georgia, serif;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn:hover:not(:disabled) { background: #7a8fff; color: #0d0d1a; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-full { width: 100%; }

.btn-primary {
  background: #7a8fff;
  border-color: #7a8fff;
  color: #0d0d1a;
}

.btn-primary:hover:not(:disabled) {
  background: #9aafff;
  border-color: #9aafff;
  color: #0d0d1a;
}

/* ── Question buttons ────────────────────────────────────────────────────── */
.question-btn {
  background: #0d0d1a;
  border: 1px solid #444;
  border-radius: 4px;
  color: #c8c8d0;
  font-family: Georgia, serif;
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 0.85rem 1.1rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
}

.question-btn:hover:not(:disabled) {
  border-color: #7a8fff;
  background: #12122a;
}

.question-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.question-btn.selected {
  border-color: #7a8fff;
  background: #12122a;
  color: #fff;
}

/* ── Labels & meta ───────────────────────────────────────────────────────── */
.label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7a8fff;
}

.meta {
  font-size: 0.75rem;
  color: #555;
  letter-spacing: 0.03em;
}

.status {
  font-size: 0.8rem;
  color: #666;
  min-height: 1.2em;
  text-align: right;
}

/* ── Error ───────────────────────────────────────────────────────────────── */
.error-text {
  font-size: 0.85rem;
  color: #ff6b6b;
  min-height: 1.2em;
}

/* ── Avatar placeholder ──────────────────────────────────────────────────── */
.avatar-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0d0d1a;
  border: 1px solid #333;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #444;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* ── Interview nav (back link row) ───────────────────────────────────────── */
.interview-nav {
  display: flex;
  align-items: center;
}

/* ── Interview: topic header ─────────────────────────────────────────────── */
.topic-header {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 1.5rem;
}

.topic-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.topic-progress {
  font-size: 0.75rem;
  color: #888;
  letter-spacing: 0.03em;
}

.topic-name {
  font-size: 1.1rem;
  color: #c8c8d0;
}

/* ── Interview: question list ────────────────────────────────────────────── */
.question-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* ── Interview: response box ─────────────────────────────────────────────── */
.response-box {
  margin-top: 1rem;
  line-height: 1.7;
}

/* ── Interview: nav row ──────────────────────────────────────────────────── */
.nav-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

/* ── Interview: end buttons ──────────────────────────────────────────────── */
.end-buttons {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

/* ── Summary items ───────────────────────────────────────────────────────── */
.summary-item {
  background: #0d0d1a;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.summary-topic {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7a8fff;
}

.summary-question {
  font-size: 0.95rem;
  color: #fff;
  line-height: 1.5;
}

.summary-divider {
  border: none;
  border-top: 1px solid #222;
}

.summary-response {
  font-size: 0.9rem;
  color: #9090a8;
  line-height: 1.7;
  font-style: italic;
}

/* ── Responses list ──────────────────────────────────────────────────────── */
.responses-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ── Session meta (summary page) ────────────────────────────────────────── */
.session-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.meta-value {
  font-size: 1rem;
  color: #c8c8d0;
}

/* ── Closing statement (summary page) ───────────────────────────────────── */
.closing-statement {
  background: #0d0d1a;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  font-size: 0.95rem;
  color: #9090a8;
  line-height: 1.7;
  text-align: center;
}

/* ── Print button row ────────────────────────────────────────────────────── */
.print-row {
  display: flex;
  justify-content: space-between;
}

/* ── Notice box ──────────────────────────────────────────────────────────── */
.notice {
  background: #12122a;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 1rem 1.25rem;
  font-size: 0.88rem;
  color: #9090a8;
  line-height: 1.7;
}

/* ── Back link ───────────────────────────────────────────────────────────── */
.back-link {
  font-size: 0.8rem;
  color: #7a8fff;
  text-decoration: none;
  letter-spacing: 0.03em;
}

.back-link:hover { text-decoration: underline; }

/* ── Intro screen ────────────────────────────────────────────────────────── */
.intro-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.intro-menu-btn {
  background: #0d0d1a;
  border: 1px solid #333;
  border-radius: 4px;
  color: #888;
  font-family: Georgia, serif;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.intro-menu-btn:hover {
  border-color: #7a8fff;
  color: #c8c8d0;
}

.intro-menu-btn.active {
  border-color: #7a8fff;
  color: #fff;
  background: #12122a;
}

.intro-focus {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.intro-image-wrap {
  width: 100%;
}

.intro-image {
  border-radius: 4px;
  border: 1px solid #333;
  display: block;
  background: #1a1a2e;
}
.intro-image.image-scene {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
}

.intro-text {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: #c8c8d0;
  line-height: 1.7;
}

.intro-text .btn {
  margin-top: 1rem;
  display: inline-block;
}

.intro-focus.has-portrait {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.intro-image.image-portrait {
  width: 100%;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid #333;
  display: block;
  background: #1a1a2e;
}

@media (max-width: 600px) {
  .intro-focus.has-portrait {
    grid-template-columns: 1fr;
  }

  .intro-image.image-portrait {
    max-width: 280px;
    margin: 0 auto;
  }
}

.intro-actions {
  display: flex;
  justify-content: flex-start;
  gap: 0.75rem;
}

.intro-unavailable-msg {
  font-size: 0.95rem;
  color: #9090a8;
  line-height: 1.6;
}

/* ── Modal (shared) ──────────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 100;
  align-items: center;
  justify-content: center;
}

.modal-overlay.modal-open {
  display: flex;
}

.modal {
  background: #12122a;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 1.75rem 2rem;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  text-align: left;
  font-size: 1rem;
}

.modal-close {
  background: none;
  border: none;
  color: #555;
  font-size: 1rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.modal-close:hover { color: #c8c8d0; }

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* ── Facilitator stats ───────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: #0d0d1a;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.stat-value {
  font-size: 1.8rem;
  color: #7a8fff;
  line-height: 1;
}

.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #555;
}
