/* Smart Search Query Refinement Styles */

/* Quality Badge Styles */
#quality-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: help;
}

#quality-badge.quality-excellent {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

#quality-badge.quality-good {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

#quality-badge.quality-fair {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

#quality-badge.quality-poor {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

/* Auto-Suggest Container */
#auto-suggest-container {
    animation: slideDown 0.3s ease-out;
    max-height: 300px;
    overflow-y: auto;
    z-index: 50;
}

#auto-suggest-container::-webkit-scrollbar {
    width: 6px;
}

#auto-suggest-container::-webkit-scrollbar-track {
    background: rgba(75, 85, 99, 0.3);
    border-radius: 3px;
}

#auto-suggest-container::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.5);
    border-radius: 3px;
}

#auto-suggest-container::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.7);
}

.suggestion-item {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: rgba(55, 65, 81, 0.5);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.suggestion-item:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.5);
    transform: translateX(4px);
}

.suggestion-item:last-child {
    margin-bottom: 0;
}

.suggestion-icon {
    color: #a855f7;
    font-size: 0.875rem;
}

.suggestion-text {
    color: #e2e8f0;
    font-size: 0.875rem;
    flex: 1;
}

/* Profile Suggestion Banner */
#profile-suggestion-banner {
    animation: slideDown 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

#profile-suggestion-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 2s infinite;
}

.profile-suggestion-content {
    position: relative;
    z-index: 1;
}

.profile-suggestion-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.profile-suggestion-icon {
    color: #ec4899;
    font-size: 1.25rem;
}

.profile-suggestion-title {
    color: #f3e8ff;
    font-weight: 600;
    font-size: 0.875rem;
}

.profile-suggestion-body {
    color: #e9d5ff;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.profile-suggestion-profile {
    color: #a855f7;
    font-weight: 700;
}

.profile-suggestion-confidence {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    background: rgba(168, 85, 247, 0.2);
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: #c084fc;
    margin-left: 0.5rem;
}

.profile-suggestion-actions {
    display: flex;
    gap: 0.5rem;
}

.profile-suggestion-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.profile-suggestion-btn-primary {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: white;
}

.profile-suggestion-btn-primary:hover {
    background: linear-gradient(135deg, #9333ea, #db2777);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}

.profile-suggestion-btn-secondary {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.profile-suggestion-btn-secondary:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: #a855f7;
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Quality Tooltip */
.quality-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0.5rem;
    padding: 0.75rem;
    background: rgba(17, 24, 39, 0.95);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 0.5rem;
    color: #e2e8f0;
    font-size: 0.75rem;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 100;
}

#quality-badge:hover .quality-tooltip {
    opacity: 1;
}

.quality-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(168, 85, 247, 0.3);
}

/* Loading State */
.suggestion-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    color: #a855f7;
}

.suggestion-loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   PREMIUM GLASSMORPHISM EFFECT
   ======================================== */

.search-container {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(40px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(40px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;
}

.search-container:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 8px 32px 0 rgba(168, 85, 247, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset !important;
}