/* ============================================
   TAMRIEL UNBOUND — ROADMAP PAGE
   Extends style.css
   ============================================ */

/* Scroll progress bar */
.rm-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 1100;
  pointer-events: none;
}
.rm-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(to right, var(--blood), var(--gold), var(--gold-glow));
  box-shadow: 0 0 12px rgba(212,184,92,0.6);
}

.nav-links a.nav-active { color: var(--gold); }
.nav-links a.nav-active::after { width: 100%; }

/* --- Hero slideshow --- */
.rm-slides { background: none; }
.rm-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.12);
  transition: opacity 2.2s ease, transform 9s ease-out;
}
.rm-slide.is-active {
  opacity: 1;
  transform: scale(1.0);
}
.rm-hero-overlay {
  background:
    linear-gradient(to bottom, rgba(8,8,15,0.55) 0%, rgba(8,8,15,0.25) 35%, rgba(8,8,15,0.55) 70%, rgba(8,8,15,1) 100%),
    radial-gradient(ellipse at center, rgba(8,8,15,0.15) 0%, rgba(8,8,15,0.65) 100%);
}
.rm-hero .hero-title {
  background: linear-gradient(180deg, #f3ead6 0%, #e8e0d0 45%, var(--gold-glow) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,0.75));
  text-shadow: none;
}
.rm-hero .hero-subtitle { color: var(--parchment); text-shadow: 0 2px 12px rgba(0,0,0,0.8); }
.rm-hero .hero-eyebrow { color: var(--gold); text-shadow: 0 2px 10px rgba(0,0,0,0.8); }

.rm-hero-caption {
  position: absolute;
  left: 2rem;
  bottom: 2.2rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: var(--parchment-dim);
  transition: opacity 0.6s ease;
}
.rm-hero-caption.is-fading { opacity: 0; }
.rm-cap-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.4rem;
  border: 1px solid rgba(200,168,75,0.45);
  background: rgba(8,8,15,0.5);
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.05em;
}
.rm-cap-name { color: var(--parchment); }

.rm-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  z-index: 3;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 1px solid rgba(200,168,75,0.45);
  border-radius: 14px;
}
.rm-scroll-cue span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--gold);
  animation: rm-cue 2s ease-in-out infinite;
}
@keyframes rm-cue {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* --- Roadmap note --- */
.rm-note {
  position: relative;
  max-width: 780px;
  margin: 3.5rem auto 0;
  padding: 1.8rem 2rem 1.8rem 4.8rem;
  background: linear-gradient(135deg, rgba(139,26,26,0.14), rgba(18,18,31,0.9));
  border: 1px solid rgba(184,46,46,0.25);
  border-left: 3px solid var(--blood-bright);
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
}
.rm-note p { font-size: 1.02rem; line-height: 1.75; color: var(--parchment); }
.rm-note strong { color: var(--gold); font-weight: 600; }
.rm-note-seal {
  position: absolute;
  left: 1.4rem;
  top: 1.8rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-weight: 900;
  color: #f3ead6;
  background: radial-gradient(circle at 35% 30%, var(--blood-bright), var(--blood) 70%);
  box-shadow: 0 0 0 3px rgba(139,26,26,0.25), 0 4px 12px rgba(0,0,0,0.5);
}

/* --- Living World --- */
.rm-living-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
}
.rm-living-card { grid-column: span 2; }
.rm-living-card:nth-child(4) { grid-column: 2 / span 2; }
.rm-card-kicker {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 1rem;
}

/* --- Chronicles --- */
.rm-chronicles {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(200,168,75,0.05), transparent 60%),
    linear-gradient(to bottom, var(--bg-deep), var(--bg-stone) 50%, var(--bg-deep));
  position: relative;
  padding-bottom: 6rem;
}
.rm-chronicles-head { padding-bottom: 3rem; }
.rm-chron-motto {
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.rm-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  max-width: 980px;
  margin: 0 auto;
}
.rm-jump a {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 92px;
  padding: 0.75rem 0.6rem;
  border: 1px solid rgba(200,168,75,0.12);
  background: rgba(18,18,31,0.7);
  border-radius: 4px;
  transition: all 0.3s ease;
}
.rm-jump span {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gold);
}
.rm-jump em {
  font-style: normal;
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--parchment-dim);
}
.rm-jump a:hover, .rm-jump a.is-current {
  border-color: var(--gold-dim);
  background: rgba(200,168,75,0.08);
  box-shadow: 0 0 20px rgba(200,168,75,0.1);
  transform: translateY(-2px);
}
.rm-jump a:hover em, .rm-jump a.is-current em { color: var(--parchment); }

.rm-timeline {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 2rem 2rem 0;
}
.rm-spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(to bottom, transparent, rgba(200,168,75,0.15) 4%, rgba(200,168,75,0.15) 96%, transparent);
}
.rm-spine-fill {
  display: block;
  width: 100%;
  height: 0;
  background: linear-gradient(to bottom, var(--gold-dim), var(--gold-glow));
  box-shadow: 0 0 14px rgba(212,184,92,0.55);
}

.rm-chapter {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-bottom: 7rem;
}
.rm-chapter:last-child { margin-bottom: 0; }
.rm-chapter .rm-media { grid-column: 1; grid-row: 1; }
.rm-chapter .rm-body { grid-column: 2; grid-row: 1; }
.rm-chapter.rm-flip .rm-media { grid-column: 2; }
.rm-chapter.rm-flip .rm-body { grid-column: 1; text-align: right; }
.rm-chapter.rm-flip .rm-list li { padding-left: 0; padding-right: 1.6rem; }
.rm-chapter.rm-flip .rm-list li::before { left: auto; right: 0; }

.rm-medallion {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gold);
  background: radial-gradient(circle at 40% 35%, #1c1c30, var(--bg-deep));
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--bg-stone), 0 0 0 7px rgba(200,168,75,0.2), 0 0 30px rgba(0,0,0,0.6);
  transition: box-shadow 0.6s ease;
}
.rm-chapter.is-in .rm-medallion {
  color: var(--bg-deep);
  background: radial-gradient(circle at 40% 35%, var(--gold-glow), var(--gold-dim));
  box-shadow: 0 0 0 6px var(--bg-stone), 0 0 0 7px rgba(200,168,75,0.5), 0 0 40px rgba(212,184,92,0.45);
}

.rm-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid rgba(200,168,75,0.18);
  box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 0 6px rgba(18,18,31,0.9), 0 0 0 7px rgba(200,168,75,0.12);
  background: var(--bg-card);
  opacity: 0;
  transform: translateX(-60px) scale(0.97);
  transition: opacity 1s ease, transform 1.1s cubic-bezier(.2,.7,.2,1), box-shadow 0.5s ease;
}
.rm-flip .rm-media { transform: translateX(60px) scale(0.97); }
.rm-chapter.is-in .rm-media { opacity: 1; transform: none; }
.rm-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.6s cubic-bezier(.2,.7,.2,1), opacity 1.8s ease;
}
.rm-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(8,8,15,0.55), transparent 45%),
    radial-gradient(ellipse at center, transparent 55%, rgba(8,8,15,0.45));
  pointer-events: none;
}
.rm-chapter:hover .rm-media img { transform: scale(1.1); }
.rm-chapter:hover .rm-media {
  box-shadow: 0 30px 70px rgba(0,0,0,0.7), 0 0 0 6px rgba(18,18,31,0.9), 0 0 0 7px rgba(200,168,75,0.35), 0 0 60px rgba(200,168,75,0.08);
}
.rm-media-duo img + img { opacity: 0; }
.rm-media-duo.show-b img + img { opacity: 1; }

.rm-body {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease 0.25s, transform 1s ease 0.25s;
}
.rm-chapter.is-in .rm-body { opacity: 1; transform: none; }
.rm-chapter-label {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.6rem;
}
.rm-chapter-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white-soft);
  margin-bottom: 0.8rem;
}
.rm-tagline {
  font-style: italic;
  font-size: 1.2rem;
  color: var(--gold-glow);
  margin-bottom: 1.4rem;
  opacity: 0.9;
}
.rm-list { list-style: none; margin-bottom: 1.4rem; }
.rm-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.65rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--parchment);
}
.rm-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  background: var(--gold-dim);
  transform: rotate(45deg);
}
.rm-road {
  display: inline-block;
  font-size: 0.98rem;
  color: var(--parchment-dim);
  padding: 0.9rem 1.2rem;
  background: rgba(200,168,75,0.05);
  border: 1px solid rgba(200,168,75,0.14);
  border-radius: 3px;
}
.rm-road strong {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-right: 0.3rem;
}

/* --- Beyond the Horizon --- */
.rm-horizon {
  position: relative;
  overflow: hidden;
  background: var(--bg-deep);
}
.rm-horizon-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, var(--bg-deep) 0%, rgba(8,8,15,0.82) 25%, rgba(8,8,15,0.82) 75%, var(--bg-deep) 100%),
    url('expansions/web/exp09-summerset-moons.jpg') center / cover no-repeat;
  background-attachment: scroll, fixed;
  opacity: 0.9;
}
.rm-horizon .section { position: relative; z-index: 1; }
.rm-horizon .section-subtitle strong { color: var(--gold); font-weight: 600; font-style: normal; }
.rm-horizon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 980px;
  margin: 0 auto;
}
.rm-horizon-card {
  position: relative;
  padding: 2.4rem 2.2rem 2.2rem 5.2rem;
  background: rgba(14,14,24,0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(200,168,75,0.12);
  border-radius: 6px;
  transition: all 0.4s ease;
}
.rm-horizon-card:hover {
  border-color: rgba(200,168,75,0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 50px rgba(200,168,75,0.06);
}
.rm-horizon-card .feature-title { margin-bottom: 0.7rem; }
.rm-horizon-rune {
  position: absolute;
  left: 1.8rem;
  top: 2.3rem;
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-dim);
  opacity: 0.7;
  text-transform: uppercase;
}

/* --- Forge --- */
.rm-forge {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.8;
  color: var(--parchment);
  margin-bottom: 1.8rem;
}
.rm-forge strong { color: var(--gold-glow); font-weight: 500; }
.rm-forge-close {
  font-style: italic;
  color: var(--parchment-dim);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

/* --- Footer notices --- */
.rm-notice { color: rgba(158,146,120,0.75); }
.rm-notice strong { color: var(--gold-dim); font-weight: 600; }
.rm-disclaimer { border-top: none; margin-top: 0; padding-top: 0; font-style: italic; }

/* --- Responsive --- */
@media (max-width: 1000px) {
  .rm-living-grid { grid-template-columns: repeat(2, 1fr); }
  .rm-living-card, .rm-living-card:nth-child(4) { grid-column: auto; }
  .rm-living-card:nth-child(5) { grid-column: 1 / -1; }

  .rm-spine { left: 2.6rem; }
  .rm-chapter, .rm-chapter.rm-flip {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-left: 4.5rem;
    margin-bottom: 5rem;
  }
  .rm-chapter .rm-media, .rm-chapter .rm-body,
  .rm-chapter.rm-flip .rm-media, .rm-chapter.rm-flip .rm-body { grid-column: 1; grid-row: auto; }
  .rm-chapter.rm-flip .rm-body { text-align: left; }
  .rm-chapter.rm-flip .rm-list li { padding-left: 1.6rem; padding-right: 0; }
  .rm-chapter.rm-flip .rm-list li::before { left: 0; right: auto; }
  .rm-medallion { left: 0.6rem; top: 0; margin: 0; width: 52px; height: 52px; font-size: 0.9rem; }
  .rm-media, .rm-flip .rm-media { transform: translateY(40px); }
}

@media (max-width: 600px) {
  .rm-living-grid, .rm-horizon-grid { grid-template-columns: 1fr; }
  .rm-living-card:nth-child(5) { grid-column: auto; }
  .rm-timeline { padding: 1rem 1rem 0; }
  .rm-spine { left: 1.85rem; }
  .rm-chapter, .rm-chapter.rm-flip { padding-left: 3rem; }
  .rm-medallion { left: 0.3rem; width: 44px; height: 44px; font-size: 0.78rem; }
  .rm-jump a { min-width: 0; flex: 1 1 28%; }
  .rm-hero-caption { display: none; }
  .rm-horizon-card { padding: 2rem 1.5rem 1.8rem 4rem; }
  .rm-horizon-rune { left: 1.3rem; top: 1.95rem; font-size: 1.2rem; }
  .rm-note { padding: 1.5rem 1.4rem 1.5rem 4rem; }
  .rm-note-seal { left: 1rem; top: 1.5rem; }
  .rm-horizon-bg { background-attachment: scroll, scroll; }
}

@media (prefers-reduced-motion: reduce) {
  .rm-slide, .rm-media, .rm-body, .rm-media img { transition: none !important; }
  .rm-scroll-cue span { animation: none; }
}
