/**
 * Per-teacher profile theming: typography + button shadows when CSS variables are set on scope.
 * Variables are injected by js/profile-theme-apply.js on body.page-profile or #profileThemePreviewRoot.
 */

body.page-profile .profile-header-title {
  font-family: var(--profile-font-heading, var(--font));
}

body.page-profile .profile-name,
body.page-profile .profile-headline,
body.page-profile .profile-body-about h3,
body.page-profile .profile-gallery-wrap h3,
body.page-profile .profile-section-label,
body.page-profile .payment-packages > h3,
body.page-profile .profile-about-tabs .profile-about-tab {
  font-family: var(--profile-font-heading, var(--font));
  color: var(--profile-heading-color, var(--text));
}

body.page-profile .profile-about,
body.page-profile .profile-about-panel,
body.page-profile .payment-packages,
body.page-profile .site-footer {
  font-family: var(--font);
  color: var(--profile-body-color, var(--text));
}

body.page-profile .profile-origin,
body.page-profile .profile-languages,
body.page-profile .profile-teaches,
body.page-profile .profile-lang-note {
  color: var(--text-muted);
}

body.page-profile {
  color: var(--profile-body-color, var(--text));
}

body.page-profile .btn-primary {
  box-shadow: 0 4px 15px color-mix(in srgb, var(--primary) 42%, transparent);
}

body.page-profile .btn-primary:hover {
  box-shadow: 0 6px 22px color-mix(in srgb, var(--primary) 48%, transparent);
}

body.page-profile .btn-outline:hover {
  box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 25%, transparent);
}

.theme-color-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.theme-color-row .form-label {
  width: 100%;
  margin-bottom: 0.15rem;
}

.theme-color-pick {
  width: 48px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.theme-color-hex {
  flex: 1;
  min-width: 7rem;
}

/* ── Editor preview sandbox ── */
.profile-theme-preview-wrap {
  margin: 1.5rem 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.profile-theme-preview-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

#profileThemePreviewRoot.profile-theme-preview {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  max-width: 100%;
}

#profileThemePreviewRoot.profile-theme-preview .profile-theme-preview-inner {
  padding: 1rem 1.25rem;
}

#profileThemePreviewRoot.profile-theme-preview .profile-theme-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1rem;
  background: var(--bg-card);
  box-shadow: var(--shadow);
  margin: -1rem -1.25rem 1rem;
}

#profileThemePreviewRoot.profile-theme-preview .profile-theme-preview-brand {
  font-family: var(--profile-font-heading, var(--font));
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--profile-heading-color, var(--text));
}

#profileThemePreviewRoot.profile-theme-preview .profile-theme-preview-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

#profileThemePreviewRoot.profile-theme-preview .profile-theme-preview-name {
  font-family: var(--profile-font-heading, var(--font));
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--profile-heading-color, var(--text));
  margin-bottom: 0.35rem;
}

#profileThemePreviewRoot.profile-theme-preview .profile-theme-preview-body {
  font-family: var(--font);
  color: var(--profile-body-color, var(--text));
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

#profileThemePreviewRoot.profile-theme-preview .profile-theme-preview-muted {
  font-family: var(--font);
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

#profileThemePreviewRoot.profile-theme-preview .btn-primary {
  box-shadow: 0 4px 15px color-mix(in srgb, var(--primary) 42%, transparent);
}
