/* ══════════════════════════════════════
   CAREER MODE PAGE — career-mode.css
══════════════════════════════════════ */

/* ── Hero ── */
.cm-hero .split {
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.cm-hero__copy h1 {
  margin-bottom: 1.25rem;
}

/* Career Ladder */
.cm-hero__ladder-label {
  margin-bottom: 1.5rem;
}

.cm-hero__ladder {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.cm-stage {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.cm-stage__left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.cm-stage__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  background: transparent;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.cm-stage__line {
  width: 2px;
  height: 2.25rem;
  background: linear-gradient(to bottom, currentColor, transparent);
  opacity: 0.3;
  margin-top: 2px;
}

.cm-stage__info {
  padding-top: 0.1rem;
  padding-bottom: 1rem;
}

.cm-stage__name {
  display: block;
  font-size: 1.0625rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: currentColor;
  margin-bottom: 0.2rem;
}

.cm-stage__sub {
  font-size: 0.8125rem;
  font-weight: 600;
  opacity: 0.65;
  color: var(--white);
}

/* Stage colors */
.cm-stage--gold  { color: var(--yellow); }
.cm-stage--cyan  { color: var(--cyan);   }
.cm-stage--white { color: var(--white);  }
.cm-stage--green { color: var(--green);  }

.cm-stage--top .cm-stage__dot {
  width: 22px;
  height: 22px;
  background: var(--yellow);
  border-color: var(--yellow);
  box-shadow: 0 0 18px rgba(255, 213, 46, 0.6);
}

.cm-stage--top .cm-stage__name {
  font-size: 1.25rem;
}

/* ── Reputation ── */
.cm-reputation__bg {
  opacity: 0.07;
}

.cm-reputation__head {
  margin-bottom: 2.5rem;
}

.cm-reputation__head h2 {
  margin-bottom: 0;
}

.cm-reputation__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
}

.cm-reputation__body {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin: 0;
}

/* ── Switching Clubs ── */
.cm-switch .split {
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.cm-switch__frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.cm-switch__frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.cm-switch__badge {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cm-switch__badge-icon {
  font-size: 1rem;
}

.cm-body {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.cm-body:last-of-type {
  margin-bottom: 2rem;
}

/* ── Promotion & Relegation ── */
.cm-promo__head {
  margin-bottom: 2.5rem;
}

.cm-promo__head h2 {
  margin-bottom: 0.875rem;
}

.cm-promo__lead {
  max-width: 38rem;
  margin: 0;
}

.cm-promo__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.cm-status-card {
  padding: 2rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  border-top-width: 3px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cm-status-card--up   { border-top-color: var(--green); }
.cm-status-card--mid  { border-top-color: var(--cyan);  }
.cm-status-card--down { border-top-color: var(--red);   }

.cm-status-card__icon {
  font-size: 2rem;
  line-height: 1;
}

.cm-status-card__status {
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.cm-status-card--up   .cm-status-card__status { color: var(--green); }
.cm-status-card--mid  .cm-status-card__status { color: var(--cyan);  }
.cm-status-card--down .cm-status-card__status { color: var(--red);   }

.cm-status-card__title {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  letter-spacing: -0.04em;
  margin: 0;
}

.cm-status-card__desc {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.62;
  margin: 0;
  flex: 1;
}

/* Progress bar decoration */
.cm-status-card__bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.cm-status-card--up   .cm-status-card__bar-fill { background: var(--green); width: 82%; }
.cm-status-card--mid  .cm-status-card__bar-fill { background: var(--cyan);  width: 50%; }
.cm-status-card--down .cm-status-card__bar-fill { background: var(--red);   width: 22%; }

.cm-status-card__bar-fill {
  height: 100%;
  border-radius: 99px;
}

/* ── Rebuilding Teams (float layout) ── */
.cm-rebuild__title {
  margin-bottom: 2rem;
}

.cm-rebuild__content {
  max-width: 860px;
}

.cm-rebuild__float {
  float: right;
  width: 44%;
  margin: 0 0 1.5rem 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.cm-rebuild__float img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.cm-rebuild__body {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.72;
  margin-bottom: 1.25rem;
}

.cm-rebuild__body:last-child {
  margin-bottom: 0;
}

/* clearfix */
.cm-rebuild__content::after {
  content: "";
  display: table;
  clear: both;
}

/* ── Collecting Trophies ── */
.cm-trophies {
  background:
    linear-gradient(135deg, rgba(255, 213, 46, 0.06), transparent 40%),
    #050720;
  border-top:    1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cm-trophies__head {
  margin-bottom: 3rem;
}

.cm-trophies__head h2 {
  margin-bottom: 0.875rem;
}

.cm-trophies__lead {
  max-width: 40rem;
  margin: 0;
}

.cm-trophy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.cm-trophy-card {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  transition: background 0.25s, border-color 0.25s;
}

.cm-trophy-card:hover {
  background: var(--panel-hover);
  border-color: rgba(255, 213, 46, 0.2);
}

.cm-trophy-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.cm-trophy-card__icon {
  font-size: 2.5rem;
  line-height: 1;
}

.cm-trophy-card__type {
  font-size: 0.6875rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--yellow);
  border: 1px solid rgba(255, 213, 46, 0.3);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
}

.cm-trophy-card__name {
  font-size: clamp(1.25rem, 2vw, 1.875rem);
  letter-spacing: -0.05em;
  margin-bottom: 0.875rem;
}

.cm-trophy-card__desc {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.62;
  margin: 0;
}

/* ── Download CTA ── */
.cm-cta {
  text-align: center;
  background: linear-gradient(150deg, rgba(255, 213, 46, 0.08), rgba(70, 255, 87, 0.05));
  border-top: 1px solid var(--line);
}

.cm-cta__inner {
  max-width: 36rem;
  margin: 0 auto;
}

.cm-cta__inner h2 {
  margin-bottom: 1.25rem;
}

.cm-cta__inner .lead {
  margin-bottom: 2.25rem;
}

.cm-cta__badge {
  display: inline-block;
  transition: transform 0.22s var(--ease-out), opacity 0.2s;
}

.cm-cta__badge:hover { transform: translateY(-3px); opacity: 0.85; }

.cm-cta__badge:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
  border-radius: 8px;
}

/* ── Responsive: Tablet ── */
@media (max-width: 1020px) {
  .cm-reputation__cols {
    grid-template-columns: 1fr;
  }

  .cm-promo__cards {
    grid-template-columns: 1fr;
  }

  .cm-rebuild__float {
    float: none;
    width: 100%;
    margin: 0 0 2rem 0;
  }

  .cm-trophy-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Responsive: Mobile ── */
@media (max-width: 640px) {
  .cm-hero__ladder {
    padding: 1.5rem;
  }

  .cm-stage__line {
    height: 1.5rem;
  }

  .cm-trophy-grid {
    grid-template-columns: 1fr;
  }
}
