/* ============================================================
   Mythic Creations LLC — shared site styles
   Used by: /index.html and every page in /*.html
   ============================================================ */

:root {
  --mc-gold:        #c9a84c;
  --mc-gold-soft:   rgba(201, 168, 76, 0.30);
  --mc-gold-dim:    #8a7a4a;
  --mc-bg:          #000000;
  --mc-text-dim:    #c9a84c;
  --mc-nav-h:       52px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', Georgia, serif;
  background: var(--mc-bg);
  color: var(--mc-gold);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============================================================
   Page-wide fading starfield (lives behind everything)
   ============================================================ */
.mc-starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   Top navigation bar
   ============================================================ */
.mc-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--mc-nav-h);
  display: flex;
  align-items: stretch;
  padding: 0 24px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--mc-gold-soft);
  z-index: 900;
  font-family: Georgia, 'Palatino Linotype', serif;
}

/* Back arrow (left of brand) */
.mc-nav-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: var(--mc-nav-h);
  background: transparent;
  border: 0;
  color: var(--mc-gold);
  cursor: pointer;
  margin-right: 6px;
  transition: color 0.2s, transform 0.2s, opacity 0.2s;
  opacity: 0.8;
}
.mc-nav-back:hover {
  color: #f4d987;
  transform: translateX(-2px);
  opacity: 1;
}
.mc-nav-back.is-disabled {
  opacity: 0.25;
  cursor: default;
  pointer-events: none;
}

/* Active page indicator */
.mc-nav-link.is-current {
  color: #f4d987;
  text-shadow: 0 0 12px rgba(201, 168, 76, 0.5);
}
.mc-nav-link.is-current::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 6px;
  height: 1px;
  background: var(--mc-gold);
  opacity: 0.7;
}
.mc-nav-link { position: relative; }

/* Hamburger toggle (mobile only) */
.mc-nav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px; height: var(--mc-nav-h);
  margin-left: auto;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--mc-gold);
}
.mc-nav-burger .bars { display: inline-block; width: 22px; height: 16px; position: relative; }
.mc-nav-burger .bars::before,
.mc-nav-burger .bars::after,
.mc-nav-burger .bars span {
  content: ""; position: absolute; left: 0; right: 0; height: 1.6px;
  background: var(--mc-gold); transition: transform .25s ease, top .25s ease, opacity .2s ease;
}
.mc-nav-burger .bars::before { top: 0; }
.mc-nav-burger .bars span    { top: 7px; }
.mc-nav-burger .bars::after  { top: 14px; }
.mc-nav.is-mobile-open .mc-nav-burger .bars::before { top: 7px; transform: rotate(45deg); }
.mc-nav.is-mobile-open .mc-nav-burger .bars::after  { top: 7px; transform: rotate(-45deg); }
.mc-nav.is-mobile-open .mc-nav-burger .bars span    { opacity: 0; }

.mc-nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--mc-gold);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-right: 20px;
  white-space: nowrap;
  transition: text-shadow 0.25s ease;
}
.mc-nav-brand:hover { text-shadow: 0 0 12px var(--mc-gold-soft); }
.mc-nav-brand .mark {
  font-size: 1rem;
  color: var(--mc-gold);
}

/* "Watch intro again" pill button (sits right of the brand mark) */
.mc-nav-replay {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  align-self: center;
  padding: 0 12px;
  margin-right: 14px;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.45);
  border-radius: 999px;
  color: var(--mc-gold);
  font-family: inherit;
  font-size: 0.7rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.mc-nav-replay:hover,
.mc-nav-replay:focus-visible {
  background: rgba(201, 168, 76, 0.18);
  border-color: var(--mc-gold);
  color: #f4d987;
  transform: translateY(-1px);
  box-shadow: 0 0 14px rgba(201, 168, 76, 0.35);
  outline: none;
}
.mc-nav-replay .replay-icon { font-size: 0.95rem; line-height: 1; }
.mc-nav-replay .replay-label { line-height: 1; }
@media (max-width: 1180px) {
  .mc-nav-replay .replay-label { display: none; }
  .mc-nav-replay { padding: 0 10px; margin-right: 8px; }
}

.mc-nav-list {
  display: flex;
  list-style: none;
  align-items: stretch;
  gap: 4px;
  flex: 1;
}

.mc-nav-item {
  position: relative;
  display: flex;
  align-items: stretch;
}

.mc-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  height: var(--mc-nav-h);
  background: transparent;
  border: 0;
  color: var(--mc-gold);
  font-family: inherit;
  font-size: 0.74rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, text-shadow 0.2s ease;
}
.mc-nav-link:hover,
.mc-nav-item.is-open > .mc-nav-link {
  color: #f4d987;
  background: rgba(201, 168, 76, 0.08);
  text-shadow: 0 0 10px rgba(201, 168, 76, 0.45);
}
.mc-nav-link .caret { font-size: 0.7rem; opacity: 0.7; }

/* ---------- dropdown ---------- */
.mc-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  list-style: none;
  background: rgba(8, 8, 8, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--mc-gold-soft);
  border-top: none;
  padding: 6px 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6),
              0 0 25px rgba(201, 168, 76, 0.08);
}
.mc-nav-item.has-dropdown:hover > .mc-dropdown,
.mc-nav-item.is-open > .mc-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mc-dropdown li { position: relative; }

.mc-dropdown a,
.mc-dropdown > li > .mc-sub-toggle {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 11px 18px;
  color: var(--mc-gold);
  background: transparent;
  border: 0;
  text-align: left;
  font-family: inherit;
  font-size: 0.88rem;
  letter-spacing: 1.5px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, padding-left 0.18s ease;
}
.mc-dropdown a:hover,
.mc-dropdown > li > .mc-sub-toggle:hover,
.mc-dropdown li.is-open > .mc-sub-toggle {
  background: rgba(201, 168, 76, 0.10);
  color: #f4d987;
  padding-left: 22px;
}
.mc-dropdown .dropdown-sub {
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: var(--mc-gold-dim);
  font-style: italic;
  text-transform: none;
}
.mc-dropdown .caret-right { font-size: 0.7rem; opacity: 0.6; }

/* ---------- sub-dropdown (Arkive ▸) ---------- */
.mc-subdropdown {
  position: absolute;
  top: -1px;
  left: 100%;
  min-width: 240px;
  list-style: none;
  background: rgba(8, 8, 8, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--mc-gold-soft);
  padding: 6px 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}
.mc-dropdown li.has-sub:hover > .mc-subdropdown,
.mc-dropdown li.has-sub.is-open > .mc-subdropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* ---------- mobile / narrow ---------- */
@media (max-width: 820px) {
  .mc-nav { padding: 0 12px; }
  .mc-nav-brand { font-size: 0.78rem; letter-spacing: 2px; margin-right: 12px; }
  .mc-nav-burger { display: inline-flex; }
  .mc-nav-list {
    position: fixed;
    top: var(--mc-nav-h); left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--mc-gold-soft);
    padding: 6px 0;
    max-height: calc(100vh - var(--mc-nav-h));
    overflow-y: auto;
    gap: 0;
  }
  .mc-nav.is-mobile-open .mc-nav-list { display: flex; }
  .mc-nav-item { width: 100%; flex-direction: column; }
  .mc-nav-link {
    width: 100%;
    height: 44px;
    padding: 0 18px;
    justify-content: space-between;
    font-size: 0.85rem;
  }
  .mc-dropdown {
    position: static;
    width: 100%;
    min-width: 0;
    transform: none;
    background: rgba(255, 255, 255, 0.02);
    border: 0;
    border-top: 1px dashed rgba(201,168,76,0.18);
    box-shadow: none;
    padding: 4px 0;
    opacity: 1; visibility: visible;
    display: none;
  }
  .mc-nav-item.is-open > .mc-dropdown { display: block; }
  .mc-subdropdown {
    position: static;
    left: 0; top: 0;
    transform: none;
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: none;
    opacity: 1; visibility: visible;
    display: none;
    padding: 2px 0 2px 12px;
  }
  .has-sub.is-open > .mc-subdropdown { display: block; }
  .mc-dropdown a, .mc-dropdown > li > .mc-sub-toggle { padding-left: 28px; }
}
@media (max-width: 560px) {
  .mc-nav-brand .brand-text { display: none; }
}

/* ============================================================
   Generic page shell used by sub-pages
   ============================================================ */
.mc-page {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  padding: calc(var(--mc-nav-h) + 60px) 24px 80px;
  max-width: 900px;
  margin: 0 auto;
}
.mc-page h1 {
  font-family: Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: 4px;
  color: var(--mc-gold);
  margin-bottom: 8px;
  text-shadow: 0 0 25px rgba(201, 168, 76, 0.18);
}
.mc-page .eyebrow {
  font-size: 0.75rem;
  letter-spacing: 4px;
  color: var(--mc-gold-dim);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.mc-page .lede {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #d8c98a;
  max-width: 720px;
  margin-bottom: 32px;
}
.mc-page .placeholder-card {
  border: 1px solid var(--mc-gold-soft);
  border-radius: 14px;
  padding: 28px 28px;
  background: rgba(201, 168, 76, 0.03);
  backdrop-filter: blur(2px);
}
.mc-page .placeholder-card h3 {
  font-family: Georgia, serif;
  font-size: 1.05rem;
  letter-spacing: 2px;
  color: var(--mc-gold);
  margin-bottom: 8px;
}
.mc-page .placeholder-card p {
  color: var(--mc-gold-dim);
  font-size: 0.92rem;
  line-height: 1.6;
}
.mc-page a.back-home {
  display: inline-block;
  margin-top: 36px;
  font-size: 0.78rem;
  letter-spacing: 3px;
  color: var(--mc-gold);
  text-decoration: none;
  border: 1px solid var(--mc-gold-soft);
  padding: 10px 18px;
  border-radius: 999px;
  transition: all 0.25s ease;
  text-transform: uppercase;
}
.mc-page a.back-home:hover {
  background: rgba(201, 168, 76, 0.08);
  border-color: var(--mc-gold);
  box-shadow: 0 0 18px rgba(201, 168, 76, 0.18);
}
