/* Summary Page Specific Styles */

.page-header {
    text-align: center;
    margin: 40px 0;
}

.page-header h1 {
    font-size: 36px;
    color: #e2e8f0;
    margin-bottom: 8px;
}

.page-header .subtitle {
    font-size: 16px;
    color: #94a3b8;
}

.section {
    margin: 60px 0;
}

.section h2 {
    font-size: 28px;
    color: #e2e8f0;
    margin-bottom: 24px;
}

/* Stats Grid for All-Time (4 cards) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Stat card green/red left border accent */
.stat-card.positive {
    border-left: 4px solid #10b981;
}

.stat-card.negative {
    border-left: 4px solid #ef4444;
}

.stat-subtitle {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

/* Engine Version Filter */
.version-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 12px 0;
}

.version-btn {
    padding: 8px 16px;
    border: 1px solid #475569;
    background: #1e293b;
    color: #94a3b8;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.version-btn:hover {
    background: #334155;
    color: #e2e8f0;
    border-color: #64748b;
}

.version-btn.active {
    background: #d97706;
    color: #fff;
    border-color: #d97706;
}

/* Actionable Only Toggle */
.actionable-filter {
    display: flex;
    justify-content: center;
    margin: 16px 0 8px;
}

.actionable-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.actionable-toggle input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #d97706;
    cursor: pointer;
}

/* Version Comparison Grid */
.version-comparison-grid,
.bet-type-comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .version-comparison-grid,
    .bet-type-comparison-grid {
        grid-template-columns: 1fr;
    }
}

/* Version / Bet Type Cards */
.version-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 24px;
    transition: border-color 0.2s;
}

.version-card.current {
    border-color: #10b981;
    border-width: 2px;
}

.version-card.best {
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.3);
}

.version-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #334155;
}

.version-label {
    font-size: 20px;
    font-weight: 700;
    color: #e2e8f0;
}

.current-badge {
    font-size: 12px;
    font-weight: 500;
    color: #10b981;
}

.version-date-range {
    font-size: 13px;
    color: #64748b;
}

.version-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.version-stat {
    display: flex;
    flex-direction: column;
}

.version-stat-value {
    font-size: 22px;
    font-weight: 700;
    color: #e2e8f0;
}

.version-stat-value.text-green {
    color: #10b981;
}

.version-stat-value.text-red {
    color: #ef4444;
}

.version-stat-label {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.version-disclaimer {
    margin-top: 16px;
    padding: 8px 12px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 6px;
    font-size: 12px;
    color: #f59e0b;
    text-align: center;
}

/* Crosstab row tints */
.crosstab-positive {
    background: rgba(16, 185, 129, 0.06) !important;
}

.crosstab-negative {
    background: rgba(239, 68, 68, 0.06) !important;
}

/* Legacy row dim */
.legacy-row {
    opacity: 0.5;
}

.legacy-badge {
    font-size: 11px;
    color: #64748b;
    font-style: italic;
}

/* Tables */
.table-container {
    overflow-x: auto;
    background: #1e293b;
    border-radius: 12px;
    padding: 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead th {
    background: #0f172a;
    color: #94a3b8;
    text-align: left;
    padding: 12px 16px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #334155;
}

.data-table tbody td {
    padding: 12px 16px;
    color: #e2e8f0;
    border-bottom: 1px solid #334155;
}

.data-table tbody tr:hover {
    background: #334155;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* ROI color coding in tables */
.data-table .roi-positive {
    color: #10b981;
    font-weight: 600;
}

.data-table .roi-negative {
    color: #ef4444;
    font-weight: 600;
}

/* Chart Container */
.chart-container {
    background: #1e293b;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.chart-container canvas {
    max-height: 400px;
}

/* Comparison Grid (Chart + Table side by side) */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

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

/* Two Column Layout for Best/Worst Days */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

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

.two-column h2 {
    font-size: 24px;
}

/* Tier badges in tables */
.tier-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.tier-badge.top-play {
    background: #10b981;
    color: #fff;
}

.tier-badge.solid {
    background: #3b82f6;
    color: #fff;
}

.tier-badge.lean {
    background: #f59e0b;
    color: #fff;
}

.tier-badge.avoid {
    background: #ef4444;
    color: #fff;
}

.tier-badge.hidden-gems {
    background: #a855f7;
    color: #fff;
}

/* Tier mini labels in breakdown columns */
.breakdown-cell {
    font-size: 12px;
    line-height: 1.6;
}

.tier-mini {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    margin: 1px 2px;
    white-space: nowrap;
}

.tier-mini.tier-top_play {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.tier-mini.tier-hidden_gems {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
}

.tier-mini.tier-solid {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.tier-mini.tier-lean {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.tier-mini.tier-avoid {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 80px 20px;
    font-size: 18px;
    color: #94a3b8;
}

/* Date links in tables */
.data-table .date-link {
    color: #10b981;
    text-decoration: none;
    transition: color 0.2s;
}

.data-table .date-link:hover {
    color: #059669;
    text-decoration: underline;
}

/* Record display */
.record {
    font-family: 'Courier New', monospace;
    font-weight: 600;
}
