/* =============================================================================
   Onboarding Education Steps - Visual Examples
   Styles for Steps 5-7: Metrics, Range Analysis, Data Sources
   ============================================================================= */

/* Example Component Container */
.example-component {
    background: var(--hh-color-base-white, #fff);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* Metrics Array Example (Step 5) */
.metrics-array-example {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.metric-item .metric-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--hh-color-text-primary, #1a1a1a);
}

.metric-item.positive .metric-value {
    color: var(--hh-color-success, #22c55e);
}

.metric-item.negative .metric-value {
    color: var(--hh-color-error, #ef4444);
}

.metric-item .metric-label-sm {
    font-size: 11px;
    font-weight: 600;
    color: var(--hh-color-text-tertiary, #999);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Metric Definitions */
.metric-definitions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.definition-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 16px;
    background: var(--hh-color-base-cloud, #f5f5f5);
    border-radius: 10px;
}

.definition-term {
    font-size: 14px;
    font-weight: 600;
    color: var(--hh-color-text-primary, #1a1a1a);
}

.definition-text {
    font-size: 13px;
    color: var(--hh-color-text-secondary, #666);
}

.insight-text {
    font-size: 14px;
    color: var(--hh-color-success, #22c55e);
    font-weight: 500;
    text-align: center;
    margin-bottom: 24px;
}

/* Chart Mockup (Step 6) */
.chart-example {
    padding: 20px;
}

/* Seasonality Chart (Step 7) */
.seasonality-chart {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
}

.occupancy-svg {
    flex: 1;
    height: auto;
    max-height: 160px;
}

.occupancy-svg .axis-label {
    font-size: 10px;
    fill: var(--hh-color-text-tertiary, #999);
    font-weight: 500;
}

.occupancy-svg .quarter-label {
    font-size: 11px;
    fill: var(--hh-color-text-secondary, #666);
    font-weight: 500;
}

.chart-y-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 10px;
    font-weight: 600;
    color: var(--hh-color-text-tertiary, #999);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.chart-mockup {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chart-header {
    display: flex;
    gap: 8px;
}

.chart-tab {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--hh-color-text-secondary, #666);
    background: var(--hh-color-base-cloud, #f5f5f5);
    border-radius: 6px;
}

.chart-tab.active {
    color: var(--hh-color-brand-primary, #F47853);
    background: rgba(244, 120, 83, 0.1);
    border: 1px solid var(--hh-color-brand-primary, #F47853);
}

.chart-lines {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 0;
}

.chart-line {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chart-line .line-label {
    font-size: 12px;
    font-weight: 500;
    width: 80px;
    color: var(--hh-color-text-secondary, #666);
}

.chart-line .line-visual {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    position: relative;
}

/* Line colors and widths to simulate chart */
.chart-line.optimistic .line-visual {
    background: linear-gradient(90deg, #c97b63 0%, #c97b63 100%);
    width: 100%;
}

.chart-line.median .line-visual {
    background: linear-gradient(90deg, #6b9080 0%, #6b9080 100%);
    width: 85%;
}

.chart-line.conservative .line-visual {
    background: linear-gradient(90deg, #2d3a4a 0%, #2d3a4a 100%);
    width: 70%;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding-top: 8px;
    border-top: 1px solid var(--hh-color-borders-default, #e0e0e0);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--hh-color-text-secondary, #666);
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-item.optimistic .legend-dot {
    background: #c97b63;
}

.legend-item.median .legend-dot {
    background: #6b9080;
}

.legend-item.conservative .legend-dot {
    background: #2d3a4a;
}

/* Range Explanation */
.range-explanation {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.explanation-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: var(--hh-color-base-cloud, #f5f5f5);
    border-radius: 10px;
}

.explanation-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
}

.explanation-icon.optimistic {
    background: #c97b63;
}

.explanation-icon.median {
    background: #6b9080;
}

.explanation-icon.conservative {
    background: #2d3a4a;
}

.explanation-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.explanation-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--hh-color-text-primary, #1a1a1a);
}

.explanation-text {
    font-size: 13px;
    color: var(--hh-color-text-secondary, #666);
}

/* Feature Section (Step 7) */
.feature-section {
    background: var(--hh-color-base-white, #fff);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--hh-color-text-primary, #1a1a1a);
    font-size: 16px;
    font-weight: 600;
}

.feature-header svg {
    color: var(--hh-color-brand-primary, #F47853);
}

.feature-description {
    font-size: 14px;
    color: var(--hh-color-text-secondary, #666);
    line-height: 1.5;
    margin-bottom: 16px;
}

/* Data Sources */
.data-sources {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.source-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: var(--hh-color-base-cloud, #f5f5f5);
    border-radius: 8px;
    gap: 8px;
}

.source-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--hh-color-text-primary, #1a1a1a);
    flex-shrink: 0;
}

.source-from {
    font-size: 12px;
    color: var(--hh-color-text-tertiary, #999);
    text-align: right;
}

/* Mobile: Stack source items vertically */
@media (max-width: 480px) {
    .source-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .source-from {
        text-align: left;
    }
}

/* Parameter Preview */
.parameter-preview {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.param-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: var(--hh-color-base-cloud, #f5f5f5);
    border-radius: 8px;
}

.param-name {
    font-size: 14px;
    color: var(--hh-color-text-secondary, #666);
}

.param-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--hh-color-text-primary, #1a1a1a);
}

/* =============================================================================
   Financial Settings (Step 5 - Interest Rate & Down Payment)
   ============================================================================= */

.financial-settings {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 24px;
}

.financial-setting-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.financial-setting-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--hh-color-text-secondary, #666);
}

.rate-display {
    font-size: 32px;
    font-weight: 700;
    color: var(--hh-color-brand-primary, #F47853);
    text-align: center;
}

.financial-slider {
    width: 100%;
    height: 8px;
    appearance: none;
    -webkit-appearance: none;
    background: var(--hh-color-borders-default, #e0e0e0);
    border-radius: 4px;
    outline: none;
}

.financial-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    background: var(--hh-color-brand-primary, #F47853);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(244, 120, 83, 0.4);
    transition: transform 0.2s ease;
}

.financial-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.financial-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    background: var(--hh-color-brand-primary, #F47853);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(244, 120, 83, 0.4);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--hh-color-text-tertiary, #999);
}

.financial-note {
    font-size: 13px;
    color: var(--hh-color-text-tertiary, #999);
    text-align: center;
    padding: 16px;
    background: var(--hh-color-base-cloud, #f5f5f5);
    border-radius: 12px;
    margin-bottom: 24px;
}
