/* Search Suggestions Styles */

.search-container {
    position: relative;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background-color: #fff;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    margin-top: 5px;
    padding: 8px 0;
    animation: fadeIn 0.2s ease-in-out;
}

.search-suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
}

.search-suggestion-item:hover {
    background-color: #f5f7fa;
}

.suggestion-content {
    flex: 1;
    overflow: hidden;
}

.suggestion-title {
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* No results message */
.no-results {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 16px;
    background-color: #f8f8f8;
    border-radius: 8px;
    margin: 20px 0;
    animation: fadeIn 0.3s ease-in-out;
}

/* Search results highlight */
.game-card.search-result {
    animation: fadeIn 0.3s ease-in-out;
    transition: transform 0.2s ease;
}

.game-card.search-result:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive styles */
@media (max-width: 768px) {
    .search-suggestions {
        max-height: 250px;
    }
    
    .search-suggestion-item {
        padding: 8px 12px;
    }
    
    .suggestion-title {
        font-size: 13px;
    }
    
    .no-results {
        padding: 15px;
        font-size: 14px;
    }
}