/**
 * Job Matching Engine Styles
 * Visual components for requirements matching and comparison
 */

/* Match Badge Styles */
.sffc-match-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.sffc-match-badge .sffc-match-icon {
    display: flex;
    align-items: center;
}

.sffc-match-badge .sffc-match-text {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sffc-match-badge .sffc-match-score {
    opacity: 0.8;
    font-weight: 500;
}

/* Match strength variations */
.sffc-match-card[data-match-strength="Very Strong"] {
    border-left: 4px solid #10b981;
}

.sffc-match-card[data-match-strength="Strong"] {
    border-left: 4px solid #3b82f6;
}

.sffc-match-card[data-match-strength="Medium"] {
    border-left: 4px solid #f59e0b;
}

.sffc-match-card[data-match-strength="Weak"] {
    border-left: 4px solid #ef4444;
}

/* Requirements Summary */
.sffc-requirements-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    margin: 15px 0;
    border: 1px solid #e5e7eb;
}

.sffc-req-header {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.sffc-req-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sffc-req-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    line-height: 1.4;
}

.sffc-req-item.met {
    color: #059669;
}

.sffc-req-item.missing {
    color: #dc2626;
}

.sffc-req-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.sffc-req-text {
    font-weight: 500;
}

.sffc-gaps-hint {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
    font-size: 12px;
    color: #9ca3af;
    font-style: italic;
}

/* Match Insights */
.sffc-match-insights {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 6px;
    padding: 10px 12px;
    margin-top: 12px;
    border: 1px solid #86efac;
}

.sffc-insight-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #15803d;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.sffc-insight-text {
    font-size: 13px;
    color: #166534;
    line-height: 1.5;
}

/* Comparison Table */
.sffc-comparison-table {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.sffc-comparison-table h4 {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #f3f4f6;
}

.sffc-comparison-section {
    margin-bottom: 20px;
}

.sffc-comparison-section:last-child {
    margin-bottom: 0;
}

.sffc-comparison-section h5 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #6b7280;
    margin: 0 0 12px 0;
    letter-spacing: 0.5px;
}

.sffc-comparison-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sffc-comparison-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    padding: 8px 12px;
    background: #f9fafb;
    border-radius: 6px;
    align-items: center;
}

.sffc-req-name {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.sffc-match-status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    text-align: center;
    white-space: nowrap;
}

.sffc-match-status.matched {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

.sffc-match-status.missing {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Strengths List */
.sffc-strengths-list {
    margin: 0;
    padding: 0 0 0 20px;
    list-style: none;
}

.sffc-strengths-list li {
    position: relative;
    font-size: 13px;
    color: #059669;
    margin-bottom: 8px;
    padding-left: 20px;
}

.sffc-strengths-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    font-weight: bold;
    color: #10b981;
}

/* Gaps List */
.sffc-gaps-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.sffc-gap-chip {
    display: inline-block;
    padding: 4px 10px;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* Improvement Tips */
.sffc-improvement-tips {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 6px;
    padding: 12px;
    margin: 12px 0;
}

.sffc-improvement-tips strong {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sffc-improvement-tips ul {
    margin: 0;
    padding: 0 0 0 20px;
    list-style: disc;
}

.sffc-improvement-tips li {
    font-size: 13px;
    color: #78350f;
    margin-bottom: 4px;
}

/* Analysis Role Content Updates */
.sffc-analysis-role-content .sffc-comparison-table {
    margin-top: 16px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .sffc-comparison-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .sffc-match-status {
        text-align: left;
    }
    
    .sffc-requirements-summary {
        padding: 10px;
    }
    
    .sffc-comparison-table {
        padding: 12px;
    }
}