/* Import Shared Layout & Component Styles */
/* /templates/css/forecast.css */
@import url('header.css');
/* @import url('../user/themes/modigin/css/custom.css'); */
@import url('layout.css');

/* Predictor Card - ESPN Style */
.predictor-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 32px;
    margin-bottom: 32px;
}

.predictor-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
    text-align: center;
}

.predictor-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
}

.predictor-side {
    text-align: center;
    min-width: 100px;
}

.predictor-side.left .predictor-pct {
    color: #16a34a;
}

.predictor-side.right .predictor-pct {
    color: #dc2626;
}

.predictor-side.center {
    text-align: center;
    margin-top: 16px;
}

.predictor-side.center .predictor-pct.flat {
    color: #64748b;
}

.predictor-pct {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.predictor-label {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.predictor-donut {
    position: relative;
    width: 240px;
    height: 240px;
}

.donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.center-ticker {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.center-price {
    font-size: 16px;
    font-weight: 600;
    color: #6b7280;
}

.predictor-flat {
    text-align: center;
    padding: 12px;
    background: #f9fafb;
    border-radius: 6px;
    margin-bottom: 16px;
}

.flat-label {
    font-size: 13px;
    color: #6b7280;
    margin-right: 8px;
}

.flat-pct {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.predictor-attribution {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    font-style: italic;
}

/* Outcome Cards Grid */
.outcomes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.outcome-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 24px;
    border: 2px solid;
}

.green-card {
    border-color: #16a34a;
}

.red-card {
    border-color: #dc2626;
}

.flat-card {
    border-color: #64748b;
}

/* Shared Card Header Styles */
.close-header,
.outcome-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f3f4f6;
}

.outcome-header {
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
}

/* Shared Icon Styles */
.close-icon,
.outcome-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

/* Icon Colors - Green */
.green-card .outcome-icon,
.green-border .close-icon { 
    background: #dcfce7;
    color: #16a34a;
}

/* Icon Colors - Red */
.red-card .outcome-icon,
.red-border .close-icon { 
    background: #fee2e2;
    color: #dc2626;
}

/* Icon Colors - Flat */
.flat-card .outcome-icon,
.flat-border .close-icon { 
    background: #f1f5f9;
    color: #64748b;
}

/* Shared Label Styles */
.close-label,
.outcome-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0;
}

/* Close Label - Unique Property */
.close-label {
    flex: 1;
}

/* Outcome Info Container - Unique to Scenario Cards */
.outcome-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
}

/* Shared Probability Styles */
.outcome-probability {
    font-size: 18px;
    font-weight: 700;
    color: #6b7280;
}

/* Scenario Table */
.scenario-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.scenario-header {
    display: grid;
    grid-template-columns: 110px 1fr 1fr;
    gap: 16px;
    padding-bottom: 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.header-spacer {
    /* Empty space above labels */
}

.header-column {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
}

.scenario-row {
    display: grid;
    grid-template-columns: 110px 1fr 1fr;
    gap: 16px;
    padding: 12px 0;
    align-items: center;
}

.scenario-label {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
}

.value-cell {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    font-variant-numeric: tabular-nums;
}

/* Close Target Cards */
.close-targets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.close-target-card {
    background: #ffffff;
    border: 2px solid;
    border-radius: 8px;
    padding: 24px;
}

.green-border { border-color: #16a34a; }
.red-border { border-color: #dc2626; }
.flat-border { border-color: #64748b; }

.close-levels {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.close-level {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f9fafb;
    border-radius: 6px;
}

.close-level span:first-child {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.close-price {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    font-variant-numeric: tabular-nums;
}

/* Chart Card */
.chart-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 32px;
}

.chart-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.chart-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
}

#forecastChart {
    height: 350px !important;
}

/* Error Message */
.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
}

/* Last Updated */
.last-updated {
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
    padding: 16px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .predictor-container {
        gap: 20px;
    }
    
    .predictor-donut {
        width: 180px;
        height: 180px;
    }
    
    .predictor-pct {
        font-size: 28px;
    }
    
    .outcomes-grid {
        grid-template-columns: 1fr;
    }
    
    .value-cell {
        font-size: 14px;
    }
}