/**
 * ActorInput Component Styles
 * Location: docs/agent-wizard/css/actor-input.css
 */

/* ========== Wrapper ========== */
.actor-input-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 0.375rem;
    min-height: 44px;
    cursor: text;
    position: relative;
}

.actor-input-wrapper:focus-within {
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

/* ========== Text Input ========== */
.actor-text-input {
    flex: 1;
    min-width: 150px;
    padding: 0.25rem;
    background: transparent;
    border: none;
    color: #f1f5f9;
    font-size: 0.875rem;
    outline: none;
}

.actor-text-input::placeholder {
    color: #64748b;
}

/* ========== Tags Container ========== */
.actor-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

/* ========== Individual Tag ========== */
.actor-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.5rem;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.25rem;
    font-size: 0.8125rem;
    color: #e2e8f0;
    transition: all 0.2s;
}

.actor-tag.score-high {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
}

.actor-tag.score-medium {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
}

.actor-tag.score-low {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
}

.actor-tag.score-none {
    background: rgba(100, 116, 139, 0.15);
    border-color: rgba(100, 116, 139, 0.4);
}

.tag-icon {
    font-size: 0.75rem;
    font-weight: 600;
}

.score-high .tag-icon { color: #10b981; }
.score-medium .tag-icon { color: #f59e0b; }
.score-low .tag-icon { color: #ef4444; }
.score-none .tag-icon { color: #64748b; }

.tag-name {
    font-weight: 500;
}

.tag-id {
    font-size: 0.7rem;
    color: #64748b;
    font-family: monospace;
}

.tag-score {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.125rem 0.25rem;
    border-radius: 0.125rem;
    background: rgba(0, 0, 0, 0.2);
}

.score-high .tag-score { color: #10b981; }
.score-medium .tag-score { color: #f59e0b; }
.score-low .tag-score { color: #ef4444; }
.score-none .tag-score { color: #64748b; }

.tag-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    margin-left: 0.25rem;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: 50%;
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
}

.tag-remove:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* ========== Suggestions Dropdown ========== */
.actor-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.25rem;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.375rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 100;
    max-height: 250px;
    overflow-y: auto;
}

.actor-suggestion {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid #334155;
}

.actor-suggestion:last-child {
    border-bottom: none;
}

.actor-suggestion:hover {
    background: #334155;
}

.suggestion-name {
    flex: 1;
    font-weight: 500;
    color: #f1f5f9;
}

.suggestion-meta {
    font-size: 0.75rem;
    color: #64748b;
}

.suggestion-score {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
}

.suggestion-score.score-high {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.suggestion-score.score-medium {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.suggestion-score.score-low {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* ========== Matching Indicator ========== */
.actor-matching-indicator {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: #64748b;
}

.spinner-small {
    width: 14px;
    height: 14px;
    border: 2px solid #334155;
    border-top-color: #10b981;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== Help Text ========== */
.actor-help {
    margin-top: 0.375rem;
    font-size: 0.75rem;
    color: #64748b;
}

/* ========== Validation States ========== */
.actor-input-wrapper.has-weak-matches {
    border-color: #f59e0b;
}

.actor-input-wrapper.has-unmatched {
    border-color: #ef4444;
}

/* ========== Match Summary (optional display) ========== */
.actor-match-summary {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #0f172a;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

.match-summary-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.match-summary-item.strong { color: #10b981; }
.match-summary-item.medium { color: #f59e0b; }
.match-summary-item.weak { color: #ef4444; }
.match-summary-item.unmatched { color: #64748b; }

/* ========== Registry Gap Warning ========== */
.registry-gap-warning {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.625rem 0.75rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    color: #fbbf24;
}

.registry-gap-warning a {
    color: #f59e0b;
    text-decoration: underline;
    margin-left: auto;
}

.registry-gap-warning a:hover {
    color: #fbbf24;
}

/* ========== Make container relative for dropdown positioning ========== */
[id*="actorInput"],
.actor-input-container {
    position: relative;
}