/* Stats Display Component Styles */
.stats-display {
    background: white;
    border-radius: 8px;
    padding: 24px;
    border: 1px solid #e2e8f0;
}

/* Stats View Toggle */
.stats-view-toggle {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e5e5;
}

.radio-group {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.radio-group input[type="radio"] {
    margin-right: 0.5rem;
    accent-color: #16a34a;
}

.radio-group label {
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 0;
    color: #374151;
    transition: color 0.2s ease;
}

.radio-group label:hover {
    color: #16a34a;
}

.radio-group input[type="radio"]:checked + label {
    color: #16a34a;
}

.stats-content-view.hidden {
    display: none !important;
}

.stats-content-view {
    transition: opacity 0.2s ease-in-out;
}

/* Sharing View Toggle - Reuse styles from stats toggle */
.sharing-view-toggle {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e5e5;
}

.sharing-content-view.hidden {
    display: none !important;
}

.sharing-content-view {
    transition: opacity 0.2s ease-in-out;
}

/* Utility class for hiding elements */
.hidden {
    display: none !important;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .radio-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .radio-group label {
        padding: 0.25rem 0;
    }
}

.stats-tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.stats-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #64748b;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.stats-tab:hover {
    color: #334155;
}

.stats-tab.active {
    color: #16a34a;
    border-bottom-color: #16a34a;
}

.stats-tab.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.stats-content {
    display: none;
}

.stats-content.active {
    display: block;
}

/* Prediction Stats */
.prediction-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.stats-overview {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
}

.overview-title {
    font-weight: 600;
    margin-bottom: 16px;
    color: #334155;
}

.overview-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.metric {
    text-align: center;
}

.metric-value {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    display: block;
}

.metric-label {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 500;
    margin-top: 4px;
}

.accuracy-breakdown {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
}

.breakdown-title {
    font-weight: 600;
    margin-bottom: 16px;
    color: #334155;
}

.bet-type-accuracy {
    margin-bottom: 16px;
}

.bet-type-accuracy:last-child {
    margin-bottom: 0;
}

.bet-type-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.bet-type-name {
    font-weight: 500;
    color: #334155;
}

.bet-type-percentage {
    font-weight: 600;
    color: #1e293b;
}

.accuracy-bar {
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.accuracy-fill {
    height: 100%;
    background: #16a34a;
    transition: width 0.3s ease;
}

.accuracy-fill.low {
    background: #dc2626;
}

.accuracy-fill.medium {
    background: #d97706;
}

.accuracy-fill.high {
    background: #16a34a;
}

/* Visual Charts */
.visual-charts {
    margin-top: 24px;
    grid-column: 1 / -1;
}

.charts-title {
    font-weight: 600;
    margin-bottom: 16px;
    color: #334155;
}

.chart-container {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-style: italic;
}

/* Betting Performance */
.betting-performance {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.performance-overview {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 8px;
    padding: 20px;
}

.roi-display {
    text-align: center;
    margin-bottom: 20px;
}

.roi-value {
    font-size: 32px;
    font-weight: 800;
    color: #16a34a;
    display: block;
}

.roi-value.negative {
    color: #dc2626;
}

.roi-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    margin-top: 4px;
}

.performance-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.performance-metric {
    text-align: center;
    padding: 12px;
    background: white;
    border-radius: 6px;
}

.performance-metric-value {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    display: block;
}

.performance-metric-label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    margin-top: 2px;
}

.profit-loss-chart {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.chart-title {
    font-weight: 600;
    color: #334155;
}

.chart-period {
    font-size: 12px;
    color: #64748b;
}

.profit-loss-bars {
    display: flex;
    align-items: end;
    gap: 4px;
    height: 120px;
    margin-bottom: 12px;
}

.profit-bar {
    flex: 1;
    background: #16a34a;
    border-radius: 2px 2px 0 0;
    min-height: 4px;
    position: relative;
}

.profit-bar.loss {
    background: #dc2626;
}

.profit-bar:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 10;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.legend-color.profit {
    background: #16a34a;
}

.legend-color.loss {
    background: #dc2626;
}

/* Performance Insights */
.performance-insights {
    margin-top: 24px;
    grid-column: 1 / -1;
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
}

.insights-title {
    font-weight: 600;
    margin-bottom: 16px;
    color: #334155;
}

.insight-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #16a34a;
}

.insight-item.warning {
    border-left-color: #d97706;
}

.insight-item.negative {
    border-left-color: #dc2626;
}

.insight-icon {
    font-size: 20px;
    margin-top: 2px;
}

.insight-content {
    flex: 1;
}

.insight-text {
    color: #475569;
    line-height: 1.5;
    margin-bottom: 4px;
}

.insight-recommendation {
    font-size: 12px;
    color: #64748b;
    font-style: italic;
}

/* Empty State */
.stats-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #334155;
}

.empty-state-description {
    margin-bottom: 20px;
    line-height: 1.5;
}

.empty-state-action {
    display: inline-block;
    padding: 8px 16px;
    background: #16a34a;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.2s;
}

.empty-state-action:hover {
    background: #15803d;
    text-decoration: none;
    color: white;
}

/* Responsive design */
@media (max-width: 768px) {
    .prediction-stats,
    .betting-performance {
        grid-template-columns: 1fr;
    }
    
    .overview-metrics,
    .performance-metrics {
        grid-template-columns: 1fr;
    }
    
    .stats-tabs {
        flex-direction: column;
    }
    
    .stats-tab {
        text-align: center;
        border-bottom: 1px solid #e2e8f0;
        border-right: none;
    }
    
    .stats-tab.active {
        border-bottom-color: #16a34a;
        border-right-color: transparent;
    }
} 