/* Use-Case Recommendation Engine Styles */

.recommend-form-section {
    margin-bottom: 3rem;
}

.recommend-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}

.option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.option-btn svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.option-btn:hover {
    border-color: var(--primary-color);
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.05);
}

.option-btn.selected {
    border-color: var(--primary-color);
    background: rgba(139, 92, 246, 0.1);
    color: var(--text-primary);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.option-btn .context-size {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: var(--primary-color);
}

.option-btn .option-desc {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 0.5rem;
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border: none;
    border-radius: 10px;
    background: var(--primary-color);
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.primary-btn:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.primary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.primary-btn svg {
    width: 18px;
    height: 18px;
}

.secondary-btn {
    padding: 0.85rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.secondary-btn:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

/* Results */
.recommend-results {
    margin-bottom: 3rem;
}

.results-summary {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.result-card {
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    position: relative;
    transition: all 0.2s ease;
}

.result-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.result-card.top-pick {
    border-color: rgba(139, 92, 246, 0.4);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), transparent);
}

.result-rank-badge {
    position: absolute;
    top: -8px;
    right: 16px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.result-rank-badge.first {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

.result-rank-badge.second {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.result-rank-badge.third {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.result-model-name {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
}

.result-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.result-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.result-metric {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.result-metric-label {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.result-metric-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
}

.result-match-score {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.match-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 600;
    text-transform: uppercase;
}

.match-bar-container {
    flex: 1;
    max-width: 150px;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    margin: 0 0.75rem;
    overflow: hidden;
}

.match-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #a78bfa, #6366f1);
}

.match-percent {
    font-size: 0.85rem;
    font-weight: 700;
    color: #a78bfa;
    font-family: 'Outfit', sans-serif;
}

/* Why text */
.result-why {
    margin-top: 0.75rem;
    padding: 0.6rem 0.75rem;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 8px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
    border-left: 3px solid var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .option-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .primary-btn,
    .secondary-btn {
        justify-content: center;
    }
}
