/* ==========================================================================
   EXOTIC COURSES (WEBVEDA STYLE) — MASTER STYLESHEET
   Obsidian FinTech Theme • Student Learning Portal • Zero Bloat
   ========================================================================== */

:root {
    --bg-root: #060a14;
    --bg-surface: #0a0f1d;
    --bg-elevated: #10172a;
    --bg-card: #0e1526;
    --bg-input: #080d1a;

    --border-subtle: #162038;
    --border-base: #1e2c4d;
    --border-hover: #2e4374;
    --border-mint: rgba(0, 212, 170, 0.4);
    --border-gold: rgba(251, 191, 36, 0.4);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-white: #ffffff;

    --mint: #00d4aa;
    --mint-glow: rgba(0, 212, 170, 0.2);
    --cyan: #38bdf8;
    --gold: #fbbf24;
    --gold-glow: rgba(251, 191, 36, 0.2);
    --red: #ef4444;
    --green: #10b981;

    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', Consolas, monospace;
}

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

html, body {
    width: 100%;
    min-height: 100%;
    background-color: var(--bg-root);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 13.5px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* 1. Header Bar */
.ec-header {
    height: 56px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.ec-header-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.ec-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-white);
}

.ec-brand-logo {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--mint), var(--cyan));
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 14px;
    color: var(--bg-root);
}

.ec-brand-title {
    font-weight: 800;
    font-size: 15px;
    letter-spacing: -0.02em;
}

.ec-brand-badge {
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 700;
    background: rgba(0, 212, 170, 0.12);
    color: var(--mint);
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid var(--border-mint);
}

/* Daily Drop Status Pill */
.ec-drop-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-base);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
}

.ec-pulse-dot {
    width: 7px;
    height: 7px;
    background: var(--mint);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--mint);
    animation: ec-pulse 1.8s infinite ease-in-out;
}

@keyframes ec-pulse {
    0%, 100% { opacity: 0.5; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Header Right */
.ec-header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ec-streak-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid var(--border-gold);
    color: var(--gold);
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}

.ec-lang-toggle {
    display: flex;
    background: var(--bg-input);
    border: 1px solid var(--border-base);
    border-radius: 6px;
    overflow: hidden;
}

.ec-lang-btn {
    padding: 5px 12px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.ec-lang-btn.active {
    background: var(--mint);
    color: var(--bg-root);
}

.ec-allaccess-btn {
    background: linear-gradient(135deg, var(--gold), #f59e0b);
    color: var(--bg-root);
    font-weight: 800;
    font-size: 11.5px;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.ec-allaccess-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px var(--gold-glow);
}

/* 2. Main Container */
.ec-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 24px 20px;
}

/* Season Selector Banner */
.ec-seasons-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .ec-seasons-nav { grid-template-columns: repeat(2, 1fr); }
}

.ec-season-tab {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.ec-season-tab:hover {
    border-color: var(--border-hover);
    background: var(--bg-elevated);
}

.ec-season-tab.active {
    border-color: var(--mint);
    background: rgba(0, 212, 170, 0.06);
    border-top: 3px solid var(--mint);
}

.ec-st-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 4px;
}

.ec-season-tab.active .ec-st-tag { color: var(--mint); }

.ec-st-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-white);
}

/* 3. Daily Learning Portal Grid (Video Player + Sidebar) */
.ec-portal-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    margin-bottom: 30px;
}

@media (max-width: 1024px) {
    .ec-portal-grid { grid-template-columns: 1fr; }
}

/* Video Player Container */
.ec-player-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ec-video-screen {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ec-video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #101c38 0%, #050914 100%);
    position: relative;
}

.ec-play-btn {
    width: 68px;
    height: 68px;
    background: rgba(0, 212, 170, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 25px rgba(0, 212, 170, 0.5);
    transition: all 0.25s;
    border: none;
    color: var(--bg-root);
}

.ec-play-btn:hover {
    transform: scale(1.08);
    background: #64ffda;
    box-shadow: 0 0 35px rgba(0, 212, 170, 0.8);
}

.ec-play-icon {
    width: 26px;
    height: 26px;
    margin-left: 4px;
    fill: currentColor;
}

/* Mandatory SEBI Watermark Lower-Third */
.ec-sebi-watermark {
    position: absolute;
    bottom: 12px;
    left: 14px;
    right: 14px;
    background: rgba(6, 10, 20, 0.85);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-secondary);
}

.ec-wm-tag {
    font-family: var(--font-mono);
    color: var(--gold);
    font-weight: 700;
}

/* Lesson Details Area */
.ec-lesson-details {
    padding: 24px;
    border-top: 1px solid var(--border-subtle);
}

.ec-ld-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
}

.ec-ld-kicker {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--mint);
    margin-bottom: 4px;
}

.ec-ld-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1.3;
}

.ec-calc-cta-btn {
    background: var(--bg-elevated);
    border: 1px solid var(--border-mint);
    color: var(--mint);
    font-weight: 700;
    font-size: 12px;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.2s;
}

.ec-calc-cta-btn:hover {
    background: var(--mint);
    color: var(--bg-root);
}

.ec-ld-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 18px;
}

/* Vernacular Explanation Box in Lesson */
.ec-vernacular-note {
    background: var(--bg-card);
    border: 1px solid var(--border-base);
    border-left: 3px solid var(--mint);
    border-radius: 6px;
    padding: 14px 18px;
    margin-top: 12px;
}

.ec-vn-title {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 700;
    color: var(--mint);
    margin-bottom: 6px;
}

.ec-vn-text {
    font-size: 13.5px;
    color: #e2e8f0;
    line-height: 1.6;
}

/* 4. Curriculum Sidebar (Daily Drop Tree) */
.ec-curriculum-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    height: 640px;
    overflow: hidden;
}

.ec-cc-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ec-cc-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-white);
}

.ec-cc-progress {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--mint);
    font-weight: 700;
}

.ec-cc-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ec-lesson-item {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    width: 100%;
}

.ec-lesson-item:hover {
    background: var(--bg-elevated);
    border-color: var(--border-base);
}

.ec-lesson-item.active {
    background: rgba(0, 212, 170, 0.08);
    border-color: var(--border-mint);
}

.ec-li-status {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
}

.st-done { background: rgba(16, 185, 129, 0.15); color: var(--green); }
.st-active { background: rgba(0, 212, 170, 0.2); color: var(--mint); }
.st-locked { background: rgba(255, 255, 255, 0.05); color: var(--text-muted); }

.ec-li-info { flex: 1; min-width: 0; }
.ec-li-day {
    font-family: var(--font-mono);
    font-size: 9.5px;
    color: var(--text-muted);
    font-weight: 700;
    display: block;
}

.ec-lesson-item.active .ec-li-day { color: var(--mint); }

.ec-li-name {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.ec-li-duration {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* 5. Interactive Tabs (Notes / Quiz / Calculator / Worksheets) */
.ec-tabs-section {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
}

.ec-tabs-nav {
    display: flex;
    gap: 12px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 14px;
    margin-bottom: 20px;
}

.ec-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.ec-tab-btn:hover { color: var(--text-white); background: var(--bg-elevated); }
.ec-tab-btn.active { color: var(--mint); background: rgba(0, 212, 170, 0.1); }

.ec-tab-pane { display: none; }
.ec-tab-pane.active { display: block; }

/* Interactive Quiz Styles */
.ec-quiz-box {
    background: var(--bg-card);
    border: 1px solid var(--border-base);
    border-radius: 8px;
    padding: 20px;
    max-width: 720px;
}

.ec-quiz-q { font-size: 15px; font-weight: 700; color: var(--text-white); margin-bottom: 14px; }
.ec-quiz-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }

.ec-quiz-opt {
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 10px 14px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
}

.ec-quiz-opt:hover { border-color: var(--border-hover); color: var(--text-white); }
.ec-quiz-opt.correct { background: rgba(16, 185, 129, 0.15); border-color: var(--green); color: var(--green); }
.ec-quiz-opt.wrong { background: rgba(239, 68, 68, 0.15); border-color: var(--red); color: var(--red); }

/* 6. Legal & SEBI Compliance Footer */
.ec-footer {
    border-top: 1px solid var(--border-subtle);
    background: #04070e;
    padding: 40px 20px;
}

.ec-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.ec-sebi-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.ec-sebi-icon { font-size: 24px; flex-shrink: 0; }
.ec-sebi-text strong {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--gold);
    display: block;
    margin-bottom: 6px;
    letter-spacing: 0.05em;
}

.ec-sebi-text p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}
