.search-form {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--background-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.search-form.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-form-content {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--surface-color);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-close {
    background: transparent;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    padding: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
}

.search-close:hover {
    background: rgba(249, 115, 22, 0.1);
}

.search-close-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
}

.search-toggle {
    background: transparent;
    border: 1px solid #f97316;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    padding: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f97316;
    transition: all 0.3s ease;
    outline: none;
}

.search-toggle:hover {
    background: rgba(249, 115, 22, 0.1);
    transform: translateY(-1px);
}

.search-toggle:active {
    transform: translateY(0);
}

.search-toggle-icon {
    width: 20px;
    height: 20px;
    stroke: #f97316;
    fill: none;
}

@media screen and (max-width: 768px) {
    .search-toggle {
        width: 32px;
        height: 32px;
        padding: 4px;
    }
    
    .search-toggle-icon {
        width: 16px;
        height: 16px;
    }
}