/* ═══════════════════════════════════════════════════════════════════════════
   TRADE LESSON MODAL — Prof. Ava's Trading Classroom (Styles)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Modal Overlay ── */
.trade-lesson-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85); z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(4px);
}
.trade-lesson-overlay.active {
    opacity: 1; visibility: visible;
}

/* ── Modal Panel ── */
.trade-lesson-modal {
    background: #1a1a2e; border: 1px solid #333;
    border-radius: 16px; width: 700px; max-width: 92vw;
    max-height: 85vh; overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s ease;
}
.trade-lesson-overlay.active .trade-lesson-modal {
    transform: translateY(0) scale(1);
}

/* ── Scrollbar ── */
.trade-lesson-modal::-webkit-scrollbar {
    width: 6px;
}
.trade-lesson-modal::-webkit-scrollbar-track {
    background: #1a1a2e;
}
.trade-lesson-modal::-webkit-scrollbar-thumb {
    background: #333; border-radius: 3px;
}

/* ── Modal Header ── */
.trade-lesson-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 24px 28px 16px;
    border-bottom: 1px solid #2a2a4a;
    position: sticky; top: 0; background: #1a1a2e; z-index: 2;
    border-radius: 16px 16px 0 0;
}
.trade-lesson-header h2 {
    margin: 0; font-size: 1.4em; color: #fff;
    border: none; padding: 0;
}
.trade-lesson-header .subtitle {
    color: #888; font-size: 0.85em; margin-top: 4px;
}
.trade-lesson-close {
    background: none; border: none; color: #666; font-size: 1.5em;
    cursor: pointer; padding: 0 4px; line-height: 1;
    transition: color 0.2s;
}
.trade-lesson-close:hover { color: #ff4444; }

/* ── Trade Quick Card ── */
.trade-quick-card {
    display: flex; gap: 12px; padding: 16px 28px;
    background: #12121f; border-bottom: 1px solid #2a2a4a;
}
.trade-quick-card .stat {
    flex: 1; text-align: center;
}
.trade-quick-card .stat-label {
    font-size: 0.7em; color: #666; text-transform: uppercase; letter-spacing: 0.5px;
}
.trade-quick-card .stat-value {
    font-size: 1.2em; font-weight: 600; margin-top: 4px;
}

/* ── Lesson Body ── */
.trade-lesson-body {
    padding: 20px 28px 28px;
}
.lesson-section {
    margin-bottom: 20px;
}
.lesson-section:last-child { margin-bottom: 0; }
.lesson-section h3 {
    font-size: 0.95em; color: #00ffcc; margin: 0 0 8px 0;
    display: flex; align-items: center; gap: 8px;
}
.lesson-section h3 .emoji { font-size: 1.1em; }
.lesson-section p, .lesson-section ul {
    margin: 0; line-height: 1.6; color: #c0c0c0; font-size: 0.92em;
}
.lesson-section ul { padding-left: 20px; }
.lesson-section ul li { margin-bottom: 4px; }

/* ── Score Bar ── */
.score-bar {
    display: flex; gap: 6px; margin: 10px 0;
}
.score-bar-item {
    flex: 1; text-align: center;
    background: #1e1e30; border-radius: 8px; padding: 8px 4px;
}
.score-bar-item .label {
    font-size: 0.65em; color: #666; text-transform: uppercase;
}
.score-bar-item .value {
    font-size: 1em; font-weight: 600; margin-top: 4px;
}
.score-bar-item .bar {
    height: 3px; border-radius: 2px; margin-top: 4px;
    transition: width 0.8s ease;
}

/* ── Clickable Strategy Cell ── */
.strategy-clickable {
    color: #5af !important;
    cursor: pointer !important;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
    transition: color 0.2s;
}
.strategy-clickable:hover {
    color: #7cf !important;
    text-decoration-style: solid;
}

/* ── Lesson Tag ── */
.lesson-tag {
    display: inline-block; background: #2a2a4a; color: #aaa;
    padding: 2px 8px; border-radius: 4px; font-size: 0.75em;
    margin-right: 4px; margin-bottom: 4px;
}

/* ── P&L Big Number ── */
.pl-big-positive { color: #00ffcc; }
.pl-big-negative { color: #ff4444; }

/* ── Outcome Banner ── */
.outcome-banner {
    padding: 12px 16px; border-radius: 8px;
    text-align: center; font-weight: 600; font-size: 1em;
    margin: 12px 0;
}
.outcome-win { background: #00ffcc12; border: 1px solid #00ffcc33; color: #00ffcc; }
.outcome-loss { background: #ff444412; border: 1px solid #ff444433; color: #ff6666; }
.outcome-open { background: #ffaa0012; border: 1px solid #ffaa0033; color: #ffaa00; }
