/* OptionEdge Academy — Course & Player Styles */

/* ── COURSE LANDING ──────────────────────────────────────────────────────── */

.course-hero {
    background: var(--navy-mid);
    border-bottom: 1px solid var(--border);
    padding: 60px 24px 52px;
    text-align: center;
    position: relative; overflow: hidden;
    margin-top: var(--header-h);
}
.course-hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 70% 140% at 50% 110%, rgba(201,168,76,0.09), transparent);
    pointer-events: none;
}
.course-hero::after {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(201,168,76,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201,168,76,0.025) 1px, transparent 1px);
    background-size: 60px 60px; pointer-events: none;
}
.course-hero-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.course-hero .eyebrow {
    font-family: 'DM Mono', monospace; font-size: 0.62rem;
    letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.course-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 500;
    color: #f5f0e8; line-height: 1.15; margin-bottom: 14px;
}
.course-hero h1 em { color: var(--gold-light); font-style: italic; }
.course-hero p { font-size: 1rem; color: var(--text-sec); margin-bottom: 28px; line-height: 1.75; }
.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy); font-size: 0.88rem; font-weight: 700;
    padding: 13px 30px; border-radius: 50px;
    text-decoration: none; letter-spacing: 0.04em; transition: opacity 0.2s;
    border: none; cursor: pointer;
}
.btn-primary:hover { opacity: 0.9; }
.btn-ghost {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent;
    color: var(--text-sec); font-size: 0.88rem; font-weight: 400;
    padding: 13px 24px; border-radius: 50px; border: 1px solid var(--border);
    text-decoration: none; transition: all 0.2s; cursor: pointer;
}
.btn-ghost:hover { border-color: var(--gold-border); color: var(--gold-light); }

/* Profiler */
.profiler-section {
    max-width: 800px; margin: 52px auto 0; padding: 0 24px;
    display: none;
}
.profiler-section.active { display: block; }
.profiler-card {
    background: var(--navy-mid); border: 1px solid var(--border);
    border-radius: 14px; padding: 36px 40px;
}
.profiler-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem; font-weight: 500; color: #f5f0e8; margin-bottom: 6px;
}
.profiler-card .sub { font-size: 0.88rem; color: var(--text-sec); margin-bottom: 28px; }
.profiler-step { display: none; }
.profiler-step.active { display: block; }
.pq-question { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 18px; }
.pq-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pq-opt {
    background: var(--navy-light); border: 1px solid var(--border);
    border-radius: 8px; padding: 14px 18px; cursor: pointer;
    text-align: left; font-size: 0.88rem; color: var(--text-sec);
    transition: all 0.2s;
}
.pq-opt:hover { border-color: var(--gold-border); color: var(--gold-light); }
.profiler-progress { display: flex; gap: 6px; margin-bottom: 24px; }
.pp-dot { flex: 1; height: 3px; background: var(--border); border-radius: 2px; transition: background 0.2s; }
.pp-dot.done { background: var(--gold); }

/* Track cards */
.tracks-section { max-width: 1100px; margin: 0 auto; padding: 52px 24px; }
.tracks-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.track-card {
    background: var(--navy-mid); border: 1px solid var(--border);
    border-radius: 14px; overflow: hidden;
    display: flex; flex-direction: column;
    transition: border-color 0.2s, transform 0.2s;
}
.track-card:hover { transform: translateY(-3px); border-color: var(--gold-border); }
.track-header {
    padding: 26px 28px 20px;
    border-bottom: 1px solid var(--border-sub);
    display: flex; align-items: flex-start; gap: 14px;
}
.track-icon { font-size: 2rem; flex-shrink: 0; }
.track-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem; font-weight: 500; color: #f5f0e8; margin-bottom: 4px;
}
.track-header p { font-size: 0.8rem; color: var(--text-sec); }
.track-chapters { padding: 16px 28px; flex: 1; }
.track-ch-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 7px 0; border-bottom: 1px solid var(--border-sub);
    font-size: 0.83rem; color: var(--text-sec);
}
.track-ch-item:last-child { border-bottom: none; }
.track-ch-item i { font-size: 0.7rem; margin-right: 6px; }
.ch-free { color: var(--green); font-size: 0.65rem; font-family: 'DM Mono', monospace; letter-spacing: 0.1em; text-transform: uppercase; }
.ch-pro  { color: var(--gold);  font-size: 0.65rem; font-family: 'DM Mono', monospace; letter-spacing: 0.1em; text-transform: uppercase; }
.track-footer { padding: 20px 28px; }
.track-start-btn {
    display: block; text-align: center;
    padding: 11px; border-radius: 8px;
    font-size: 0.85rem; font-weight: 600; text-decoration: none;
    transition: opacity 0.2s;
}
.track-start-btn:hover { opacity: 0.9; }
.track-progress-bar {
    height: 3px; background: var(--border); border-radius: 2px;
    margin-bottom: 12px; overflow: hidden;
}
.track-progress-fill { height: 100%; background: var(--gold); border-radius: 2px; transition: width 0.5s; }

/* Pricing section */
.pricing-section { max-width: 900px; margin: 0 auto; padding: 0 24px 80px; }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pricing-card {
    background: var(--navy-mid); border: 1px solid var(--border);
    border-radius: 14px; padding: 32px 30px;
}
.pricing-card.featured { border-color: var(--gold-border); position: relative; }
.pricing-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy); font-size: 0.65rem; font-weight: 700;
    letter-spacing: 0.15em; text-transform: uppercase;
    padding: 4px 14px; border-radius: 50px;
}
.pricing-tier {
    font-family: 'DM Mono', monospace; font-size: 0.6rem;
    letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px;
}
.pricing-price { font-family: 'Playfair Display', serif; font-size: 2.5rem; font-weight: 500; color: #f5f0e8; margin-bottom: 4px; }
.pricing-price span { font-size: 1rem; color: var(--text-sec); }
.pricing-period { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 22px; }
.pricing-features { list-style: none; padding: 0; margin: 0 0 24px; }
.pricing-features li {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 0.88rem; color: var(--text-sec); padding: 7px 0;
    border-bottom: 1px solid var(--border-sub);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li i { color: var(--green); font-size: 0.75rem; margin-top: 3px; flex-shrink: 0; }
.pricing-features li .no { color: var(--text-muted); }
.pricing-features li .no i { color: var(--text-muted); }

/* ── PLAYER ──────────────────────────────────────────────────────────────── */

.player-header {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: rgba(12,30,58,0.97); border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px); z-index: 999;
    padding: 10px 24px;
    display: flex; align-items: center; gap: 20px;
}
.ph-track-name {
    font-family: 'DM Mono', monospace; font-size: 0.6rem;
    letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold);
    flex-shrink: 0;
}
.ph-progress-bar {
    flex: 1; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden;
}
.ph-progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-light)); border-radius: 2px; transition: width 0.5s; }
.ph-progress-label { font-size: 0.75rem; color: var(--text-muted); flex-shrink: 0; }

.player-layout {
    display: grid; grid-template-columns: 280px 1fr;
    min-height: calc(100vh - var(--header-h) - 44px);
    margin-top: calc(var(--header-h) + 44px);
}

/* Sidebar */
.player-sidebar {
    background: var(--navy-mid); border-right: 1px solid var(--border);
    position: sticky; top: calc(var(--header-h) + 44px);
    height: calc(100vh - var(--header-h) - 44px);
    overflow-y: auto; padding: 20px 0;
    scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.sidebar-track-label {
    font-family: 'DM Mono', monospace; font-size: 0.55rem;
    letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold);
    padding: 0 20px 14px; border-bottom: 1px solid var(--border-sub); margin-bottom: 6px;
}
.ch-item {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 20px; text-decoration: none;
    border-left: 3px solid transparent; transition: all 0.15s;
}
.ch-item:hover { background: rgba(201,168,76,0.05); }
.ch-item.active { background: rgba(201,168,76,0.08); border-left-color: var(--gold); }
.ch-item.completed .ch-icon { color: var(--green); }
.ch-item.locked { opacity: 0.55; }
.ch-icon { font-size: 0.78rem; color: var(--text-muted); flex-shrink: 0; width: 16px; text-align: center; }
.ch-label { flex: 1; min-width: 0; }
.ch-num { display: block; font-family: 'DM Mono', monospace; font-size: 0.52rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.ch-title { display: block; font-size: 0.82rem; color: var(--text-sec); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-item.active .ch-title { color: var(--gold-light); }
.ch-duration { font-size: 0.68rem; color: var(--text-muted); flex-shrink: 0; }
.ch-lock-badge { font-family: 'DM Mono', monospace; font-size: 0.55rem; letter-spacing: 0.1em; color: var(--gold); background: var(--gold-dim); border: 1px solid rgba(201,168,76,0.2); padding: 2px 7px; border-radius: 3px; flex-shrink: 0; }

/* Main content */
.player-main { padding: 44px 52px 80px; max-width: 760px; }

/* Lesson styles */
#lesson-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem; font-weight: 500; color: #f5f0e8;
    margin: 0 0 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
#lesson-content h3 {
    font-size: 1rem; font-weight: 600; color: var(--gold-light); margin: 28px 0 12px;
}
#lesson-content p { font-size: 0.95rem; color: var(--text-sec); margin-bottom: 16px; }
#lesson-content ul, #lesson-content ol {
    margin: 0 0 16px 20px; color: var(--text-sec); font-size: 0.95rem;
}
#lesson-content li { margin-bottom: 8px; }
#lesson-content strong { color: var(--text); font-weight: 600; }
#lesson-content em { color: var(--gold-light); font-style: italic; }

.lesson-callout {
    border-radius: 8px; padding: 16px 20px; margin: 20px 0; border-left: 3px solid;
}
.lesson-callout.green { background: rgba(74,222,128,0.06); border-color: var(--green); }
.lesson-callout.amber { background: rgba(245,158,11,0.07); border-color: var(--amber); }
.lesson-callout.red   { background: rgba(248,113,113,0.06); border-color: var(--red); }
.lc-title { font-family: 'DM Mono', monospace; font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 8px; }
.lesson-callout.green .lc-title { color: var(--green); }
.lesson-callout.amber .lc-title { color: var(--amber); }
.lesson-callout.red   .lc-title { color: var(--red); }
.lesson-callout p { margin-bottom: 0; font-size: 0.9rem; }

.lesson-example {
    background: var(--navy-light); border: 1px solid var(--border);
    border-radius: 8px; padding: 18px 22px; margin: 20px 0;
}
.le-title { font-family: 'DM Mono', monospace; font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.le-row { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--border-sub); font-size: 0.88rem; }
.le-row:last-child { border-bottom: none; }
.le-row span:first-child { color: var(--text-sec); }
.le-row span:last-child { color: var(--text); font-family: 'DM Mono', monospace; font-size: 0.82rem; font-weight: 500; }
.le-row .green { color: var(--green); }
.le-row .red   { color: var(--red); }
.le-row .gold  { color: var(--gold-light); }

.lesson-take-quiz {
    background: var(--navy-mid); border: 1px solid var(--gold-border);
    border-radius: 10px; padding: 22px 26px; margin-top: 36px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.ltq-text { font-size: 0.9rem; color: var(--text-sec); line-height: 1.6; }
.ltq-text strong { color: var(--text); }
.ltq-btn {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy); font-size: 0.85rem; font-weight: 700;
    padding: 11px 24px; border-radius: 50px; border: none; cursor: pointer;
    white-space: nowrap; transition: opacity 0.2s; text-decoration: none;
    display: inline-block;
}
.ltq-btn:hover { opacity: 0.9; }

/* Quiz styles */
#quiz-wrapper { display: none; }
.quiz-header { margin-bottom: 28px; }
.quiz-progress-bar { height: 4px; background: var(--border); border-radius: 2px; margin-bottom: 8px; overflow: hidden; }
.quiz-progress-fill { height: 100%; background: var(--gold); border-radius: 2px; transition: width 0.4s; }
.quiz-counter { font-family: 'DM Mono', monospace; font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); }
.quiz-question { font-size: 1.05rem; font-weight: 600; color: #f5f0e8; margin-bottom: 22px; line-height: 1.5; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.quiz-option {
    display: flex; align-items: center; gap: 14px;
    background: var(--navy-mid); border: 1px solid var(--border);
    border-radius: 8px; padding: 14px 18px; cursor: pointer;
    text-align: left; transition: all 0.15s;
}
.quiz-option:hover:not(:disabled) { border-color: var(--gold-border); background: rgba(201,168,76,0.06); }
.quiz-option:disabled { cursor: default; }
.quiz-option.correct { border-color: var(--green); background: rgba(74,222,128,0.08); }
.quiz-option.incorrect { border-color: var(--red); background: rgba(248,113,113,0.08); }
.option-letter {
    width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%;
    background: var(--navy-light); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-family: 'DM Mono', monospace; font-size: 0.7rem; font-weight: 600; color: var(--text-sec);
}
.quiz-option.correct  .option-letter { background: var(--green);  border-color: var(--green);  color: #050e1f; }
.quiz-option.incorrect .option-letter { background: var(--red);    border-color: var(--red);    color: #fff; }
.option-text { font-size: 0.9rem; color: var(--text-sec); }
.quiz-option.correct  .option-text { color: var(--green); }
.quiz-option.incorrect .option-text { color: var(--red); }

.quiz-feedback {
    border-radius: 8px; padding: 14px 18px; margin-bottom: 16px;
    display: flex; align-items: flex-start; gap: 12px;
}
.quiz-feedback.fb-correct  { background: rgba(74,222,128,0.08);  border-left: 3px solid var(--green); }
.quiz-feedback.fb-incorrect { background: rgba(248,113,113,0.08); border-left: 3px solid var(--red); }
.fb-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.quiz-feedback.fb-correct  .fb-icon { color: var(--green); }
.quiz-feedback.fb-incorrect .fb-icon { color: var(--red); }
.fb-verdict { font-size: 0.85rem; font-weight: 700; margin-bottom: 4px; }
.quiz-feedback.fb-correct  .fb-verdict { color: var(--green); }
.quiz-feedback.fb-incorrect .fb-verdict { color: var(--red); }
.fb-explanation { font-size: 0.85rem; color: var(--text-sec); line-height: 1.6; }
.quiz-next-btn {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy); font-size: 0.88rem; font-weight: 700;
    padding: 12px 28px; border-radius: 50px; border: none; cursor: pointer; transition: opacity 0.2s;
}
.quiz-next-btn:hover { opacity: 0.9; }

/* Quiz result */
.quiz-result { text-align: center; padding: 20px 0; }
.result-score-ring { position: relative; width: 100px; height: 100px; margin: 0 auto 20px; }
.result-score-ring svg { width: 100%; height: 100%; }
.result-score-num {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 600; color: #f5f0e8;
}
.result-verdict { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; }
.result-verdict.pass { color: var(--green); }
.result-verdict.fail { color: var(--red); }
.result-msg { font-size: 0.92rem; color: var(--text-sec); max-width: 420px; margin: 0 auto 28px; line-height: 1.6; }
.result-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.quiz-result-btn {
    display: inline-block; padding: 12px 28px; border-radius: 50px;
    font-size: 0.88rem; font-weight: 700; text-decoration: none; cursor: pointer;
    border: none; transition: opacity 0.2s;
    background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--navy);
}
.quiz-result-btn.secondary { background: transparent; color: var(--gold-light); border: 1px solid var(--gold-border); }
.quiz-result-btn.ghost { background: transparent; color: var(--text-muted); border: none; font-size: 0.82rem; font-weight: 400; }
.quiz-result-btn:hover { opacity: 0.85; }

/* Locked gate */
.locked-gate {
    text-align: center; padding: 80px 40px; max-width: 500px; margin: 0 auto;
}
.gate-icon { font-size: 2.5rem; color: var(--gold); margin-bottom: 12px; }
.gate-label {
    font-family: 'DM Mono', monospace; font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 14px;
}
.locked-gate h2 {
    font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 500;
    color: #f5f0e8; margin-bottom: 14px;
}
.locked-gate p { font-size: 0.92rem; color: var(--text-sec); margin-bottom: 28px; line-height: 1.7; }
.gate-btn {
    display: inline-block; padding: 13px 32px; border-radius: 50px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy); font-weight: 700; font-size: 0.9rem; text-decoration: none;
    margin-bottom: 16px; transition: opacity 0.2s;
}
.gate-btn:hover { opacity: 0.9; }
.gate-back { display: block; font-size: 0.82rem; color: var(--text-muted); text-decoration: none; }
.gate-back:hover { color: var(--gold-light); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 820px) {
    .player-layout { grid-template-columns: 1fr; }
    .player-sidebar { display: none; }
    .player-main { padding: 28px 20px 60px; }
    .pricing-grid { grid-template-columns: 1fr; }
    .pq-options { grid-template-columns: 1fr; }
    .lesson-take-quiz { flex-direction: column; }
    .course-hero { padding: 44px 20px 36px; }
}
