/* ------------------------------------------------- */
/* SEARCH BOX STYLING (Based on Index Reference) */
/* ------------------------------------------------- */

.search-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    width: 16vw; float: left; margin-left: 15px;
    margin-bottom: 0px;
    margin-top: 10px;
    border: #000000;
    border-radius: 2px;
}

.search-input {
    width: 16vw; float: left; margin-left: 15px;
    height: 30px;
    padding: 6px 16px 6px 50px;
    opacity: 1;
    background-color: rgba(30, 30, 30, 0.9);
    color: #ff6600;
    caret-color: #ff5900;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 6px rgba(30, 144, 255, 0.5);
    pointer-events: auto;
    transition: all 0.3s ease;
    margin-left: 0px;
}

.search-input:focus {
    outline: none;
    background-color: rgba(40, 40, 40, 0.95);
    box-shadow: 0 0 8px rgba(30, 144, 255, 0.8);
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    cursor: pointer;
    opacity: 0.9;
    transition: transform 0.2s ease, filter 0.2s ease;
    margin-top: 0px;
    margin-left: 0px;
    z-index: 2;
    /* Ensure icon is above input padding */
}

.search-icon svg {
    width: 100%;
    height: 100%;
    fill: #ffffff;
    transition: 0.3s ease;
}

.search-icon:hover {
    filter: brightness(1.8) drop-shadow(0 0 4px #1e90ff);
}

.search-input:hover {
    box-shadow: 0 0 6px rgba(30, 144, 255, 0.5);
}

/* Darker, cleaner suggestion box */
.suggestions {
    position: absolute;
    top: 110%;
    left: 0;
    right: 0;
    background-color: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    z-index: 1000;
    max-height: 280px;
    overflow-y: auto;
    padding: 0.5rem 0;
    display: none;
    margin-left: 0px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.suggestion-item {
    color: #ccc;
    padding: 14px 20px;
    cursor: pointer;
    transition: background 0.2s, padding-left 0.2s;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    /* Subtle hover */
    padding-left: 25px;
    /* Slight shift */
    color: #fff;
}

.highlight {
    font-weight: 800;
    color: #ff5e00;
}

/* Scrollbar Customization */
.suggestions::-webkit-scrollbar {
    width: 8px;
}

.suggestions::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.suggestions::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 4px;
}

.suggestions::-webkit-scrollbar-thumb:hover {
    background-color: #ff5e00;
}

/* Responsive Behavior */
/* Migrated to responsive.css */