/**
 * Ce iPhone să-mi iau? - Design Apple Style
 */

.ir-tool {
    max-width: 750px;
    margin: 0 auto;
}

.ir-form.hidden, .ir-results.hidden {
    display: none;
}

.ir-step {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}

.ir-step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.ir-step-num {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
}

.ir-step-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
}

.ir-budget-display {
    text-align: center;
    margin-bottom: 16px;
}

.ir-budget-value {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ir-budget-currency {
    font-size: 20px;
    color: #9ca3af;
    margin-left: 6px;
}

.ir-slider-wrap {
    padding: 0 8px;
    margin-bottom: 16px;
}

.ir-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.1);
}

.ir-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.4);
}

.ir-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: #6b7280;
}

.ir-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.ir-preset {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: #d1d5db;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.ir-preset:hover {
    background: rgba(0, 122, 255, 0.1);
    border-color: rgba(0, 122, 255, 0.3);
}

.ir-preset.active {
    background: rgba(0, 122, 255, 0.2);
    border-color: #007AFF;
    color: #60A5FA;
}

.ir-priorities {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.ir-priority {
    display: block;
    cursor: pointer;
}

.ir-priority input {
    display: none;
}

.ir-priority-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.2s;
}

.ir-priority:hover .ir-priority-inner {
    background: rgba(0, 122, 255, 0.08);
}

.ir-priority.selected .ir-priority-inner {
    background: rgba(0, 122, 255, 0.15);
    border-color: #007AFF;
}

.ir-priority-icon {
    font-size: 24px;
}

.ir-priority-name {
    color: #e5e7eb;
    font-weight: 500;
}

.ir-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.ir-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.3);
}

.ir-results-header {
    text-align: center;
    margin-bottom: 24px;
}

.ir-results-header h3 {
    color: #ffffff;
    font-size: 22px;
    margin: 0 0 6px 0;
}

.ir-results-header p {
    color: #9ca3af;
    font-size: 14px;
    margin: 0;
}

.ir-results-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ir-phone {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    position: relative;
}

.ir-phone.ir-best {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, rgba(88, 86, 214, 0.05) 100%);
    border-color: rgba(0, 122, 255, 0.3);
}

.ir-best-badge {
    position: absolute;
    top: -10px;
    left: 20px;
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.ir-phone-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.ir-phone-name {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.ir-phone-price {
    background: rgba(0, 122, 255, 0.15);
    color: #60A5FA;
    padding: 4px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
}

.ir-phone-best {
    color: #9ca3af;
    font-size: 13px;
    margin: 0 0 12px 0;
}

.ir-phone-specs {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.ir-phone-specs span {
    color: #d1d5db;
    font-size: 13px;
}

.ir-phone-scores {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.ir-score {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ir-score-label {
    color: #9ca3af;
    font-size: 12px;
    width: 80px;
}

.ir-score-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.ir-score-fill {
    height: 100%;
    background: linear-gradient(90deg, #007AFF, #5856D6);
    border-radius: 3px;
}

.ir-phone-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ir-feature {
    background: rgba(255, 255, 255, 0.05);
    color: #9ca3af;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
}

.ir-restart {
    width: 100%;
    padding: 14px;
    background: transparent;
    border: 1px solid rgba(0, 122, 255, 0.4);
    border-radius: 10px;
    color: #60A5FA;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 20px;
}

.ir-restart:hover {
    background: rgba(0, 122, 255, 0.1);
}

.ir-no-results {
    text-align: center;
    padding: 40px;
    color: #9ca3af;
}

@media (max-width: 600px) {
    .ir-priorities {
        grid-template-columns: 1fr;
    }
    
    .ir-budget-value {
        font-size: 32px;
    }
    
    .ir-phone-header {
        flex-direction: column;
        gap: 8px;
    }
}
