/* css/ui-components.css - Additional UI components */
.intent-chips-container {
    margin-top: 1rem;
    display: none;
}

.intent-chips-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-height: 100px;
    overflow-y: auto;
    padding: 0.5rem;
    background: var(--card-bg-alt);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.intent-chip {
    background: var(--primary-50);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--primary-light);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.dark-theme .intent-chip {
    background: rgba(79, 70, 229, 0.2);
}

.preset-selector {
    margin: 1rem 0;
    display: none;
}

.preset-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.preset-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.preset-btn {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preset-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.preset-btn:hover:not(.active) {
    border-color: var(--primary-light);
    color: var(--primary);
}

.template-library {
    margin-top: 1.5rem;
    display: none;
}

.template-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.template-category-btn {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
}

.template-category-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

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

.template-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.template-card h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.template-card p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Progress steps for intent detection */
.intent-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.intent-progress i {
    color: var(--primary);
}

/* AI Platform ranking indicators */
.platform-ranking {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: var(--success);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: bold;
}

.platform-card.recommended {
    border-color: var(--success);
    position: relative;
}

.platform-card.recommended::before {
    content: '✨';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 1.25rem;
    z-index: 2;
}

/* AI Match Score Badge */
.match-score-badge {
    background: var(--success);
    color: white;
    font-size: 0.625rem;
    font-weight: bold;
    padding: 0.125rem 0.375rem;
    border-radius: 0.75rem;
    margin-left: 0.5rem;
}

/* Empty States */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    color: var(--text-tertiary);
    width: 100%;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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