/**
 * WebTicaret.tr - Search Stylesheet
 */

.search-page {
    padding-bottom: 60px;
}

mark.search-highlight {
    background: #FEF08A;
    color: #854D0E;
    padding: 0 3px;
    border-radius: 3px;
    font-weight: 600;
}

.search-result-card:hover {
    border-color: #CBD5E1 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.search-tab-link {
    transition: all 0.15s ease;
}

.search-tab-link:hover {
    color: #FF6B0B !important;
}

/* Autocomplete Suggestion Dropdown */
.search-suggest-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    z-index: 1050;
    max-height: 420px;
    overflow-y: auto;
    padding: 6px 0;
}

.suggest-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: #0F172A;
    transition: background 0.12s ease;
    cursor: pointer;
}

.suggest-item:hover,
.suggest-item.is-selected {
    background: #F8FAFC;
    color: #FF6B0B;
}

.suggest-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

.suggest-item-icon.category { background: #EEF2FF; color: #4F46E5; }
.suggest-item-icon.entity   { background: #EEF2FF; color: #4338CA; }
.suggest-item-icon.tag      { background: #FEF3C7; color: #D97706; }
.suggest-item-icon.topic    { background: #F1F5F9; color: #0284C7; }
.suggest-item-icon.listing  { background: #ECFDF5; color: #059669; }
.suggest-item-icon.user     { background: #FFF7ED; color: #EA580C; }

.suggest-item-body {
    flex: 1;
    min-width: 0;
}

.suggest-item-title {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggest-item-subtitle {
    font-size: 12px;
    color: #64748B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.suggest-empty-state {
    padding: 16px;
    text-align: center;
    font-size: 13px;
    color: #94A3B8;
}

@media (max-width: 768px) {
    .search-form-primary {
        flex-direction: column;
    }
    .search-category-filter,
    .search-sort-filter,
    .search-submit-button {
        width: 100%;
    }
}
