/* search-styles.css - Separate CSS file for search styling */

.search-container {
    position: relative;
    margin-left: 20px;
    margin-right: 20px;
}

.search-wrapper {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    padding: 5px 10px;
    transition: all 0.3s ease;
}

.search-wrapper:focus-within {
    background-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

#searchInput {
    background: transparent;
    border: none;
    color: white;
    outline: none;
    padding: 8px 15px;
    width: 500px;
    font-size: 14px;
    margin-bottom: 0;
}

#searchInput::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-button {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    color: #f5f5f5;
}

.suggestions-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-top: 5px;
}

.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    color: #333;
    transition: background-color 0.2s ease;
}

.suggestion-item:hover {
    background-color: #f5f5f5;
}

/* Media queries for responsiveness */
@media screen and (max-width: 768px) {
    .search-container {
        margin: 10px 0;
        width: 100%;
    }
    
    .search-wrapper {
        width: 100%;
    }
    
    #searchInput {
        width: 100%;
    }
}