/**
 * Price Scenario Calculator Styles
 * Mobile-first responsive design
 */

.psc-wrapper {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.psc-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.psc-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 0.5rem 0;
}

.psc-subtitle {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

.psc-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Sliders */
.psc-inputs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.psc-input-group {
    background: white;
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.psc-input-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.psc-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
}

.psc-value {
    font-size: 1rem;
    font-weight: 700;
    color: #10b981;
    background: #ecfdf5;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
}

.psc-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: #e2e8f0;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.psc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
    transition: transform 0.15s ease;
}

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

.psc-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
}

.psc-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.5rem;
}

/* Chart */
.psc-chart-container {
    background: white;
    border-radius: 0.75rem;
    padding: 1rem;
    height: 250px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Results Cards */
.psc-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.psc-result-card {
    background: white;
    padding: 1rem;
    border-radius: 0.75rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.psc-result-label {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.psc-result-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
}

.psc-result-card.psc-target .psc-result-value {
    color: #10b981;
}

.psc-positive {
    color: #10b981 !important;
}

.psc-negative {
    color: #ef4444 !important;
}

/* Table */
.psc-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.psc-table {
    width: 100%;
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    border-collapse: collapse;
    font-size: 0.85rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.psc-table th {
    background: #f8fafc;
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #64748b;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.psc-table td {
    padding: 0.75rem;
    border-top: 1px solid #f1f5f9;
    color: #374151;
}

.psc-table .psc-current-row {
    background: #f0fdf4;
}

.psc-table .psc-current-row td {
    font-weight: 600;
}

.psc-table .psc-projected {
    color: #10b981;
    font-weight: 600;
}

/* Disclaimer */
.psc-disclaimer {
    background: #fef3c7;
    color: #92400e;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    text-align: center;
}

/* Desktop Styles */
@media (min-width: 768px) {
    .psc-wrapper {
        padding: 2rem;
    }

    .psc-header h3 {
        font-size: 1.5rem;
    }

    .psc-inputs {
        grid-template-columns: repeat(2, 1fr);
    }

    .psc-chart-container {
        height: 300px;
    }

    .psc-result-value {
        font-size: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .psc-content {
        display: grid;
        grid-template-columns: 1fr 1.5fr;
        grid-template-rows: auto auto auto auto;
        gap: 1.5rem;
    }

    .psc-inputs {
        grid-column: 1;
        grid-row: 1 / 3;
        grid-template-columns: 1fr;
    }

    .psc-chart-container {
        grid-column: 2;
        grid-row: 1;
        height: 280px;
    }

    .psc-results {
        grid-column: 2;
        grid-row: 2;
    }

    .psc-table-wrapper {
        grid-column: 1 / 3;
        grid-row: 3;
    }

    .psc-disclaimer {
        grid-column: 1 / 3;
        grid-row: 4;
    }
}

/* Touch-friendly adjustments */
@media (pointer: coarse) {
    .psc-slider {
        height: 12px;
    }

    .psc-slider::-webkit-slider-thumb {
        width: 32px;
        height: 32px;
    }

    .psc-slider::-moz-range-thumb {
        width: 32px;
        height: 32px;
    }
}
