/* ============================================
   EOTG — Inner Pages Stylesheet
   Applied on lore, factions, characters, etc.
   ============================================ */

/* ─── PAGE LAYOUT ─── */
.inner-main {
  position: relative;
  z-index: 1;
  padding: calc(var(--nav-h) + 4rem) 6vw 6rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ─── PAGE HEADER ─── */
.page-header {
  max-width: 720px;
  margin-bottom: 3.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.page-pre-title {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--col-gold);
  margin-bottom: 0.75rem;
  animation: fadeSlideUp 0.6s ease both;
}
.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--col-white);
  letter-spacing: 0.04em;
  margin-bottom: 0.8rem;
  animation: fadeSlideUp 0.6s ease 0.1s both;
}
.page-subtitle {
  font-size: 0.95rem;
  color: var(--col-mist);
  line-height: 1.7;
  animation: fadeSlideUp 0.6s ease 0.2s both;
}
.page-divider {
  margin-top: 1.5rem;
  height: 1px;
  width: 100%;
  max-width: 300px;
  background: linear-gradient(to right, transparent, rgba(79,184,200,0.5), transparent);
  animation: fadeSlideUp 0.6s ease 0.3s both;
}

/* ─── TIMELINE ─── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 820px;
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Marker column */
.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  padding-top: 0.4rem;
}
.marker-dot {
  width: 14px; height: 14px;
  border: 2px solid var(--col-teal);
  border-radius: 50%;
  background: var(--bg-void);
  box-shadow: 0 0 10px rgba(79,184,200,0.5);
  position: relative;
  z-index: 1;
}
.marker-line {
  width: 1px;
  flex: 1;
  background: linear-gradient(to bottom, rgba(79,184,200,0.3), rgba(79,184,200,0.05));
  margin-top: 4px;
}

/* Card */
.timeline-card {
  background: var(--bg-card);
  border: 1px solid rgba(79,184,200,0.1);
  border-radius: 10px;
  padding: 1.5rem 1.8rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.timeline-card:hover {
  border-color: rgba(79,184,200,0.3);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3), var(--glow-teal);
}

.tc-year {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--col-gold);
  margin-bottom: 0.5rem;
}
.tc-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--col-white);
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}
.tc-text {
  font-size: 0.88rem;
  color: var(--col-mist);
  line-height: 1.75;
  margin-bottom: 1rem;
}

/* Tags */
.tc-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  background: rgba(79,184,200,0.1);
  border: 1px solid rgba(79,184,200,0.2);
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--col-teal2);
  font-weight: 600;
}
.tag.tag-red {
  background: rgba(180,60,60,0.15);
  border-color: rgba(200,80,80,0.25);
  color: #e08080;
}
.tag.tag-gold {
  background: rgba(200,168,75,0.12);
  border-color: rgba(200,168,75,0.25);
  color: var(--col-amber);
}

/* ─── FACTIONS GRID ─── */
.factions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 1100px;
}

.faction-card {
  background: var(--bg-card);
  border: 1px solid rgba(79,184,200,0.12);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: default;
}
.faction-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  border-color: rgba(79,184,200,0.3);
}

.faction-banner {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}
.faction-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, var(--bg-card) 100%);
}

.faction-banner-rep { background: linear-gradient(135deg, #0e2240, #1a3d70); }
.faction-banner-cis { background: linear-gradient(135deg, #1a0e2a, #3a1060); }
.faction-banner-mand{ background: linear-gradient(135deg, #1c1200, #3a2800); }
.faction-banner-hutt{ background: linear-gradient(135deg, #0e1a08, #1c380e); }

.faction-body { padding: 1.2rem 1.5rem 1.5rem; }
.faction-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--col-white);
  margin-bottom: 0.5rem;
  letter-spacing: 0.06em;
}
.faction-desc {
  font-size: 0.83rem;
  color: var(--col-dim);
  line-height: 1.65;
}

/* ─── CHARACTERS GRID ─── */
.chars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  width: 100%;
  max-width: 1100px;
}

.char-card {
  background: var(--bg-card);
  border: 1px solid rgba(79,184,200,0.1);
  border-radius: 10px;
  padding: 1.5rem 1.2rem 1.2rem;
  backdrop-filter: blur(10px);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}
.char-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4), var(--glow-teal);
}

.char-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--col-navy), var(--col-bg-deep));
  border: 2px solid rgba(79,184,200,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1rem;
  box-shadow: 0 0 20px rgba(79,184,200,0.15);
}

.char-name {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--col-white);
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}
.char-role {
  font-size: 0.75rem;
  color: var(--col-teal);
  font-weight: 500;
  margin-bottom: 0.6rem;
}
.char-faction {
  font-size: 0.68rem;
  color: var(--col-dim);
  letter-spacing: 0.08em;
}

/* ─── TIMELINE OBSERVER ─── */
/* Applied by nav.js observer */

/* ─── RESPONSIVE ─── */
@media (max-width: 600px) {
  .timeline-item { gap: 1rem; }
  .timeline-card { padding: 1rem 1.2rem; }
  .factions-grid { grid-template-columns: 1fr; }
  .chars-grid { grid-template-columns: repeat(2, 1fr); }
}
