/* Enhanced Search Container */
.search-form {
    position: relative;
    max-width: 850px;
    margin: 2.5rem auto;
    background: rgba(17, 17, 35, 0.95);
    border: 1px solid rgba(114, 137, 218, 0.15);
    border-radius: 20px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15),
                inset 0 0 32px rgba(114, 137, 218, 0.02);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Search Input */
.search-form input {
    flex: 1;
    height: 50px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.1rem;
    padding: 0 1.5rem 0 3.5rem;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.search-form input::placeholder {
    color: rgba(156, 163, 175, 0.7);
    font-weight: 400;
}

.search-form input:focus {
    outline: none;
}

/* Search Icon */
.search-form::before {
    content: '\e900'; /* This should match your icon font code */
    font-family: 'icomoon';
    position: absolute;
    left: 1.25rem;
    color: #7289da;
    font-size: 1.25rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.search-form:hover::before {
    color: #5865f2;
}

/* Remove the button styles since we're using ::before for the icon */
.search-form button {
    display: none;
}

/* Hover Effects */
.search-form:hover {
    border-color: rgba(114, 137, 218, 0.3);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.25),
                inset 0 0 32px rgba(114, 137, 218, 0.05);
    transform: translateY(-2px);
}

/* Search Focus State */
.search-form:focus-within {
    border-color: rgba(114, 137, 218, 0.5);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.25),
                inset 0 0 32px rgba(114, 137, 218, 0.08);
}

/* Search Dropdown */
#searchDropdownMenu {
    position: absolute;
    top: calc(100% + 1rem);
    left: 0;
    right: 0;
    background: rgba(17, 17, 35, 0.98);
    border: 1px solid rgba(114, 137, 218, 0.15);
    border-radius: 20px;
    padding: 1rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transform-origin: top;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

/* Search Result Items */
.search-result-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 15px;
    margin-bottom: 0.5rem;
    background: rgba(114, 137, 218, 0.05);
    transition: all 0.3s ease;
}

.search-result-item:hover {
    background: rgba(114, 137, 218, 0.1);
    transform: translateX(5px);
}

.search-result-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(114, 137, 218, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.search-result-icon i {
    color: #7289da;
    font-size: 1.25rem;
}

.search-result-content {
    flex: 1;
}

.search-result-title {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.search-result-description {
    color: rgba(156, 163, 175, 0.8);
    font-size: 0.9rem;
}

/* Loading Animation */
.search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.search-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(114, 137, 218, 0.1);
    border-top-color: #7289da;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-form {
        margin: 1.5rem 1rem;
        padding: 0.5rem;
    }

    .search-form input {
        height: 45px;
        font-size: 1rem;
        padding: 0 1rem;
    }

    .search-form button {
        width: 45px;
        height: 45px;
        border-radius: 12px;
    }

    .search-form button i {
        font-size: 1.1rem;
    }
}

/* No Results State */
.no-results {
    text-align: center;
    padding: 2rem;
    color: rgba(156, 163, 175, 0.8);
}

.no-results i {
    font-size: 2rem;
    color: #7289da;
    margin-bottom: 1rem;
    display: block;
}

/* Category Tags */
.search-category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0 1rem;
}

.category-tag {
    padding: 0.5rem 1rem;
    background: rgba(114, 137, 218, 0.1);
    border-radius: 20px;
    color: #7289da;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-tag:hover {
    background: rgba(114, 137, 218, 0.2);
    transform: translateY(-2px);
} 