/* Interactive Component Styles for Thesis */

/* Interactive Box Container */
.interactive-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.interactive-header h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 5px 0;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.interactive-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #666;
    margin: 0 0 25px 0;
}

.interactive-content {
    margin-top: 25px;
}

/* Slider Controls */
.slider-group {
    margin-bottom: 30px;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
}

.slider-value {
    font-weight: bold;
    color: #0066cc;
    font-size: 14px;
}

.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 2px;
    background: #e0e0e0;
    outline: none;
    margin: 10px 0;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #0066cc;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.15s ease;
}

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

.slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #0066cc;
    cursor: pointer;
    border-radius: 50%;
    border: none;
    transition: all 0.15s ease;
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}

.slider-markers {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #999;
    margin-top: 5px;
}

/* Metric Display */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 25px 0;
}

.metric-card {
    background: #fafafa;
    border: 1px solid #f0f0f0;
    padding: 15px;
    border-radius: 2px;
}

.metric-card.highlight {
    background: #f0f7ff;
    border-color: #0066cc;
}

.metric-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.metric-value {
    font-size: 20px;
    font-weight: bold;
    color: #1a1a1a;
}

.metric-card.highlight .metric-value {
    color: #0066cc;
}

/* Formula Display */
.formula {
    margin-top: 25px;
    padding: 15px;
    background: #fafafa;
    border-left: 2px solid #0066cc;
    font-size: 11px;
}

.formula code {
    font-family: 'Inter', 'SF Mono', 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    font-weight: 400;
    color: #333;
    word-break: break-word;
}

/* Flywheel Flow Styles */
.flywheel-inputs {
    margin-bottom: 30px;
}

.flywheel-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 30px 0;
    flex-wrap: wrap;
    gap: 10px;
}

.flow-step {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 15px;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
}

.flow-step.highlight {
    background: #f0f7ff;
    border-color: #0066cc;
    border-width: 2px;
}

.flow-arrow {
    font-size: 20px;
    color: #999;
    margin: 0 5px;
}

.flow-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.flow-value {
    font-size: 14px;
    font-weight: bold;
    color: #1a1a1a;
    margin: 5px 0;
}

.flow-value-secondary {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.status-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    margin: 25px 0;
    border: 1px solid;
    border-radius: 2px;
    font-size: 13px;
}

/* Amplification Styles */
.amplification-inputs {
    margin-bottom: 30px;
}

.time-horizon-toggle {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.time-horizon-toggle button {
    flex: 1;
    padding: 10px 20px;
    border: 1px solid #e0e0e0;
    background: #fafafa;
    color: #666;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.15s ease;
}

.time-horizon-toggle button:hover {
    border-color: #0066cc;
    color: #0066cc;
}

.time-horizon-toggle button.active {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

.amplification-results {
    margin: 30px 0;
}

.comparison-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 25px 0;
}

.comparison-side {
    flex: 1;
    padding: 20px;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    position: relative;
}

.comparison-side.highlight {
    background: #f0f7ff;
    border-color: #0066cc;
    border-width: 2px;
}

.comparison-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.comparison-amount {
    font-size: 24px;
    font-weight: bold;
    color: #1a1a1a;
    margin: 5px 0;
}

.comparison-side.highlight .comparison-amount {
    color: #0066cc;
}

.comparison-gain {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.comparison-bar {
    height: 4px;
    background: #ccc;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.comparison-bar.strategy {
    background: #0066cc;
}

.comparison-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.amplification-badge {
    background: #0066cc;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: bold;
}

.amplification-insight {
    text-align: center;
    padding: 20px;
    background: #fafafa;
    border-left: 2px solid #0066cc;
    margin-top: 25px;
    font-size: 13px;
    line-height: 1.6;
}

/* Two-column layout for revenue calculator */
.revenue-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 25px;
}

.revenue-inputs {
    order: 1;
}

.revenue-outputs {
    order: 2;
}

/* Featured metrics - larger standalone cards */
.metric-card-featured {
    background: #fafafa;
    border: 1px solid #f0f0f0;
    padding: 20px;
    border-radius: 2px;
    margin-bottom: 15px;
}

.metric-card-featured.highlight {
    background: #f0f7ff;
    border-color: #0066cc;
}

.metric-card-featured .metric-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.metric-card-featured .metric-value {
    font-size: 28px;
    font-weight: bold;
    color: #1a1a1a;
}

.metric-card-featured.highlight .metric-value {
    color: #0066cc;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .flywheel-flow {
        flex-direction: column;
    }

    .flow-arrow {
        transform: rotate(90deg);
        margin: 5px 0;
    }

    .comparison-container {
        flex-direction: column;
    }

    .comparison-divider {
        transform: rotate(90deg);
        margin: 10px 0;
    }

    .revenue-layout {
        grid-template-columns: 1fr;
    }

    .revenue-inputs {
        order: 1;
    }

    .revenue-outputs {
        order: 2;
    }
}
