/* Teacher profile — loaded on /profile.html */

/* ==================================================================
   TEACHER PROFILE v2 — hero portrait, reader-column body, warm callouts
   All scoped under .prof so the old .profile-* classes stay available
   for other pages (dashboard previews, etc.) without regression.
   ================================================================== */

.prof {
  padding-bottom: 80px;
  background: var(--bg);
}

/* ---------- Hero ---------- */
.prof__hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.prof__hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 24px 56px;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 860px) {
  .prof__hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 28px;
    padding: 48px 24px 40px;
    justify-items: center;
  }
}

.prof__portrait {
  aspect-ratio: 3 / 4;
  width: 100%;
  max-width: 360px;
  border-radius: var(--radius-xl);
  background: var(--bg-alt) center/cover no-repeat;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.prof__portrait--placeholder {
  background:
    linear-gradient(135deg, rgba(122, 154, 128, 0.18), rgba(232, 217, 184, 0.45)),
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.55), transparent 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--sage-deep);
  opacity: 0.9;
}

.prof__meta { min-width: 0; }

.prof__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "opsz" 96, "SOFT" 60;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: var(--ink);
}

.prof__location {
  font-size: 1rem;
  color: var(--ink-soft);
  margin: 0 0 18px;
}

.prof__headline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 22px;
  max-width: 40ch;
}

@media (max-width: 860px) { .prof__headline { margin-left: auto; margin-right: auto; } }

.prof__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

@media (max-width: 860px) { .prof__chips { justify-content: center; } }

.prof__chip {
  display: inline-block;
  padding: 6px 14px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.prof__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(201, 135, 108, 0.14);
  border: 1px solid rgba(201, 135, 108, 0.35);
  color: var(--terracotta-deep);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
}

/* ---------- Body — reader column ---------- */

.prof__body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.prof__section {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.prof__section:last-child { border-bottom: 0; }

.prof__section--first { padding-top: 56px; }

.prof__section h3 {
  font-family: var(--font-body);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sage-deep);
  margin: 0 0 18px;
}

.prof__section p {
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.75;
  margin: 0 0 16px;
}

.prof__section p:last-child { margin-bottom: 0; }

/* ---------- Teaching video — lazy-loaded YouTube embed ----------
   Used when a teacher has added a video_url. 16:9 responsive frame with
   rounded corners matching other prof__ cards. youtube-nocookie host
   and loading="lazy" keep the initial page load quick and privacy-friendly. */

.prof__video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.prof__video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Free-session callout — distinct warm block */
.prof__free {
  background: linear-gradient(160deg, rgba(122, 154, 128, 0.10), rgba(232, 217, 184, 0.32));
  border: 1px solid rgba(71, 96, 73, 0.22);
  border-radius: var(--radius-xl);
  padding: 32px 32px;
  margin: 48px 0;
  position: relative;
}

.prof__free h3 {
  color: var(--sage-deep);
  font-family: var(--font-display) !important;
  font-weight: 500;
  font-size: 1.3rem !important;
  text-transform: none !important;
  letter-spacing: -0.005em !important;
  margin-bottom: 12px !important;
}

.prof__free h3::before { content: "🌿 "; }

.prof__free p {
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.7;
}

/* Teaching location items */
.prof__locs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.prof__loc {
  padding: 20px 22px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s;
}

.prof__loc:hover { border-color: var(--sage); }

.prof__loc-place {
  font-weight: 600;
  color: var(--ink);
  font-size: 1.02rem;
  margin-bottom: 4px;
}

.prof__loc-venue {
  color: var(--ink-muted);
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.prof__loc-desc {
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.55;
  margin-bottom: 8px;
}

.prof__loc-free {
  color: var(--sage-deep);
  font-size: 0.9rem;
  line-height: 1.55;
  padding-top: 8px;
  border-top: 1px dashed rgba(71, 96, 73, 0.25);
  margin-top: 8px;
}

/* Class photos — horizontal gallery */
.prof__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.prof__gallery-item {
  cursor: zoom-in;
  margin: 0;
}

.prof__gallery-img {
  aspect-ratio: 4 / 5;
  background: var(--paper) center/cover no-repeat;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: transform 0.25s;
}

.prof__gallery-item:hover .prof__gallery-img { transform: scale(1.01); }

.prof__gallery-caption {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-top: 8px;
  line-height: 1.45;
}

/* Find me links */
.prof__links a {
  color: var(--sage-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prof__links a:hover { color: var(--terracotta-deep); }

/* Comments — quieter on the profile page */
.prof__comments-head {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--ink);
  margin: 48px 0 20px;
  font-variation-settings: "opsz" 72, "SOFT" 50;
}

.prof__comments-sub {
  color: var(--ink-muted);
  font-size: 0.92rem;
  margin: 0 0 20px;
}

.prof__comment-form {
  margin-top: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
}

.prof__comment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink);
  resize: vertical;
  min-height: 84px;
  outline: none;
}

.prof__comment-form textarea:focus { border-color: var(--sage); }

.prof__comment-form-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.prof__comment-form button {
  padding: 10px 20px;
  background: var(--sage-deep);
  color: var(--cream);
  border: 0;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.prof__comment-form button:hover { background: var(--terracotta-deep); }

.prof__own-note {
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 16px 22px;
  color: var(--ink-muted);
  font-size: 0.92rem;
  margin-top: 28px;
}

.prof__signin-gate {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-top: 28px;
  text-align: center;
}

.prof__signin-gate h3 {
  font-family: var(--font-display) !important;
  font-weight: 500;
  font-size: 1.3rem !important;
  text-transform: none !important;
  letter-spacing: -0.005em !important;
  color: var(--ink) !important;
  margin-bottom: 8px !important;
}

.prof__signin-gate p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  margin: 0 0 18px;
}

/* Error / not-found state */
.prof__notfound {
  max-width: 520px;
  margin: 100px auto;
  padding: 48px 32px;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.prof__notfound h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.8rem;
  margin: 0 0 12px;
  color: var(--ink);
}

.prof__notfound p {
  color: var(--ink-soft);
  margin: 0 0 20px;
}

