/* JEPX Paper Trading dashboard — extends jepx-dashboard.css */

.intro-banner {
    background: linear-gradient(135deg, var(--bg-card) 0%, #0f3460 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
}

.intro-banner h1 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.intro-banner p {
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 900px;
}

.summary-cards {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.chart-container {
    position: relative;
    height: 280px;
}

.chart-container.tall {
    height: 360px;
}

.legend-badges { display: flex; gap: 0.5rem; }

.badge {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-backtest { background: rgba(25, 118, 210, 0.25); color: #90caf9; }
.badge-live { background: rgba(56, 142, 60, 0.3); color: #a5d6a7; }
.badge-committed { background: rgba(255, 111, 0, 0.25); color: #ffcc80; }

.date-chip {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-left: 0.6rem;
    font-weight: 400;
}

.schedule-note {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.75rem;
}

.detail-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 0.9rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.detail-stats b { color: var(--text-primary); }

.table-wrap { overflow-x: auto; }

.trades-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.trades-table th, .trades-table td {
    padding: 0.55rem 0.8rem;
    text-align: right;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.trades-table th:first-child, .trades-table td:first-child { text-align: left; }

.trades-table th {
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

.trades-table .pos { color: #a5d6a7; }
.trades-table .neg { color: #ef9a9a; }

.methodology .method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-top: 0.5rem;
}

.method-item h3 {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    color: #90caf9;
}

.method-item p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.65;
}

.disclaimer {
    margin-top: 1.25rem;
    padding: 0.75rem 1rem;
    background: rgba(211, 47, 47, 0.12);
    border-left: 3px solid var(--danger);
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.method-links {
    margin-top: 1rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.method-links a {
    color: #90caf9;
    text-decoration: none;
    font-size: 0.9rem;
}

.method-links a:hover { text-decoration: underline; }

@media (max-width: 640px) {
    .intro-banner { padding: 1.1rem 1.2rem; }
    .intro-banner h1 { font-size: 1.15rem; }
    .chart-container { height: 220px; }
    .chart-container.tall { height: 260px; }
}
