/* Keyword Autosuggest Dropdown Styles */

/* Container */
.keyword-autosuggest-wrapper { position: relative; }

.keyword-autosuggest-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 1050;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.keyword-autosuggest-dropdown.active { display: block; }

/* Section headers */
.autosuggest-section-header {
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #868e96;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 6px;
}

.autosuggest-section-header i { font-size: 12px; color: var(--primary-color, #007bff); }

/* Items */
.autosuggest-item {
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f3f5;
    transition: background 0.15s;
}

.autosuggest-item:hover,
.autosuggest-item.active { background: #e7f1ff; }

.autosuggest-item:last-child { border-bottom: none; }

.autosuggest-item-label { font-size: 13px; color: #212529; }

.autosuggest-item-count {
    font-size: 11px;
    color: #868e96;
    background: #f1f3f5;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

/* Loading state */
.autosuggest-loading {
    padding: 16px;
    text-align: center;
    color: #868e96;
    font-size: 13px;
}

/* No results */
.autosuggest-no-results {
    padding: 16px;
    text-align: center;
    color: #868e96;
    font-size: 13px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .keyword-autosuggest-dropdown { max-height: 300px; }
}

/* AI Search Suggest (inline in #searchHelper) */
.ai-suggest-sections { padding: 2px 0; }

.ai-suggest-section-header {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #868e96;
    padding: 4px 8px 2px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ai-suggest-section-header i {
    font-size: 10px;
    color: var(--primary-color, #007bff);
}

/* Row items — one per line */
.ai-suggest-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    color: #212529;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.12s;
    cursor: pointer;
}

.ai-suggest-row:hover,
.ai-suggest-row.active {
    background: #e7f1ff;
    text-decoration: none;
    color: #212529;
}

.ai-suggest-row > i {
    font-size: 12px;
    color: #868e96;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.ai-suggest-row > span {
    font-size: 13px;
}

/* Development rows — image left, info right */
.ai-suggest-dev .ai-suggest-dev-img {
    width: 56px;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.ai-suggest-dev .ai-suggest-dev-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ai-suggest-dev .ai-suggest-dev-placeholder {
    width: 100%;
    height: 100%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-suggest-dev .ai-suggest-dev-placeholder i {
    font-size: 16px;
    color: #adb5bd;
}

.ai-suggest-dev .ai-suggest-dev-info {
    min-width: 0;
}

.ai-suggest-dev .ai-suggest-dev-name {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ai-suggest-dev .ai-suggest-dev-loc {
    font-size: 11px;
    color: #868e96;
}

.ai-suggest-dev .ai-suggest-dev-loc i {
    font-size: 10px;
}
