/* =====================================================================
   PROFILE PAGES - SHARED STYLES
   Used by the Tutor Profile, Student Profile and Tutor Advertisement
   pages: the apply bar, toast message and other pieces that were
   identical in css/pages/tutor-profile.css and css/pages/student-profile.css.

   Loaded BEFORE tutor-profile.css. Page-specific looks stay in the
   page's own CSS file, which loads after this one.
   ===================================================================== */

/* ---------- toast ---------- */
.profile-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1100;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--lime-line);
  background: var(--surface-3);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  box-shadow: var(--shadow-card);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.profile-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.profile-toast.error {
  border-color: var(--danger);
  color: var(--danger);
}

/* Verified badge on the avatar (which clips to a circle, so the badge
   needs it to overflow) - coloured by subscription payment. */
#profileAvatarWrap {
  overflow: visible;
}

.profile-sub-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 26px;
  height: 26px;
  color: var(--muted-2);
}

.profile-sub-badge svg {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
}

.profile-sub-badge svg path { fill: currentColor; }
/* the tick is see-through in the seal; black shows through it */
.profile-sub-badge svg path.badge-tick { fill: #000000; }

.profile-sub-badge[data-tone="paid"]    { color: var(--lime); }

.profile-sub-badge[data-tone="partial"] { color: var(--orange); }

.profile-sub-badge[data-tone="unpaid"]  { color: var(--danger); }

/* Tuition card + its payments card stacked as one unit (same as the
   Student Profile). */
.tuition-stack {
  display: grid;
  gap: 0;
}

.apply-tuition-bar:active {
  filter: brightness(0.94);
}

