/* ═══════════════════════════════════════════════════════
   MENTORSHIP.CSS — Section 03
   Mentee cards · Story rings · Before/After growth · Charts
═══════════════════════════════════════════════════════ */

/* ── Section ───────────────────────────────────────── */
.mentorship-section {
  background: #020202;
  position: relative;
  padding: clamp(80px, 12vw, 140px) 0 clamp(60px, 8vw, 100px);
  overflow: hidden;
}

/* Pink atmospheric glow top-right */
.mentorship-section::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 60%;
  height: 65%;
  background: radial-gradient(ellipse at center, rgba(225, 17, 251, 0.065) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

/* Faint background section number */
.ms-bg-num {
  position: absolute;
  top: clamp(16px, 3vw, 48px);
  left: clamp(12px, 4vw, 64px);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(100px, 18vw, 220px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.032);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ── Header ────────────────────────────────────────── */
.ms-header {
  position: relative;
  z-index: 1;
  margin-bottom: clamp(32px, 5vw, 52px);
  text-align: left;
}

.ms-section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-pink);
  margin-bottom: var(--sp-4);
  justify-content: flex-start;
}

.ms-section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--color-pink);
  display: block;
  flex-shrink: 0;
}

.ms-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--color-white);
  margin-bottom: var(--sp-4);
}

.ms-subheading {
  font-family: var(--font-body);
  font-size: clamp(var(--text-sm), 1.5vw, var(--text-lg));
  color: var(--color-text-secondary);
  max-width: 460px;
  line-height: 1.6;
}

/* ── Aggregate Stats Bar ───────────────────────────── */
.ms-stats-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(20px, 4vw, 48px);
  margin-bottom: clamp(40px, 6vw, 64px);
  position: relative;
  z-index: 1;
}

.ms-stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
}

.ms-stat-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1;
  color: var(--color-white);
  min-width: 3ch;
  text-align: left;
}

.ms-stat-label {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.ms-stat-divider {
  width: 1px;
  height: 38px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

/* ── Story Ring ─────────────────────────────────────── */
@property --ms-ring-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.ms-ring {
  --ms-ring-angle: 0deg;
  width: 152px;
  height: 152px;
  border-radius: 50%;
  padding: 10px;
  background: conic-gradient(
    from var(--ms-ring-angle),
    var(--ring-from) 0%,
    var(--ring-to)   50%,
    var(--ring-from) 100%
  );
  flex-shrink: 0;
  transition: box-shadow 0.35s ease;
  animation: ms-ring-spin 4s linear infinite;
  position: relative;
}

@keyframes ms-ring-spin {
  to { --ms-ring-angle: 360deg; }
}

.ms-ring-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #0f0f0f;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 3px #0b0b0b;
}

.ms-ring-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.ms-ring-initial {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
}

/* Status dot badge on ring */
.ms-ring::after {
  content: '';
  position: absolute;
  bottom: 18px;
  right: 18px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2.5px solid #0b0b0b;
  z-index: 2;
  transition: transform 0.3s ease;
}

.ms-card.status-active    .ms-ring::after { background: #22c55e; }
.ms-card.status-on-hold   .ms-ring::after { background: #f59e0b; }
.ms-card.status-completed .ms-ring::after { background: #ef4444; }

.ms-card:hover .ms-ring::after {
  transform: scale(1.2);
}

/* ── Card ───────────────────────────────────────────── */
.ms-card {
  width: 400px;
  background: #0b0b0b;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  padding: 36px 28px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  position: relative;
  overflow: hidden;
  transition:
    border-color var(--t-base),
    transform var(--t-base),
    box-shadow var(--t-base);
}

/* Top edge accent — pink */
.ms-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(225, 17, 251, 0), transparent);
  opacity: 0;
  transition: opacity var(--t-slow), background var(--t-slow);
}

.ms-card:hover {
  border-color: rgba(225, 17, 251, 0.28);
  transform: translateY(-6px);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(225, 17, 251, 0.08),
    0 0 40px rgba(225, 17, 251, 0.07);
}

.ms-card:hover::before {
  opacity: 1;
  background: linear-gradient(90deg, transparent, rgba(225, 17, 251, 0.5), transparent);
}

.ms-card:hover .ms-ring {
  animation: ms-ring-spin 2.5s linear infinite;
}

.ms-card.status-active:hover    .ms-ring { box-shadow: 0 0 22px rgba(34,197,94,0.55),  0 0 44px rgba(34,197,94,0.22); }
.ms-card.status-on-hold:hover   .ms-ring { box-shadow: 0 0 22px rgba(245,158,11,0.55), 0 0 44px rgba(245,158,11,0.22); }
.ms-card.status-completed:hover .ms-ring { box-shadow: 0 0 22px rgba(239,68,68,0.55),  0 0 44px rgba(239,68,68,0.22); }

.ms-card.status-active:hover    { border-color: rgba(34,197,94,0.3);  box-shadow: 0 24px 48px rgba(0,0,0,0.65), 0 0 32px rgba(34,197,94,0.06); }
.ms-card.status-on-hold:hover   { border-color: rgba(245,158,11,0.3); box-shadow: 0 24px 48px rgba(0,0,0,0.65), 0 0 32px rgba(245,158,11,0.06); }
.ms-card.status-completed:hover { border-color: rgba(239,68,68,0.3);  box-shadow: 0 24px 48px rgba(0,0,0,0.65), 0 0 32px rgba(239,68,68,0.06); }

/* ── Card Mentee Info ───────────────────────────────── */
.ms-card-info {
  text-align: center;
  width: 100%;
}

.ms-mentee-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: var(--sp-1);
}

.ms-mentee-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-bottom: var(--sp-3);
}

.ms-mentee-handle {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  color: var(--color-pink);
}

.ms-mentee-niche {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.ms-mentee-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.ms-mentee-bio {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ── Platform Buttons ───────────────────────────────── */
.ms-platforms {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
}

.ms-platform-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
  min-width: 0;
  text-decoration: none;
  cursor: pointer;
}

a.ms-platform-btn:hover {
  background: rgba(225, 17, 251, 0.08);
  border-color: rgba(225, 17, 251, 0.35);
  transform: translateY(-1px);
}

.ms-platform-btn.no-link { cursor: default; }

.ms-platform-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.45);
  transition: color var(--t-fast);
}

a.ms-platform-btn:hover .ms-platform-icon {
  color: rgba(225, 17, 251, 0.85);
}

.ms-platform-count {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-white);
  letter-spacing: -0.02em;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  line-height: 1;
}

/* ── Before / After ─────────────────────────────────── */
.ms-growth-block {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 14px 16px 12px;
  transition: border-color var(--t-fast), background var(--t-fast);
}

.ms-card:hover .ms-growth-block {
  background: rgba(225, 17, 251, 0.04);
  border-color: rgba(225, 17, 251, 0.18);
}

.ms-platform-growth {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ms-platform-growth:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ms-platform-growth:first-child {
  padding-top: 0;
}

.ms-pg-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--sp-2);
}

.ms-pg-icon {
  width: 13px;
  height: 13px;
  color: rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ms-pg-icon svg { width: 13px; height: 13px; }

.ms-pg-name {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.ms-growth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}

.ms-growth-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.ms-growth-col.after {
  align-items: flex-end;
  text-align: right;
}

.ms-growth-col-label {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.ms-growth-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-white);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.ms-growth-num.after {
  color: var(--color-white);
}

.ms-growth-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.ms-growth-arrow-icon {
  color: rgba(255, 255, 255, 0.25);
  font-size: 1rem;
  line-height: 1;
}

.ms-growth-pct {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  background: var(--gradient-brand-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

/* ── Duration badge ─────────────────────────────────── */
.ms-duration {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  text-align: center;
}


/* ── Row Wrapper ────────────────────────────────────── */
.ms-row-wrap {
  position: relative;
  z-index: 1;
}

.ms-row-wrap::before,
.ms-row-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(32px, 5vw, 88px);
  pointer-events: none;
  z-index: 2;
}

.ms-row-wrap::before {
  left: 0;
  background: linear-gradient(to right, #020202 0%, transparent 100%);
}

.ms-row-wrap::after {
  right: 0;
  background: linear-gradient(to left, #020202 0%, transparent 100%);
}

.ms-cards-row {
  padding-top: var(--sp-4);
  padding-bottom: var(--sp-8);
}

/* ── Carousel dots ──────────────────────────────────── */
#ms-dots {
  margin-top: var(--sp-4);
  position: relative;
  z-index: 1;
}

#ms-dots .carousel-dot.active {
  background: var(--color-pink);
  width: 20px;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
  .ms-stats-bar {
    gap: 18px;
  }
  .ms-card {
    width: 320px;
    padding: 28px 22px 24px;
  }
}

@media (max-width: 480px) {
  .ms-card {
    width: 290px;
  }
  .ms-stats-bar {
    flex-wrap: wrap;
    gap: 14px 20px;
  }
  .ms-stat-divider {
    display: none;
  }
}

/* ── Reduced motion ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .ms-card:hover .ms-ring {
    animation: none;
  }
}
