/* Shared Page Styles */

/* Page Header */
.page-header {
    margin-bottom: 32px;
}

.page-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--silver-dark);
    margin-bottom: 8px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 600px;
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.stat-box-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-main);
    border-radius: 10px;
    color: var(--silver-dark);
}

.stat-box-icon svg {
    width: 24px;
    height: 24px;
}

.stat-box-icon.highlight {
    background: linear-gradient(135deg, var(--silver-dark) 0%, var(--silver) 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
}

.stat-box-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-box-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-box-value.negative {
    color: var(--red);
}

.stat-box-value.positive {
    color: var(--green);
}

.stat-box-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* Content Sections */
.content-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.content-section .section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.content-section .section-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Constants Grid */
.constants-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.constant-card {
    padding: 20px;
    background: var(--bg-main);
    border-radius: 10px;
}

.constant-header {
    margin-bottom: 8px;
}

.constant-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.constant-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.constant-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Formula Card */
.formula-card {
    padding: 20px;
    background: var(--bg-main);
    border-radius: 10px;
    margin-bottom: 16px;
}

.formula {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--text-primary);
}

.formula-explanation {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Flow Diagram */
.flow-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 32px;
    background: var(--bg-main);
    border-radius: 10px;
    margin-bottom: 24px;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.flow-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.flow-icon.solana {
    background: linear-gradient(135deg, #9945FF, #14F195);
    color: white;
}

.flow-icon.eth {
    background: linear-gradient(135deg, #627EEA, #8A9BF0);
    color: white;
}

.flow-icon.silver {
    background: linear-gradient(135deg, var(--silver-dark), var(--silver));
    color: white;
}

.flow-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.flow-sublabel {
    font-size: 11px;
    color: var(--text-muted);
}

.flow-arrow {
    color: var(--text-muted);
}

.flow-arrow svg {
    width: 24px;
    height: 24px;
}

/* Mechanism Explanation */
.mechanism-explanation {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: rgba(192, 192, 192, 0.1);
    border-radius: 10px;
    border-left: 3px solid var(--silver);
}

.mechanism-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--silver);
    border-radius: 8px;
    color: white;
    flex-shrink: 0;
}

.mechanism-icon svg {
    width: 20px;
    height: 20px;
}

.mechanism-content h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.mechanism-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Backing Spectrum */
.spectrum-container {
    padding: 24px;
    background: var(--bg-main);
    border-radius: 10px;
    margin-bottom: 24px;
}

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

.spectrum-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.spectrum-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--silver-dark);
}

.spectrum-bar {
    height: 12px;
    background: var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.spectrum-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--silver-dark), var(--silver), #FFD700);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.spectrum-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Info Cards */
.info-card {
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.info-card-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-main);
    border-radius: 8px;
    color: var(--silver-dark);
}

.info-card-icon svg {
    width: 18px;
    height: 18px;
}

.info-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.info-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Convergence Spread */
.spread-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.spread-header {
    margin-bottom: 20px;
}

.spread-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.spread-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

.spread-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.spread-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spread-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spread-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.spread-type {
    padding: 12px;
    background: var(--bg-main);
    border-radius: 8px;
}

.spread-type-label {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
}

.spread-type-value {
    font-size: 16px;
    font-weight: 600;
}

.spread-type-value.premium {
    color: var(--green);
}

.spread-type-value.discount {
    color: var(--red);
}

/* Simulator */
.simulator-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.simulator-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.simulator-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.simulator-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-main);
    border-radius: 8px;
    color: var(--silver-dark);
}

.simulator-icon svg {
    width: 20px;
    height: 20px;
}

.simulator-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.simulator-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

/* Sliders */
.slider-group {
    margin-bottom: 20px;
}

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

.slider-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slider-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--border-color);
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--silver);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--silver);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Forecasted Results */
.forecast-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.forecast-item {
    padding: 16px;
    background: var(--bg-main);
    border-radius: 8px;
}

.forecast-item.highlight {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.2), rgba(192, 192, 192, 0.1));
    border: 1px solid var(--silver);
}

.forecast-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.forecast-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Redemption Status */
.redemption-status {
    text-align: center;
    padding: 48px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 24px;
}

.status-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-main);
    border-radius: 16px;
    color: var(--text-muted);
}

.status-icon svg {
    width: 32px;
    height: 32px;
}

.status-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.status-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.progress-container {
    max-width: 400px;
    margin: 0 auto 24px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.progress-bar {
    height: 12px;
    background: var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--silver-dark), var(--silver));
    border-radius: 6px;
    transition: width 0.5s ease;
}

.threshold-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
}

.threshold-stat {
    text-align: center;
}

.threshold-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.threshold-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.threshold-btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

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

    .constants-grid,
    .two-column,
    .simulator-section {
        grid-template-columns: 1fr;
    }
}

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

    .flow-diagram {
        flex-direction: column;
    }

    .flow-arrow {
        transform: rotate(90deg);
    }

    .forecast-grid {
        grid-template-columns: 1fr;
    }

    .threshold-stats {
        flex-direction: column;
        gap: 16px;
    }
}
