/* Person Disambiguation Modal - Matches site theme */

.disambiguation-modal {
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
}

.disambiguation-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color);
}

.disambiguation-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.disambiguation-header h2 {
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
    font-family: 'Playfair Display', serif;
}

.disambiguation-subtitle {
    color: #666;
    margin: 0;
    font-size: 1rem;
}

.disambiguation-matches {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.match-card {
    border: 2px solid;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    background: white;
    transition: all var(--transition-base);
    cursor: pointer;
}

.match-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.match-card.high {
    border-color: var(--primary-color);
    background: #FAF8F3;
}

.match-card.medium {
    border-color: var(--accent-color);
}

.match-card.low {
    border-color: #ccc;
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.match-info {
    flex: 1;
}

.match-name {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-family: 'Playfair Display', serif;
}

.match-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #666;
}

.match-detail {
    white-space: nowrap;
}

.match-confidence {
    text-align: right;
    flex-shrink: 0;
}

.confidence-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: white;
}

.confidence-badge.high {
    background: var(--primary-color);
}

.confidence-badge.medium {
    background: var(--accent-color);
}

.confidence-badge.low {
    background: #999;
}

.confidence-label {
    font-size: 0.75rem;
    font-weight: 600;
}

.confidence-label {
    color: var(--primary-color);
}

.match-card.medium .confidence-label {
    color: var(--accent-color);
}

.match-card.low .confidence-label {
    color: #999;
}

.match-details-box {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1rem;
}

.detail-row {
    margin-bottom: 0.5rem;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-row strong {
    color: var(--primary-color);
}

.match-details-empty {
    color: #999;
    font-size: 0.85rem;
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

.match-select-btn {
    width: 100%;
    margin-top: 1rem;
}

.disambiguation-footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .disambiguation-modal {
        max-width: 95vw;
        max-height: 90vh;
        padding: 1.5rem;
    }
    
    .match-header {
        flex-direction: column;
    }
    
    .match-confidence {
        text-align: left;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .confidence-badge {
        margin-bottom: 0;
    }
    
    .match-details {
        flex-direction: column;
        gap: 0.5rem;
    }
}
