/* =============================================================
   OliShoppy Course — Shared Stylesheet
   Brand tokens identical to the landing page.
   ============================================================= */

:root {
  --obsidian:    #050507;
  --vault:       #0E0E14;
  --vault-2:     #14141C;
  --gold:        #D4AF37;
  --gold-bright: #E8C44E;
  --gold-soft:   #8A7227;
  --chrome:      #F2F2F7;
  --line:        rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --muted:       rgba(255, 255, 255, 0.55);
  --muted-strong:rgba(255, 255, 255, 0.78);

  --display: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  --body:    'Poppins', system-ui, sans-serif;
  --mono:    'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--obsidian);
  color: var(--chrome);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 60vw 50vh at 90% -10%, rgba(212, 175, 55, 0.08), transparent 60%),
    radial-gradient(ellipse 50vw 40vh at 10% 110%, rgba(212, 175, 55, 0.04), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

/* =============================================================
   TOP BAR
   ============================================================= */
.topbar {
  border-bottom: 1px solid var(--line);
  padding: 18px 0 16px;
  position: relative;
  z-index: 2;
}
.topbar-row {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}
.topbar-mono {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  white-space: nowrap;
}
.topbar-mono .brand { color: var(--gold); }
.topbar-mono .sep   { color: var(--muted); margin: 0 14px; font-weight: 400; }
.topbar-mono .dim   { color: var(--muted); font-weight: 500; }

/* =============================================================
   BACK LINK (module pages)
   ============================================================= */
.back-link {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0 0;
  transition: color 0.2s ease;
}
.back-link:hover { color: var(--gold); }
.back-link .arrow { color: var(--gold); }

/* =============================================================
   DISPLAY HEADLINES (Lato Black 900)
   ============================================================= */
.display-headline {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--chrome);
  margin: 0 0 32px;
}
.display-headline .accent { color: var(--gold); }

.section-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
  display: inline-block;
}

/* =============================================================
   HERO (course index page)
   ============================================================= */
.hero {
  padding: 56px 0 36px;
  text-align: center;
}
.hero-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  color: var(--chrome);
}
.hero-title .accent { color: var(--gold); }
.hero-sub {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(15px, 1.7vw, 19px);
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--muted-strong);
  max-width: 720px;
  margin: 0 auto 0;
}
.hero-sub .accent { color: var(--gold); }

/* =============================================================
   PROGRESS METER
   ============================================================= */
.progress {
  max-width: 720px;
  margin: 36px auto 0;
}
.progress-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.progress-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}
.progress-label .gold { color: var(--gold); }
.progress-track {
  height: 2px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.progress-bar {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  background: var(--gold);
  width: 0%;
  transition: width 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* =============================================================
   MODULE CARDS (course index)
   ============================================================= */
.modules {
  padding: 56px 0 80px;
}
.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 700px) {
  .modules-grid { grid-template-columns: 1fr; }
}

.module-card {
  background: var(--vault);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 26px 32px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 152px;
}
.module-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--gold);
  transition: background 0.2s ease;
}
.module-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  background: var(--vault-2);
}
.module-card .num {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}
.module-card .title {
  font-family: var(--display);
  font-weight: 900;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--chrome);
}
.module-card .meta {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: auto;
}
.module-card .meta .gold { color: var(--gold); font-weight: 700; }

/* Locked state */
.module-card.locked {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.module-card.locked::before {
  background: var(--gold-soft);
}
.module-card.locked .lock {
  position: absolute;
  top: 22px; right: 22px;
  width: 18px; height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.module-card.locked .lock svg {
  width: 16px; height: 16px;
  fill: var(--gold);
}

/* Completed state — soft gold check */
.module-card .check {
  position: absolute;
  top: 22px; right: 22px;
  width: 18px; height: 18px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.module-card.completed .check {
  opacity: 1;
}
.module-card.completed .check svg {
  width: 16px; height: 16px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2.5;
}

/* =============================================================
   MODULE PAGE — wrapper
   ============================================================= */
.module-page {
  padding: 32px 0 80px;
}
.module-header {
  margin-bottom: 36px;
}
.module-header .num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
}
.module-header h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--chrome);
  margin: 0 0 14px;
}
.module-header h1 .accent { color: var(--gold); }
.module-header p {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.4;
  color: var(--muted-strong);
  margin: 0;
  max-width: 680px;
}

/* =============================================================
   VIDEO SLOT (Modules 1 & 7)
   ============================================================= */
.video-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--vault) 0%, var(--vault-2) 100%);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 24px;
}
.video-slot::before,
.video-slot::after {
  content: '';
  position: absolute;
  width: 24px; height: 24px;
  border: 1px solid var(--gold);
}
.video-slot::before {
  top: 12px; left: 12px;
  border-right: 0; border-bottom: 0;
}
.video-slot::after {
  bottom: 12px; right: 12px;
  border-left: 0; border-top: 0;
}
.video-slot .play-btn {
  width: 76px; height: 76px;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  position: relative;
}
.video-slot .play-btn::after {
  content: '';
  width: 0; height: 0;
  border-style: solid;
  border-width: 16px 0 16px 26px;
  border-color: transparent transparent transparent var(--obsidian);
  margin-left: 6px;
}
.video-slot .placeholder-mono {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.36em;
  color: var(--gold);
  text-transform: uppercase;
}

/* =============================================================
   GOOGLE DOC EMBED FRAME (Modules 2-5)
   ============================================================= */
.doc-frame {
  position: relative;
  width: 100%;
  background: var(--vault);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 12px;
}
.doc-frame::before,
.doc-frame::after {
  content: '';
  position: absolute;
  width: 24px; height: 24px;
  border: 1px solid var(--gold);
  z-index: 2;
  pointer-events: none;
}
.doc-frame::before {
  top: 0; left: 0;
  border-right: 0; border-bottom: 0;
}
.doc-frame::after {
  bottom: 0; right: 0;
  border-left: 0; border-top: 0;
}
.doc-frame iframe {
  display: block;
  width: 100%;
  height: 80vh;
  min-height: 600px;
  border: 0;
  background: #fff;
  border-radius: 2px;
}
.doc-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.doc-meta a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}
.doc-meta a:hover { border-color: var(--gold); }

/* Coming-soon doc state */
.doc-coming-soon {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--vault) 0%, var(--vault-2) 100%);
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px;
  text-align: center;
}
.doc-coming-soon .icon {
  width: 48px; height: 48px;
  border: 1.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
}
.doc-coming-soon .label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.36em;
  color: var(--gold);
  text-transform: uppercase;
}
.doc-coming-soon .sub {
  font-family: var(--body);
  font-size: 13px;
  color: var(--muted);
  max-width: 380px;
}

/* =============================================================
   QUIZ
   ============================================================= */
.quiz-intro {
  background: var(--vault);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 36px;
}
.quiz-intro .title {
  font-family: var(--display);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--chrome);
  margin: 0 0 6px;
}
.quiz-intro .body {
  font-size: 14px;
  color: var(--muted-strong);
  margin: 0;
}
.quiz-intro .body .gold { color: var(--gold); font-weight: 600; }

.quiz-form { margin: 0; padding: 0; }

.quiz-question {
  background: var(--vault);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px;
  margin-bottom: 14px;
  position: relative;
}
.quiz-question .q-num {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.quiz-question .q-text {
  font-family: var(--display);
  font-weight: 900;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--chrome);
  margin: 0 0 22px;
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  background: var(--obsidian);
}
.quiz-option:hover {
  border-color: var(--line-strong);
  background: var(--vault-2);
}
.quiz-option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border: 1.5px solid var(--muted);
  border-radius: 50%;
  margin: 3px 0 0;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.15s ease;
}
.quiz-option input[type="radio"]:checked {
  border-color: var(--gold);
}
.quiz-option input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.quiz-option .opt-letter {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  margin-right: 4px;
}
.quiz-option .opt-text {
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.45;
  color: var(--chrome);
  flex: 1;
}
.quiz-option:has(input:checked) {
  border-color: var(--gold);
  background: var(--vault-2);
}

.quiz-submit-row {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--gold);
  color: var(--obsidian);
  font-family: var(--display);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 16px 32px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-gold:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
}
.btn-gold:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}
.btn-gold .arrow { font-weight: 700; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: transparent;
  color: var(--gold);
  font-family: var(--display);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--obsidian);
}

.quiz-result {
  text-align: center;
  padding: 28px 28px;
  margin-top: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--vault);
  display: none;
}
.quiz-result.show { display: block; }
.quiz-result.fail { border-color: rgba(255, 90, 90, 0.4); }
.quiz-result.pass { border-color: var(--gold); }

.quiz-result .score {
  font-family: var(--display);
  font-weight: 900;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}
.quiz-result.fail .score { color: #ff7676; }
.quiz-result.pass .score { color: var(--gold); }

.quiz-result .msg {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  color: var(--muted-strong);
  margin-bottom: 22px;
}
.quiz-result.pass .msg { color: var(--chrome); }

/* =============================================================
   FOOTER NAV (module pages)
   ============================================================= */
.module-footer-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  gap: 16px;
}
.nav-link {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.nav-link:hover {
  color: var(--gold);
  border-color: var(--gold);
}
.nav-link.disabled {
  opacity: 0.3;
  pointer-events: none;
}
.nav-link .arrow { color: var(--gold); }
.nav-link.next { margin-left: auto; }

/* =============================================================
   SECTION DIVIDER + FOOTER
   ============================================================= */
.divider {
  height: 1px;
  background: var(--line);
  margin: 0;
}
footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 32px;
  position: relative;
  z-index: 1;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-row .gold { color: var(--gold); font-weight: 700; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .topbar-row { padding: 0 20px; }
  .topbar-mono { font-size: 9px; letter-spacing: 0.22em; }
  .topbar-mono .sep { margin: 0 8px; }
  .module-card { padding: 22px 22px 22px 28px; }
  .module-card .title { font-size: 19px; }
  .quiz-question { padding: 22px 20px; }
  .quiz-question .q-text { font-size: 17px; }
  .quiz-option { padding: 12px 14px; }
  .footer-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .module-footer-nav { flex-direction: column; align-items: stretch; }
  .module-footer-nav .nav-link { justify-content: center; }
  .module-footer-nav .nav-link.next { margin-left: 0; }
  .video-slot .play-btn { width: 60px; height: 60px; }
  .video-slot .play-btn::after {
    border-width: 13px 0 13px 20px;
  }
  .doc-frame iframe { height: 70vh; min-height: 500px; }
}
