/* Sunucu yol haritası — cinematic season journey */

.page-roadmap-main {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 64px;
  position: relative;
}

.page-roadmap-main::before {
  content: "";
  position: absolute;
  inset: -40px -10% auto;
  height: 280px;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 80% at 20% 0%, rgba(255, 170, 60, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 70% at 80% 10%, rgba(52, 211, 153, 0.08), transparent 50%);
  z-index: 0;
}

.page-roadmap-main > * { position: relative; z-index: 1; }

/* Empty */
.rm-empty-stage {
  text-align: center;
  padding: 64px 24px;
  border-radius: 24px;
  border: 1px solid rgba(255, 190, 92, 0.18);
  background: linear-gradient(160deg, rgba(10, 12, 16, 0.95), rgba(24, 16, 10, 0.9));
  position: relative;
  overflow: hidden;
}
.rm-empty-stage__glow {
  position: absolute;
  inset: -40% 20% auto;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 180, 70, 0.25), transparent 70%);
  filter: blur(20px);
}
.rm-empty-stage__title {
  margin: 0 0 8px;
  font-family: Cinzel, "Times New Roman", serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: #fde68a;
}
.rm-empty-stage__text { margin: 0; color: var(--muted, #94a3b8); }

/* Season header + path */
.rm-season {
  padding: 22px 22px 8px;
  border-radius: 22px;
  border: 1px solid rgba(255, 190, 92, 0.2);
  background:
    linear-gradient(145deg, rgba(8, 10, 14, 0.96), rgba(22, 14, 8, 0.92));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.rm-season__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 22px;
}

.rm-season__eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fbbf24;
  margin-bottom: 4px;
}

.rm-season__title {
  margin: 0;
  font-family: Cinzel, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  color: #fff7ed;
}

.rm-season__meters { display: flex; flex-wrap: wrap; gap: 10px; }

.rm-meter {
  min-width: 88px;
  padding: 10px 14px;
  border-radius: 14px;
  text-align: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.rm-meter__val {
  display: block;
  font-family: Cinzel, serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fde68a;
  line-height: 1.1;
}
.rm-meter--open .rm-meter__val { color: #6ee7b7; }
.rm-meter__lbl {
  display: block;
  margin-top: 2px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

/* Path nodes */
.rm-path {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 18px 4px 22px;
  position: relative;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.rm-path__rail {
  position: absolute;
  left: 40px;
  right: 40px;
  top: 46px;
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.15);
  overflow: hidden;
  pointer-events: none;
}
.rm-path__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f59e0b, #34d399);
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.45);
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.rm-node {
  flex: 0 0 auto;
  width: min(200px, 72vw);
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(12px);
  animation: rmNodeIn 0.55s ease forwards;
  animation-delay: calc(var(--rm-i, 0) * 0.07s);
}
@keyframes rmNodeIn {
  to { opacity: 1; transform: translateY(0); }
}

.rm-node__orb {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  background: radial-gradient(circle at 35% 30%, #3a2a18, #0f1218 70%);
  border: 2px solid rgba(255, 190, 92, 0.35);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  z-index: 1;
}
.rm-node__core {
  font-family: Cinzel, serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fde68a;
}
.rm-node:hover .rm-node__orb {
  transform: scale(1.06);
  border-color: rgba(255, 216, 138, 0.7);
}
.rm-node.is-on .rm-node__orb {
  border-color: #fbbf24;
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.18), 0 0 32px rgba(251, 191, 36, 0.35);
}
.rm-node--active .rm-node__orb {
  border-color: #34d399;
  box-shadow: 0 0 28px rgba(52, 211, 153, 0.4);
}
.rm-node--active .rm-node__core { color: #6ee7b7; }
.rm-node--done { opacity: 0.78; }
.rm-node--done .rm-node__orb { border-color: rgba(148, 163, 184, 0.35); }

.rm-node__meta {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  width: 100%;
}
.rm-node__status {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
}
.rm-node.is-on .rm-node__status { color: #fbbf24; }
.rm-node--active .rm-node__status { color: #6ee7b7; }
.rm-node__name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #e2e8f0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rm-node__count {
  font-size: 0.68rem;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

/* Focus week */
.rm-focus {
  border-radius: 24px;
  border: 1px solid rgba(255, 190, 92, 0.22);
  background:
    radial-gradient(ellipse 50% 60% at 100% 0%, rgba(251, 191, 36, 0.08), transparent 50%),
    linear-gradient(165deg, rgba(8, 10, 14, 0.97), rgba(20, 12, 8, 0.94));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  animation: rmFocusIn 0.6s ease 0.15s forwards;
}
@keyframes rmFocusIn {
  to { opacity: 1; transform: translateY(0); }
}
.rm-focus--active {
  border-color: rgba(52, 211, 153, 0.35);
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.12), 0 28px 70px rgba(0, 0, 0, 0.5);
}

.rm-focus__head {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
  padding: 24px 24px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rm-focus__badge {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.2), rgba(0, 0, 0, 0.4));
  border: 1px solid rgba(251, 191, 36, 0.35);
  flex-shrink: 0;
}
.rm-focus--active .rm-focus__badge {
  background: linear-gradient(145deg, rgba(52, 211, 153, 0.22), rgba(0, 0, 0, 0.4));
  border-color: rgba(52, 211, 153, 0.4);
}
.rm-focus__week-no {
  font-family: Cinzel, serif;
  font-size: 2rem;
  font-weight: 800;
  color: #fde68a;
  line-height: 1;
}
.rm-focus--active .rm-focus__week-no { color: #6ee7b7; }
.rm-focus__week-lbl {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
}

.rm-focus__copy { flex: 1 1 240px; min-width: 0; }
.rm-focus__eyebrow {
  margin: 0 0 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fbbf24;
}
.rm-focus__title {
  margin: 0;
  font-family: Cinzel, serif;
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  color: #fff7ed;
}
.rm-focus__summary {
  margin: 10px 0 0;
  max-width: 40rem;
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.55;
}

.rm-focus__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}
.rm-leg {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.rm-leg--open { color: #6ee7b7; border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.08); }
.rm-leg--soon { color: #93c5fd; border-color: rgba(96, 165, 250, 0.35); background: rgba(96, 165, 250, 0.08); }
.rm-leg--locked { color: #fca5a5; border-color: rgba(248, 113, 113, 0.3); background: rgba(248, 113, 113, 0.06); }

/* Boards */
.rm-boards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}
@media (max-width: 980px) {
  .rm-boards { grid-template-columns: 1fr; }
}

.rm-board {
  border-radius: 18px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.28);
  min-height: 180px;
}
.rm-board--available {
  border-color: rgba(52, 211, 153, 0.25);
  background: linear-gradient(180deg, rgba(6, 45, 32, 0.45), rgba(0, 0, 0, 0.25));
}
.rm-board--soon {
  border-color: rgba(96, 165, 250, 0.25);
  background: linear-gradient(180deg, rgba(12, 30, 55, 0.45), rgba(0, 0, 0, 0.25));
}
.rm-board--locked {
  border-color: rgba(248, 113, 113, 0.2);
  background: linear-gradient(180deg, rgba(40, 12, 14, 0.35), rgba(0, 0, 0, 0.25));
}

.rm-board__head {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.rm-board__icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
}
.rm-board--available .rm-board__icon { color: #6ee7b7; background: rgba(52, 211, 153, 0.12); }
.rm-board--soon .rm-board__icon { color: #93c5fd; background: rgba(96, 165, 250, 0.12); }
.rm-board--locked .rm-board__icon { color: #fca5a5; background: rgba(248, 113, 113, 0.1); }
.rm-board__title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f1f5f9;
}
.rm-board__hint {
  margin: 2px 0 0;
  font-size: 0.72rem;
  color: #64748b;
}
.rm-board__empty {
  margin: 0;
  padding: 18px 8px;
  text-align: center;
  color: #64748b;
  font-size: 0.85rem;
}

.rm-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rm-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  opacity: 0;
  transform: translateY(8px);
  animation: rmCardIn 0.45s ease forwards;
  animation-delay: calc(0.2s + var(--rm-j, 0) * 0.05s);
}
@keyframes rmCardIn {
  to { opacity: 1; transform: translateY(0); }
}
.rm-card--available {
  border-color: rgba(52, 211, 153, 0.22);
  background: rgba(52, 211, 153, 0.06);
}
.rm-card--soon {
  border-color: rgba(96, 165, 250, 0.22);
  background: rgba(96, 165, 250, 0.06);
}
.rm-card--locked { opacity: 0.85; }

.rm-card__mark {
  width: 14px;
  height: 14px;
  border-radius: 5px;
  flex-shrink: 0;
}
.rm-card--available .rm-card__mark {
  background: linear-gradient(135deg, #34d399, #059669);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.5);
}
.rm-card--soon .rm-card__mark {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.45);
  animation: rmPulse 1.8s ease-in-out infinite;
}
@keyframes rmPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(96, 165, 250, 0.35); }
  50% { box-shadow: 0 0 18px rgba(96, 165, 250, 0.7); }
}
.rm-card--locked .rm-card__mark {
  border: 2px solid rgba(248, 113, 113, 0.5);
  background: rgba(248, 113, 113, 0.08);
}

.rm-card__name {
  display: block;
  font-size: 0.9rem;
  color: #f8fafc;
  font-weight: 700;
}
.rm-card__note {
  display: block;
  margin-top: 3px;
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.35;
}
.rm-card__state {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  white-space: nowrap;
}
.rm-card--available .rm-card__state { color: #6ee7b7; }
.rm-card--soon .rm-card__state { color: #93c5fd; }
.rm-card--locked .rm-card__state { color: #fca5a5; }

/* Season strip */
.rm-strip { margin-top: 4px; }
.rm-strip__title {
  margin: 0 0 12px;
  font-family: Cinzel, serif;
  font-size: 1.05rem;
  color: #fde68a;
}
.rm-strip__track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.rm-strip-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(255, 190, 92, 0.14);
  background: linear-gradient(160deg, rgba(8, 10, 14, 0.92), rgba(18, 12, 10, 0.88));
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.rm-strip-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 190, 92, 0.4);
}
.rm-strip-card.is-on {
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.15);
}
.rm-strip-card__no {
  font-family: Cinzel, serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fbbf24;
  line-height: 1;
}
.rm-strip-card--active .rm-strip-card__no { color: #6ee7b7; }
.rm-strip-card__title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #e2e8f0;
  line-height: 1.35;
  min-height: 2.6em;
}
.rm-strip-card__bars {
  display: flex;
  gap: 4px;
  height: 6px;
}
.rm-strip-card__bars i {
  flex: calc(var(--n, 0) + 0.15);
  border-radius: 999px;
  min-width: 4px;
  background: rgba(148, 163, 184, 0.2);
}
.rm-strip-card__bars i.is-open { background: #34d399; }
.rm-strip-card__bars i.is-soon { background: #60a5fa; }
.rm-strip-card__bars i.is-locked { background: #f87171; }

@media (prefers-reduced-motion: reduce) {
  .rm-node,
  .rm-focus,
  .rm-card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .rm-card--soon .rm-card__mark { animation: none; }
}
