/* Hero Section Autocomplete Suggestions Styling */

.hero-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px !important;
    margin-top: 4px;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    list-style: none;
    padding: 0;
    
}

.hero-suggestions .suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
    color: #333;
}

.hero-suggestions .suggestion-item:last-child {
    border-bottom: none;
}

.hero-suggestions .suggestion-item:hover,
.hero-suggestions .suggestion-item.suggestion-active {
    background-color: #f8f9fa;
}

/* Profile picture styles */
.hero-suggestions .suggestion-profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.hero-suggestions .suggestion-profile-icon {
    font-size: 40px;
    color: #6c757d;
    flex-shrink: 0;
}

/* User details container */
.hero-suggestions .user-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0; /* Allow text truncation */
}

.hero-suggestions .suggestion-item .location-text,
.hero-suggestions .suggestion-item .user-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-suggestions .user-info {
    color: #6c757d;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-suggestions .no-result-item {
    padding: 12px 16px;
    color: #999;
    font-style: italic;
    font-size: 14px;
    text-align: center;
}

/* Custom scrollbar for suggestions */
.hero-suggestions::-webkit-scrollbar {
    width: 6px;
}

.hero-suggestions::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.hero-suggestions::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.hero-suggestions::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Ensure input group has proper stacking context */
.hero-card .input-group {
    position: relative;
    z-index: 1;
}

.hero-card .input-group:focus-within {
    z-index: 2;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .hero-suggestions {
        max-height: 200px;
        font-size: 13px;
    }
    
    .hero-suggestions .suggestion-item {
        padding: 10px 12px;
        gap: 8px;
    }
    
    .hero-suggestions .suggestion-profile-pic {
        width: 32px;
        height: 32px;
    }
    
    .hero-suggestions .suggestion-profile-icon {
        font-size: 32px;
    }
    
    .hero-suggestions .user-info {
        font-size: 11px;
    }
}

/* Ensure input group has proper stacking context */
.hero-card .input-group {
    position: relative;
    z-index: 1;
}

.hero-card .input-group:focus-within {
    z-index: 2;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .hero-suggestions {
        max-height: 200px;
        font-size: 13px;
    }
    
    .hero-suggestions .suggestion-item {
        padding: 10px 12px;
    }
    
    .hero-suggestions .suggestion-item .profession-text {
        display: block;
        margin-left: 24px;
        margin-top: 2px;
    }
}
