/* ============================================================================
 * pf-class-v1.css — Project Fluency / class page (Session 3 · LiveKit)
 * Variant A Magazine Spread design system. English source of truth (i18n
 * deferred until copy is final, per feedback rule).
 * ========================================================================== */

:root {
  --cream:         #F9F5F0;
  --cream-dark:    #EDE8E0;
  --cream-deeper:  #E5DDD0;
  --warm-brown:    #A0694B;
  --brown-deep:    #7A4F37;
  --olive:         #8B9556;
  --olive-deep:    #6B7340;
  --gold:          #D4AF37;
  --ink:           #3D2B1F;
  --ink-soft:      #5a4636;
  --rec-red:       #c44a3b;
}

* { box-sizing: border-box; }

#pf-class-root {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.5;
}

/* —— Top bar —— */
.pfc-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  border-bottom: 2px solid var(--ink);
}
.pfc-brand { font-weight: 600; letter-spacing: 0.5px; font-size: 14px; text-transform: uppercase; color: var(--ink); }
.pfc-meta-right { font-size: 13px; color: var(--ink-soft); }

/* —— Magazine spread (1.6 : 1) —— */
.pfc-spread {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 64px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 48px;
}
.pfc-spread > .pfc-col-left  { border-left: 1px solid var(--warm-brown); padding-left: 32px; }
.pfc-spread > .pfc-col-right { border-left: 1px solid var(--warm-brown); padding-left: 32px; }

.pfc-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--brown-deep);
  margin-bottom: 16px;
}
.pfc-display {
  font-size: 88px;
  line-height: 0.95;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 24px;
  letter-spacing: -1.5px;
}
.pfc-display-small { font-size: 48px; line-height: 1; }
.pfc-lede {
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 32px;
  max-width: 560px;
}
.pfc-body-prose {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.65;
  max-width: 560px;
}
.pfc-body-prose p + p { margin-top: 16px; }

/* —— Metadata list (right column) —— */
.pfc-meta-list { list-style: none; padding: 0; margin: 0 0 32px; }
.pfc-meta-list li { display: flex; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--cream-deeper); gap: 16px; }
.pfc-meta-list li:last-child { border-bottom: 0; }
.pfc-meta-label { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--brown-deep); flex: 0 0 110px; }
.pfc-meta-value { font-size: 16px; color: var(--ink); font-weight: 500; }

/* —— Buttons —— */
.pfc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 4px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.pfc-btn:hover  { opacity: 0.9; }
.pfc-btn:active { transform: translateY(1px); }
.pfc-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.pfc-btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.pfc-btn-danger {
  background: var(--brown-deep);
  border-color: var(--brown-deep);
  color: var(--cream);
}

/* —— Consent block —— */
.pfc-consent {
  background: var(--cream-dark);
  padding: 24px;
  border-left: 3px solid var(--warm-brown);
  margin-bottom: 24px;
}
.pfc-consent label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 15px;
}
.pfc-consent input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--warm-brown);
}

/* —— Countdown —— */
.pfc-countdown {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--warm-brown);
}

/* —— In-call layout —— */
.pfc-call {
  display: grid;
  grid-template-rows: 1fr auto;
  height: 100vh;
  background: var(--cream);
}
.pfc-call-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 32px 48px;
  position: relative;
  align-items: center;
}
.pfc-tile {
  background: var(--cream-deeper);
  border-radius: 8px;
  border: 1px solid var(--warm-brown);
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
}
.pfc-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--ink);
}
.pfc-tile-name {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(61, 43, 31, 0.85);
  color: var(--cream);
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.pfc-audio-banner {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.pfc-audio-banner:empty { display: none; }

.pfc-rec-indicator {
  position: absolute;
  top: 16px;
  right: 48px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rec-red);
  font-weight: 600;
}
.pfc-rec-dot {
  width: 10px;
  height: 10px;
  background: var(--rec-red);
  border-radius: 50%;
  animation: pfc-rec-pulse 1.6s ease-in-out infinite;
}
@keyframes pfc-rec-pulse { 0%,100% { opacity:1; } 50% { opacity: 0.35; } }

.pfc-timer {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  color: var(--ink);
  background: var(--cream-dark);
  padding: 6px 16px;
  border-radius: 4px;
  border: 1px solid var(--warm-brown);
}

.pfc-toolbar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 24px 48px;
  background: var(--cream-deeper);
  border-top: 1px solid var(--warm-brown);
}
.pfc-tool-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.pfc-tool-btn:hover { background: var(--cream-dark); }
.pfc-tool-btn[data-active="false"] { background: var(--ink); color: var(--cream); }
.pfc-tool-btn svg { width: 24px; height: 24px; }
.pfc-tool-end {
  background: var(--brown-deep);
  color: var(--cream);
  border-color: var(--brown-deep);
  border-radius: 28px;
  padding: 0 24px;
  width: auto;
  font-size: 14px;
  font-weight: 500;
  height: 56px;
  margin-left: 16px;
}
.pfc-tool-end:hover { background: var(--ink); border-color: var(--ink); }

/* —— Status messages —— */
.pfc-banner {
  background: var(--cream-dark);
  padding: 16px 24px;
  margin-top: 24px;
  border-left: 3px solid var(--warm-brown);
  color: var(--ink-soft);
}
.pfc-error { border-left-color: var(--rec-red); color: var(--rec-red); }

/* —— Loading —— */
.pfc-loader {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--warm-brown);
  border-top-color: transparent;
  border-radius: 50%;
  animation: pfc-spin 0.7s linear infinite;
  vertical-align: middle;
}
@keyframes pfc-spin { to { transform: rotate(360deg); } }

/* —— Responsive (basic; not in v1 acceptance criteria but stops hard breakage) —— */
@media (max-width: 900px) {
  .pfc-spread { grid-template-columns: 1fr; gap: 32px; padding: 32px 24px; }
  .pfc-display { font-size: 56px; }
  .pfc-call-stage { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  .pfc-topbar { padding: 16px 24px; }
}
